forked from Shinonome/dots-hyprland
a heavy fix on bash scripts.
This commit is contained in:
+26
-23
@@ -1,22 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo 'Hi there!'
|
||||
echo 'This script 1. will uninstall [end-4/dots-hyprland > illogical-impulse] dotfiles'
|
||||
echo ' 2. will try to revert *mostly everything* installed using install.sh, so it'\''s pretty destructive'
|
||||
echo ' 3. has not beed tested, use at your own risk.'
|
||||
echo ' 4. will show all commands that it runs.'
|
||||
echo ' 5. should be run from its folder.'
|
||||
echo 'Ctrl+C to exit. Enter to continue.'
|
||||
read
|
||||
function v() {
|
||||
echo -e "[$0]: \e[32mNow executing:\e[0m"
|
||||
echo -e "\e[32m$@\e[0m"
|
||||
"$@"
|
||||
}
|
||||
|
||||
printf 'Hi there!\n'
|
||||
printf 'This script 1. will uninstall [end-4/dots-hyprland > illogical-impulse] dotfiles\n'
|
||||
printf ' 2. will try to revert *mostly everything* installed using install.sh, so it'\''s pretty destructive\n'
|
||||
printf ' 3. has not beed tested, use at your own risk.\n'
|
||||
printf ' 4. will show all commands that it runs.\n'
|
||||
printf 'Ctrl+C to exit. Enter to continue.\n'
|
||||
read -r
|
||||
set -e
|
||||
##############################################################################################################################
|
||||
|
||||
# Undo Step 3: Removing copied config and local folders
|
||||
echo 'Removing copied config and local folders...'
|
||||
echo 'rm -rf "$HOME/.config/ags" "$HOME/.config/fish" "$HOME/.config/frontconfig" "$HOME/.config/foot" "$HOME/.config/fuzzel" "$HOME/.config/gtklock" "$HOME/.config/hypr" "$HOME/.config/mpv" "$HOME/.config/swaylock" "$HOME/.config/wlogout" "$HOME/.config/starship.toml" '
|
||||
rm -rf "$HOME/.config/ags" "$HOME/.config/fish" "$HOME/.config/frontconfig" "$HOME/.config/foot" "$HOME/.config/fuzzel" "$HOME/.config/gtklock" "$HOME/.config/hypr" "$HOME/.config/mpv" "$HOME/.config/swaylock" "$HOME/.config/wlogout" "$HOME/.config/starship.toml"
|
||||
echo 'rm -rf "$HOME/.local/bin/fuzzel-emoji" "$HOME/.config/rubyshot"'
|
||||
rm -rf "$HOME/.local/bin/fuzzel-emoji" "$HOME/.config/rubyshot"
|
||||
printf '\e[36mRemoving copied config and local folders...\n\e[97m'
|
||||
|
||||
for i in ags fish fontconfig foot fuzzel gtklock hypr mpv swaylock wlogout "starship.toml" rubyshot
|
||||
do v rm -rf "$HOME/.config/$i"
|
||||
done
|
||||
|
||||
v rm -rf "$HOME/.local/bin/fuzzel-emoji"
|
||||
|
||||
##############################################################################################################################
|
||||
|
||||
@@ -28,19 +36,14 @@ rm -rf "$HOME/.local/bin/fuzzel-emoji" "$HOME/.config/rubyshot"
|
||||
##############################################################################################################################
|
||||
|
||||
# Undo Step 1: Remove added user from video and input groups and remove yay packages
|
||||
echo 'Removing user from video and input groups and removing packages...'
|
||||
printf '\e[36mRemoving user from video and input groups and removing packages...\n\e[97m'
|
||||
user=$(whoami)
|
||||
echo 'sudo deluser "$user" video'
|
||||
sudo deluser "$user" video
|
||||
echo 'sudo deluser "$user" input'
|
||||
sudo deluser "$user" input
|
||||
echo 'User removed from video and input groups.'
|
||||
v sudo deluser "$user" video
|
||||
v sudo deluser "$user" input
|
||||
|
||||
##############################################################################################################################
|
||||
|
||||
# Removing installed yay packages and dependencies
|
||||
echo 'yay -Rns adw-gtk3-git brightnessctl cava foot fuzzel gjs gojq gradience-git grim gtk-layer-shell gtklock gtklock-playerctl-module gtklock-powerbar-module gtklock-userinfo-module hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc slurp starship swayidle swaylock swww tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool'
|
||||
yay -Rns adw-gtk3-git brightnessctl cava foot fuzzel gjs gojq gradience-git grim gtk-layer-shell gtklock gtklock-playerctl-module gtklock-powerbar-module gtklock-userinfo-module hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc slurp starship swayidle swaylock swww tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool
|
||||
v yay -Rns adw-gtk3-git brightnessctl cava foot fuzzel gjs gojq gradience-git grim gtk-layer-shell gtklock gtklock-playerctl-module gtklock-powerbar-module gtklock-userinfo-module hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc slurp starship swayidle swaylock swww tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool
|
||||
|
||||
|
||||
echo 'Uninstall Complete.'
|
||||
printf '\e[36mUninstall Complete.\n\e[97m'
|
||||
|
||||
Reference in New Issue
Block a user