switch to swaync in favor of dunst

This commit is contained in:
Ja.KooLit 2023-12-29 17:23:42 +09:00
parent 4017bba779
commit b75495c177
3 changed files with 39 additions and 1 deletions

View File

@ -1,5 +1,8 @@
## Changelogs ## Changelogs
## 29 December 2023
- Remove dunst in favor of swaync. NOTE: Part of the script is to also uninstall mako and dunst (if installed) as on my experience, dunst is sometimes taking over the notification even if it is not set to start
## 16 Dec 2023 ## 16 Dec 2023
- zsh theme switched to `agnoster` theme by default - zsh theme switched to `agnoster` theme by default
- pywal tty color change disabled by default - pywal tty color change disabled by default

View File

@ -179,6 +179,9 @@ sudo ninja -C build install
#### 🙋 Got a questions regarding the Hyprland Dots configurations? 🙋 #### 🙋 Got a questions regarding the Hyprland Dots configurations? 🙋
- Head over to wiki Link [`WIKI`](https://github.com/JaKooLit/Hyprland-Dots/wiki) - Head over to wiki Link [`WIKI`](https://github.com/JaKooLit/Hyprland-Dots/wiki)
#### 🙋 👋 Having issues or questions?
- for the install part, kindly open issue on this repo
- for the Pre-configured Hyprland dots / configuration, submit issue [`here`](https://github.com/JaKooLit/Hyprland-Dots/issues)
#### 🛣️ Roadmap: #### 🛣️ Roadmap:
- ~~[ ] Install zsh and oh-my-zsh without necessary steps above~~ DONE - ~~[ ] Install zsh and oh-my-zsh without necessary steps above~~ DONE

View File

@ -14,7 +14,6 @@ Extra=(
# packages neeeded # packages neeeded
hypr_package=( hypr_package=(
cliphist cliphist
dunst
grim grim
gvfs gvfs
gvfs-backends gvfs-backends
@ -31,6 +30,7 @@ hypr_package=(
qt5-style-kvantum-themes qt5-style-kvantum-themes
qt6ct qt6ct
slurp slurp
sway-notification-center
waybar waybar
wget wget
wl-clipboard wl-clipboard
@ -57,6 +57,11 @@ hypr_package_2=(
wlsunset wlsunset
) )
# List of packages to uninstall as it conflicts with swaync or causing swaync to not function properly
uninstall=(
dunst
mako
)
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ###################################### ############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
# Determine the directory where the script is located # Determine the directory where the script is located
@ -101,6 +106,24 @@ install_package() {
fi fi
} }
# Function for uninstalling packages
uninstall_package() {
# Checking if package is installed
if sudo dpkg -l | grep -q -w "$1" ; then
# Package is installed
echo -e "${NOTE} Uninstalling $1 ..."
sudo apt-get autoremove -y "$1" 2>&1 | tee -a "$LOG"
# Making sure package is uninstalled
if ! sudo dpkg -l | grep -q -w "$1" ; then
echo -e "\e[1A\e[K${OK} $1 was uninstalled."
else
# Something went wrong, exiting to review log
echo -e "\e[1A\e[K${ERROR} $1 failed to uninstall. Please check the uninstall.log."
exit 1
fi
fi
}
# Installation of main components # Installation of main components
printf "\n%s - Installing hyprland packages.... \n" "${NOTE}" printf "\n%s - Installing hyprland packages.... \n" "${NOTE}"
@ -112,6 +135,15 @@ for PKG1 in "${hypr_package[@]}" "${hypr_package_2[@]}" "${Extra[@]}"; do
fi fi
done done
printf "\n%s - Checking if mako or dunst are installed and removing for swaync to work properly \n" "${NOTE}"
for PKG in "${uninstall[@]}"; do
uninstall_package "$PKG" 2>&1 | tee -a "$LOG"
if [ $? -ne 0 ]; then
echo -e "\e[1A\e[K${ERROR} - $PKG uninstallation had failed, please check the log"
exit 1
fi
done
# Install cliphist using go # Install cliphist using go
printf "\n%s - Installing cliphist using go.... \n" "${NOTE}" printf "\n%s - Installing cliphist using go.... \n" "${NOTE}"