mirror of
https://github.com/fscotto/infra.git
synced 2026-07-29 16:20:01 +00:00
scripts: add remove_i3.sh to purge i3 packages and dotfiles
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
30
scripts/remove_i3.sh
Normal file
30
scripts/remove_i3.sh
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Rimuove i3 e relativi dotfiles dall'host corrente.
|
||||||
|
# Eseguire dopo aver verificato che sway funzioni correttamente.
|
||||||
|
set -e
|
||||||
|
|
||||||
|
HOSTNAME=$(hostname)
|
||||||
|
|
||||||
|
# Pacchetti i3-only (dunst e rofi sono condivisi con sway, non rimossi)
|
||||||
|
sudo xbps-remove -R arandr autorandr feh i3 i3blocks i3blocks-blocklets \
|
||||||
|
i3lock-color i3status picom polybar scrot setxkbmap volumeicon xclip \
|
||||||
|
xfce4-clipman-plugin xfce4-screenshooter xkbutils xorg-fonts xorg-minimal \
|
||||||
|
xss-lock xdotool
|
||||||
|
|
||||||
|
# Dotfiles i3-only
|
||||||
|
rm -rf ~/.config/i3 ~/.config/i3blocks
|
||||||
|
rm -f ~/.config/picom/picom.conf
|
||||||
|
rmdir --ignore-fail-on-non-empty ~/.config/picom
|
||||||
|
rm -f ~/.config/polybar/config.ini ~/.config/polybar/launch.sh
|
||||||
|
rmdir --ignore-fail-on-non-empty ~/.config/polybar
|
||||||
|
rm -f ~/.xinitrc
|
||||||
|
|
||||||
|
# Session file emptty
|
||||||
|
sudo rm -f /etc/emptty/xsessions/i3.desktop
|
||||||
|
|
||||||
|
# Dotfiles host-specifici
|
||||||
|
case "$HOSTNAME" in
|
||||||
|
ikaros|nymph)
|
||||||
|
rm -rf ~/.config/autorandr
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user