blob: 7f9ecea8679714763f8f8735bb5de7727ecb7dcb (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
background="$(find /usr/share/backgrounds -type f | shuf -n 1)"
if [ -n "$WAYLAND_DISPLAY" ]; then
swaymsg output '*' background "$background" fill
else
find "/run/user/$(id -u)/" -name "sway-ipc*" \
-exec swaymsg -s "{}" output '*' background "$background" fill ";"
fi
|