From 026f3b75804fcb2a5095fd6f4c0a3a87bd4b9ead Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 9 Jun 2025 10:15:35 +0200 Subject: [PATCH] Switch to a random swaybg background --- config/hypr/hyprland.conf | 6 ++++-- config/hypr/hyprpaper.conf | 10 ---------- install/hyprlandia.sh | 4 ++-- 3 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 config/hypr/hyprpaper.conf diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 7ee85d9..6f594b7 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -24,8 +24,10 @@ bind = SUPER SHIFT, SPACE, exec, pkill -SIGUSR1 waybar source = ~/.local/share/omarchy/default/hypr/envs.conf # Autostart necessary processes (like notifications daemons, status bars, etc.) -# Or execute your favorite apps at launch like this: -exec-once = hypridle & hyprpaper & swaync & waybar +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') ##################### ### LOOK AND FEEL ### diff --git a/config/hypr/hyprpaper.conf b/config/hypr/hyprpaper.conf deleted file mode 100644 index e89f1a7..0000000 --- a/config/hypr/hyprpaper.conf +++ /dev/null @@ -1,10 +0,0 @@ -# All monitors like this -monitor=,preferred,1 - -# What a silly need of repetition -preload=~/.config/omarchy/wallpapers/birds-mountain.png -wallpaper=,~/.config/omarchy/wallpapers/birds-mountain.png - -# Stretch or fit -# Options: center, tile, stretch, fit, fill -ipc = off diff --git a/install/hyprlandia.sh b/install/hyprlandia.sh index b632b6f..85fcb61 100644 --- a/install/hyprlandia.sh +++ b/install/hyprlandia.sh @@ -1,6 +1,6 @@ yay -S --noconfirm --needed \ - hyprland hyprpaper hyprshot hyprlock hypridle hyprpolkitagent hyprland-qtutils \ - waybar swaync \ + hyprland hyprshot hyprlock hypridle hyprpolkitagent hyprland-qtutils \ + waybar swaync swaybg \ xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gnome # Start Hyprland on first session