diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2026-05-03 10:37:41 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2026-05-03 10:37:41 -0400 |
| commit | be002f4d0294f706a4a43925caea84379670f93b (patch) | |
| tree | ee1cf77bbf3046e19f3c9b1602c05a8513fdcb63 /scripts/change_wallpaper | |
| parent | c1a8b42fa8b439250b92efad483dc5a014dec164 (diff) | |
added sway. a whole bunch of changes.
Diffstat (limited to 'scripts/change_wallpaper')
| -rwxr-xr-x | scripts/change_wallpaper | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/change_wallpaper b/scripts/change_wallpaper index 11bf82c..64aa9b5 100755 --- a/scripts/change_wallpaper +++ b/scripts/change_wallpaper @@ -8,5 +8,9 @@ wallpaper=$(ls "$wallpaper_dir" | dmenu -p "Wallpaper: " -i -l 16) cd ~/pictures rm -f wallpaper ln -s "wallpapers/$wallpaper" wallpaper -xwallpaper --zoom ~/pictures/wallpaper & +if [ -z "WAYLAND_DISPLAY" ]; then + xwallpaper --zoom ~/pictures/wallpaper & +else + swaymsg 'output * background ~/pictures/wallpaper fill' +fi cd - > /dev/null |
