Skip to content

Commit

Permalink
switch to swaync in favor of dunst
Browse files Browse the repository at this point in the history
  • Loading branch information
JaKooLit committed Dec 29, 2023
1 parent 4017bba commit b75495c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 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
- zsh theme switched to `agnoster` theme by default
- pywal tty color change disabled by default
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ sudo ninja -C build install
#### 🙋 Got a questions regarding the Hyprland Dots configurations? 🙋
- 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:
- ~~[ ] Install zsh and oh-my-zsh without necessary steps above~~ DONE
Expand Down
34 changes: 33 additions & 1 deletion install-scripts/00-hypr-pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Extra=(
# packages neeeded
hypr_package=(
cliphist
dunst
grim
gvfs
gvfs-backends
Expand All @@ -31,6 +30,7 @@ hypr_package=(
qt5-style-kvantum-themes
qt6ct
slurp
sway-notification-center
waybar
wget
wl-clipboard
Expand All @@ -57,6 +57,11 @@ hypr_package_2=(
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! ######################################
# Determine the directory where the script is located
Expand Down Expand Up @@ -101,6 +106,24 @@ install_package() {
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
printf "\n%s - Installing hyprland packages.... \n" "${NOTE}"

Expand All @@ -112,6 +135,15 @@ for PKG1 in "${hypr_package[@]}" "${hypr_package_2[@]}" "${Extra[@]}"; do
fi
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
printf "\n%s - Installing cliphist using go.... \n" "${NOTE}"
Expand Down

0 comments on commit b75495c

Please sign in to comment.