mkdir -p ~/backup-hypr
cp -a ~/.config/hypr ~/backup-hypr/ 2>/dev/null
for p in hyprland waybar rofi-wayland dunst wl-clipboard cliphist hyprlock wlogout fastfetch swww swaync pywal16 mpvpaper grim slurp; do
pacman -Q "$p" &>/dev/null && sudo pacman -Rns "$p"
done
rm -rf ~/.config/hypr ~/.config/waybar ~/.config/rofi ~/.config/dunst ~/.config/wl-clipboard ~/.config/cliphist ~/.config/wlogout ~/.config/fastfetch ~/.config/swww ~/.config/swaync ~/.config/pywal ~/.config/mpvpaper ~/.config/hyprlock
sudo pacman -Syu
sudo pacman -S hyprland kitty waybar rofi-wayland dunst wl-clipboard cliphist xdg-desktop-portal-hyprland polkit-kde-agent firefox
mkdir -p ~/.config/hypr
cat > ~/.config/hypr/hyprland.conf <<'EOF'
monitor=,preferred,auto,1
$mod=SUPER
bind=$mod,RETURN,exec,kitty
bind=$mod,D,exec,rofi -show drun
bind=$mod,Q,killactive
bind=$mod,M,exit
exec-once=waybar
exec-once=dunst
EOF
reboot