diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-17 12:24:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 12:24:05 +0900 |
| commit | 948d1db075ec815983628ebf467d0d49bbe1b5e4 (patch) | |
| tree | 4b2b701c472940680d305d12d508f7eb64843159 /config/hypr/scripts/RefreshNoWaybar.sh | |
| parent | a9d868a61549b1a8d1e3f4f8b1e7cc13441fddea (diff) | |
| parent | 1ddbdc34f9544d9d54c1a9c1717955573484eac2 (diff) | |
Merge pull request #77 from JaKooLit/Development
updated automatic wallpaper change
Diffstat (limited to 'config/hypr/scripts/RefreshNoWaybar.sh')
| -rwxr-xr-x | config/hypr/scripts/RefreshNoWaybar.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh new file mode 100755 index 00000000..f177438d --- /dev/null +++ b/config/hypr/scripts/RefreshNoWaybar.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# Modified version of Refresh but no waybar refresh +# Used by automatic wallpaper change +# Modified inorder to refresh rofi background, Pywal + +SCRIPTSDIR=$HOME/.config/hypr/scripts + +# Kill already running processes +_ps=(rofi) +for _prs in "${_ps[@]}"; do + if pidof "${_prs}" >/dev/null; then + pkill "${_prs}" + fi +done + +sleep 0.1 +# Relaunch dunst with pywal-borders +${SCRIPTSDIR}/PywalDunst.sh & + +# Pywal refresh +${SCRIPTSDIR}/PywalSwww.sh & + +# Relaunching rainbow borders +sleep 1 +${SCRIPTSDIR}/RainbowBorders.sh & + +# for cava-pywal (note, need to manually restart cava once wallpaper changes) +ln -sf "$HOME/.cache/wal/cava-colors" "$HOME/.config/cava/config" || true
\ No newline at end of file |
