From 2627055e7cff4ab5ae7e692c5188a517e08a562d Mon Sep 17 00:00:00 2001 From: Marty Oehme <contact@martyoeh.me> Date: Fri, 28 Feb 2025 09:24:43 +0100 Subject: [PATCH] swaybg: Fix single screen wallpaper display --- desktop/.config/river/init | 5 +++-- services/sv/swaybg/run | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index 7890dbb..4860fd7 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -313,8 +313,9 @@ if ! cat /etc/*-release | grep -q '^NAME=.*Void'; then if command -v swaybg >/dev/null 2>&1; then killall swaybg riverctl spawn "swaybg \ - -o 'LG Electronics W2442 0x000574E1' -i pictures/wall_l.jpg \ - -o 'LG Electronics W2442 0x000574FD' -i pictures/wall_r.jpg \ + -o 'LG Electronics W2442 0x000574E1' -i $HOME/pictures/wall_l.jpg \ + -o 'LG Electronics W2442 0x000574FD' -i $HOME/pictures/wall_r.jpg \ + -o 'Sharp Corporation 0x1449' -i $HOME/pictures/wall.jpg " elif command -v swww >/dev/null 2>&1; then riverctl spawn "swww-daemon" diff --git a/services/sv/swaybg/run b/services/sv/swaybg/run index 15d96b1..6fe9fa6 100755 --- a/services/sv/swaybg/run +++ b/services/sv/swaybg/run @@ -3,4 +3,7 @@ [ -r ./conf ] && . ./conf exec 2>&1 -exec chpst -e "$TURNSTILE_ENV_DIR" swaybg -o "LG Electronics W2442 0x000574E1" -i "$HOME/pictures/wall_l.jpg" -o "LG Electronics W2442 0x000574FD" -i "$HOME/pictures/wall_r.jpg" +exec chpst -e "$TURNSTILE_ENV_DIR" swaybg \ + -o "LG Electronics W2442 0x000574E1" -i "$HOME/pictures/wall_l.jpg" \ + -o "LG Electronics W2442 0x000574FD" -i "$HOME/pictures/wall_r.jpg" \ + -o "Sharp Corporation 0x1449" -i "$HOME/pictures/wall.jpg"