diff options
| author | JaKooLit <ejhay.games@gmail.com~> | 2025-02-10 15:42:58 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com~> | 2025-02-10 15:42:58 +0900 |
| commit | 0b9692e2125eb6517b162e93287b4cad97b6c4d6 (patch) | |
| tree | 9150ecba47077ce9b030640b7042ef719cdf341b | |
| parent | ba0f1312534abd39a78463eac98049ab14ea4117 (diff) | |
minor dark light and refresh update
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 17 | ||||
| -rwxr-xr-x | config/hypr/scripts/Refresh.sh | 21 |
2 files changed, 15 insertions, 23 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 0ad5e0dc..01b05b1c 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -110,9 +110,9 @@ else sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}" fi -for pid in $(pidof kitty); do - kill -SIGUSR1 "$pid" -done +#for pid in $(pidof kitty); do +# kill -SIGUSR1 "$pid" +#done # Set Dynamic Wallpaper for Dark or Light Mode @@ -234,19 +234,16 @@ update_theme_mode ${SCRIPTSDIR}/WallustSwww.sh && # some process to kill -_ps=(waybar rofi swaync ags swaybg) -for _prs in "${_ps[@]}"; do - if pidof "${_prs}" >/dev/null; then - pkill "${_prs}" - fi +for pid in $(pidof kitty waybar rofi swaync ags swaybg); do + kill -SIGUSR1 "$pid" done sleep 2 ${SCRIPTSDIR}/Refresh.sh -sleep 0.3 +sleep 1 # Display notifications for theme and icon changes -notify-send -u normal -i "$notif" " Themes switched to:" " $next_mode Mode" +notify-send -u low -i "$notif" " Themes switched to:" " $next_mode Mode" exit 0 diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index c8c46695..77d7870f 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -25,30 +25,25 @@ done killall -SIGUSR2 waybar # added since wallust sometimes not applying # quit ags & relaunch ags -#ags -q && ags & +ags -q && ags & -# Kill waybar & swaync (yet again) # added since wallust sometimes not applying -_ps2=(waybar swaync) -for _prs2 in "${_ps2[@]}"; do - if pidof "${_prs2}" >/dev/null; then - killall "${_prs2}" - fi +# some process to kill +for pid in $(pidof waybar rofi swaync ags swaybg); do + kill -SIGUSR1 "$pid" done -# relaunch swaync -sleep 0.5 -swaync > /dev/null 2>&1 & - #Restart waybar sleep 1 waybar & +# relaunch swaync +sleep 0.5 +swaync > /dev/null 2>&1 & + # Relaunching rainbow borders if the script exists sleep 1 if file_exists "${UserScripts}/RainbowBorders.sh"; then ${UserScripts}/RainbowBorders.sh & fi - - exit 0
\ No newline at end of file |
