swaybg: Fix single screen wallpaper display

This commit is contained in:
Marty Oehme 2025-02-28 09:24:43 +01:00
parent 96757895dc
commit 2627055e7c
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 7 additions and 3 deletions
desktop/.config/river
services/sv/swaybg

View file

@ -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"

View file

@ -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"