Control backgrounds and be able to cycle through them

This commit is contained in:
David Heinemeier Hansson
2025-06-09 10:59:35 +02:00
parent 84e0ac5841
commit 3a3be9e38f
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,4 @@
# Set a random image from ~/.local/share/backgrounds as the background
# Picks another random background on SUPER + CTRL + SPACE
exec-once = swaybg -i $(find ~/.local/share/backgrounds/ -type f -print0 | shuf -zn1 | xargs -0 printf '%s\n')
bind = SUPER CTRL, SPACE, exec, pkill -x swaybg && setsid swaybg -i $(find ~/.local/share/backgrounds/ -type f -print0 | shuf -zn1 | xargs -0 printf '%s\n')