summaryrefslogtreecommitdiffstats
path: root/roles/hyprtheme/files
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-03-22 17:51:44 +0100
committerAhmed Abdelhalim <[email protected]>2026-03-22 17:51:44 +0100
commitd3fe12617fbbf8c452f16d03672726a9a403297b (patch)
tree3a107ee9c67bdba296e86c3c83447d7bb5dbe72c /roles/hyprtheme/files
parentf302e1a91e0447fb646575cd019b3900c0f9cd91 (diff)
Fix theming wallpaper persistence
Diffstat (limited to 'roles/hyprtheme/files')
-rwxr-xr-xroles/hyprtheme/files/scripts/wallpaper.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/hyprtheme/files/scripts/wallpaper.sh b/roles/hyprtheme/files/scripts/wallpaper.sh
index 35654b94..4a1f61b2 100755
--- a/roles/hyprtheme/files/scripts/wallpaper.sh
+++ b/roles/hyprtheme/files/scripts/wallpaper.sh
@@ -25,6 +25,8 @@ show_wallpapers() {
}
select_wallpaper() {
+ local wallpaper_link="$HOME/.config/hyprtheme/current/wallpaper"
+
local selected_wallpaper="$1"
if [[ ! -f "$selected_wallpaper" ]]; then
notify-send -e \
@@ -37,8 +39,9 @@ select_wallpaper() {
exit 0
fi
+ ln -nsf "$selected_wallpaper" "$wallpaper_link"
pkill -x swaybg
- setsid uwsm-app -- swaybg -i "$selected_wallpaper" -m fill >/dev/null 2>&1 &
+ setsid uwsm-app -- swaybg -i "$wallpaper_link" -m fill >/dev/null 2>&1 &
}
if [[ -z "$1" ]]; then