aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/DarkLight.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-11-27 15:37:18 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-11-27 15:37:18 +0900
commitbfb3594b4a32edc4dfb9de609f4cdb763bafa8f8 (patch)
tree635c6fa472d1b47312f17666f7587e5026ba7996 /config/hypr/scripts/DarkLight.sh
parent8eeed24b9579cf4cc76cc67dc4b5c73b2ef34573 (diff)
REVERTED BACK TO OLD DUNST STYLE AS PYWAL_DUNST LOOKS like crap
Diffstat (limited to 'config/hypr/scripts/DarkLight.sh')
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index 3c32778d..7d371a14 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -4,10 +4,10 @@ set -x
wallpaper_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers"
hypr_config_path="$HOME/.config/hypr"
waybar_config="$HOME/.config/waybar"
+dunst_config="$HOME/.config/dunst"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
dunst_notif="$HOME/.config/dunst/images/bell.png"
-
dark_rofi_pywal="$HOME/.cache/wal/colors-rofi-dark.rasi"
light_rofi_pywal="$HOME/.cache/wal/colors-rofi-light.rasi"
@@ -26,7 +26,6 @@ swww query || swww init
swww="swww img"
effect="--transition-bezier .43,1.19,1,.4 --transition-fps 60 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2"
-
notify_user() {
dunstify -u normal -i "$dunst_notif" "Switching to $1 mode"
}
@@ -43,6 +42,8 @@ path_param=$(echo $next_mode | sed 's/.*/\u&/')
notify_user "$next_mode"
+ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/dunstrc"
+
# Symlink for rofi theme
if [ "$next_mode" = "dark" ]; then
ln -sf $dark_rofi_pywal "$HOME/.config/rofi/pywal-color/pywal-theme.rasi"
@@ -72,6 +73,4 @@ echo "$next_wallpaper" > ~/.cache/.current_wallpaper
${SCRIPTSDIR}/PywalSwww.sh &
sleep 2
-${SCRIPTSDIR}/Refresh.sh &
-sleep 1
-${SCRIPTSDIR}/PywalDunst.sh \ No newline at end of file
+${SCRIPTSDIR}/Refresh.sh \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage