From 8b09525226e651c68d5f917649b6fe1a01686d03 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sun, 17 Dec 2023 12:11:43 +0900 Subject: Updated Wallpaper automatic change to not refresh waybar to avoid annoyance :) --- config/hypr/scripts/RefreshNoWaybar.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 config/hypr/scripts/RefreshNoWaybar.sh (limited to 'config/hypr/scripts/RefreshNoWaybar.sh') 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 -- cgit v1.2.3