diff options
Diffstat (limited to 'config')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 12 | ||||
| -rwxr-xr-x | config/hypr/scripts/Refresh.sh | 22 | ||||
| -rwxr-xr-x | config/swaync/style.css | 4 |
3 files changed, 25 insertions, 13 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 50395493..dbbb9244 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -24,7 +24,7 @@ pallete_light="light16" pkill swaybg # Initialize swww if needed -swww query || swww-daemon +swww query || swww-daemon --format xrgb # Set swww options swww="swww img" @@ -109,6 +109,7 @@ else sed -i '/^background /s/^background .*/background #dddddd/' "${kitty_conf}" sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}" fi + for pid in $(pidof kitty); do kill -SIGUSR1 "$pid" done @@ -231,6 +232,15 @@ 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 +done + sleep 2 ${SCRIPTSDIR}/Refresh.sh diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 78f76702..77ba1496 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -1,6 +1,6 @@ #!/bin/bash # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -# Scripts for refreshing ags waybar, rofi, swaync, wallust +# Scripts for refreshing ags, waybar, rofi, swaync, wallust SCRIPTSDIR=$HOME/.config/hypr/scripts UserScripts=$HOME/.config/hypr/UserScripts @@ -27,21 +27,23 @@ killall -SIGUSR2 waybar # added since wallust sometimes not applying # quit ags ags -q -# relaunch swaync -sleep 0.5 -swaync > /dev/null 2>&1 & - # relaunch ags ags & -# Kill waybar (yet again) # added since wallust sometimes not applying -if pidof waybar >/dev/null; then - pkill waybar -fi +# 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 +done +# relaunch swaync +sleep 0.5 +swaync > /dev/null 2>&1 & -sleep 1 #Restart waybar +sleep 1 waybar & # Relaunching rainbow borders if the script exists diff --git a/config/swaync/style.css b/config/swaync/style.css index 3e36d56a..d18f3756 100755 --- a/config/swaync/style.css +++ b/config/swaync/style.css @@ -6,7 +6,7 @@ @define-color noti-border-color @color12; @define-color noti-bg rgba(0, 0, 0, 0.8); @define-color noti-bg-alt #111111; -@define-color noti-bg-hover @color9; +@define-color noti-bg-hover @color11; @define-color text-color @foreground; @define-color text-color-alt @foreground; @define-color text-color-disabled rgba(150, 150, 150, 0.8); @@ -32,7 +32,7 @@ } .notification-content{ - color: @text-color; + color: @foreground; background: @noti-bg; padding: 3px 10px 3px 6px; border-radius: 10px; |
