Config i3: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
sudo apt install pulseaudio pavucontrol && /usr/sbin/reboot | sudo apt install pulseaudio pavucontrol && /usr/sbin/reboot | ||
# installa i pacchetti base | # installa i pacchetti base | ||
sudo apt install curl fping flatpak keepassxc tinc opensnitch gimp gajim arandr | sudo apt install curl fping flatpak keepassxc tinc opensnitch gimp gajim arandr nmap flameshot git thunderbird | ||
# Timezone | # Timezone | ||
timedatectl set-timezone Europe/Rome | timedatectl set-timezone Europe/Rome | ||
Line 15: | Line 15: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
# installa le dipendenze | # installa le dipendenze | ||
sudo apt install alacritty | sudo apt install alacritty i3 rofi polybar fonts-font-awesome | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
# copia il file di config di | # copia il file di config di i3, rofi e polybar nella cartella .config dell'utente | ||
mkdir -p ~/.config/ | mkdir -p ~/.config/i3 | ||
cp /etc/ | mkdir -p ~/.config/rofi | ||
mkdir -p ~/.config/polybar | |||
cp /etc/i3/config ~/.config/i3/config | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
# avvialo al login dell'utente | # avvialo al login dell'utente | ||
echo -e "\n# Esegui | echo -e "\n# Esegui xorg al login\nexec startx\n" >> ~/.profile | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 84: | Line 86: | ||
alias chtunn='/usr/bin/chtunn.sh' | alias chtunn='/usr/bin/chtunn.sh' | ||
alias torbrowser="cd /home/$USER/tor-browser/; ./start-tor-browser.desktop; cd -" | alias torbrowser="cd /home/$USER/tor-browser/; ./start-tor-browser.desktop; cd -" | ||
##### ALIAS DEVUAN ##### | ##### ALIAS DEVUAN ##### |
Latest revision as of 13:04, 14 August 2025
Debian i3wm
[edit]# installa sudo
apt install sudo
usermod -aG sudo <user>
# installa i pacchetti audio e rebootta
sudo apt install pulseaudio pavucontrol && /usr/sbin/reboot
# installa i pacchetti base
sudo apt install curl fping flatpak keepassxc tinc opensnitch gimp gajim arandr nmap flameshot git thunderbird
# Timezone
timedatectl set-timezone Europe/Rome
# installa le dipendenze
sudo apt install alacritty i3 rofi polybar fonts-font-awesome
# copia il file di config di i3, rofi e polybar nella cartella .config dell'utente
mkdir -p ~/.config/i3
mkdir -p ~/.config/rofi
mkdir -p ~/.config/polybar
cp /etc/i3/config ~/.config/i3/config
# avvialo al login dell'utente
echo -e "\n# Esegui xorg al login\nexec startx\n" >> ~/.profile
# setta il font e sizeFont di alacritty
mkdir -p ~/.config/alacritty
nano ~/.config/alacritty/alacritty.toml
# CONFIG
[window]
padding.x = 10
padding.y = 10
[font]
normal.family = "monospace"
bold.family = "monospace"
italic.family = "monospace"
bold_italic.family = "monospace"
size = 25.0
# Setta il PS1 nel .bashrc
case "$TERM" in
xterm*|rxvt*)
PS1="\[\033[0;31m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]root\[\033[01;33m\]@\[\033[01;96m\]\h'; else echo '\[\033[0;39m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h'; fi)\[\033[0;31m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;31m\]]\n\[\033[0;31m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]\[\e[01;33m\]\\$\[\e[0m\]"
;;
*)
;;
esac
##### ALIAS BASE #####
alias ls='ls --color=auto'
alias ll='ls -lah'
alias la='ls -la'
alias l='ls -la'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias upgrader='sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && flatpak update'
##### ALTRI ALIAS #####
alias luce='sudo nano /sys/class/backlight/intel_backlight/brightness'
alias mioip='curl https://wtfismyip.com/'
alias activate='source .venv/bin/activate'
alias dd='dd status=progress'
alias cercami='sudo apt search'
alias vorbisconverter='ffmpeg -i input.mp4 -vcodec libx264 -crf 23 -acodec libvorbis output.mp4'
alias meteobo="curl wttr.in/bologna"
alias guardo='exiftool'
##### ALIAS RETE #####
alias fpingerz='fping -g 192.168.1.0/24 > scanrete; cat scanrete | grep alive ; rm scanrete'
alias chtunn='/usr/bin/chtunn.sh'
alias torbrowser="cd /home/$USER/tor-browser/; ./start-tor-browser.desktop; cd -"
##### ALIAS DEVUAN #####
#alias senable='read -p "Servizio da abilitare al boot: " servizio; ln -s /etc/rc3.d/init.d/"$servizio" S95"$servizio"
# PATH
export PATH=$PATH:/sbin:/usr/sbin