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

@ -26,8 +26,8 @@ source = ~/.local/share/omarchy/default/hypr/envs.conf
# Autostart necessary processes (like notifications daemons, status bars, etc.)
exec-once = hypridle & swaync & waybar
# Set a random image from ~/.local/share/backgrounds as the background
exec-once = swaybg -i $(find ~/.local/share/backgrounds/ -type f -print0 | shuf -zn1 | xargs -0 printf '%s\n')
# Control backgrounds
source = ~/.local/share/omarchy/default/hypr/backgrounds.conf
#####################
### LOOK AND FEEL ###

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')

View File

@ -1,2 +1,5 @@
# Prefer dark mode everything
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
# Download first background
curl -sL -o ~/.local/share/backgrounds/Milad-Fakurian-Abstract-Purple-Blue.jpg https://unsplash.com/photos/u8Jn2rzYIps/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8Mnx8YWJzdHJhY3QlMjB3YWxscGFwZXJ8ZW58MHx8fHwxNzQ5Mjc5ODk1fDA