diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-02-28 18:34:41 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-02-28 18:34:41 +0000 |
commit | c808916e402148b59a97ed41d179efb75dc8b8f3 (patch) | |
tree | 8f372c5ab09144208177a505eb60ce4a095ab9d9 /.config/hypr | |
parent | 98257ac89ad392ffecf365e2a5827355ee130ef3 (diff) |
Changed the way the wallpaper is stored in .cache/wallpaper as it's now just a path instead of the actual image
Diffstat (limited to '.config/hypr')
-rwxr-xr-x | .config/hypr/scripts/wallpaper.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/hypr/scripts/wallpaper.sh b/.config/hypr/scripts/wallpaper.sh index 13aae39..2c87158 100755 --- a/.config/hypr/scripts/wallpaper.sh +++ b/.config/hypr/scripts/wallpaper.sh @@ -1,6 +1,12 @@ #!/bin/sh +# Read file path into variable +read -r wallpaper<~/.cache/wallpaper + if pgrep swaybg; then pkill swaybg fi -swaybg -m fill -i ~/.cache/wallpaper +swaybg -m fill -i "$wallpaper" +# hyprctl hyprpaper preload "$wallpaper" +# hyprctl hyprpaper wallpaper " , $wallpaper" +# hyprctl hyprpaper unload unused |