-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·45 lines (37 loc) · 1001 Bytes
/
uninstall.sh
File metadata and controls
executable file
·45 lines (37 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
#
# Hyprland Dotfiles Uninstaller
# https://github.com/cxOrz/dotfiles-hyprland
#
set -euo pipefail
GREEN='\033[0;32m'
BLUE='\033[0;34m'
BOLD='\033[1m'
DIM='\033[2m'
NC='\033[0m'
CONFIG_DIR="$HOME/.config"
LOCAL_DIR="$HOME/.local"
info() { echo -e "${BLUE}::${NC} $1"; }
success() { echo -e "${GREEN} ✓${NC} $1"; }
echo ""
echo -e "${BOLD} Hyprland Dotfiles Uninstaller${NC}"
echo ""
CONFIGS=(dunst fcitx5 hypr kitty quickshell rofi uwsm waybar yazi)
info "Removing config symlinks..."
for dir in "${CONFIGS[@]}"; do
target="$CONFIG_DIR/$dir"
if [[ -L "$target" ]]; then
rm "$target"
success "Removed $dir"
fi
done
if [[ -L "$LOCAL_DIR/share/fcitx5" ]]; then
rm "$LOCAL_DIR/share/fcitx5"
success "Removed .local/share/fcitx5"
fi
echo ""
echo -e "${GREEN}${BOLD} Uninstall complete.${NC}"
echo ""
echo -e " ${DIM}Backups (if any) are in ~/.dotfiles-backup/${NC}"
echo -e " ${DIM}Installed packages were not removed.${NC}"
echo ""