blob: 748c6819a20ab6eb760c5b785f328f3b464ec398 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
. $(dirname "$(realpath "$0")")/env.sh
pkill -x swaybg >/dev/null
swaybg -o $primary -i $bg1 &
if [ "$XDG_CURRENT_DESKTOP" = "sway" ]; then
for workspace in 1:1 2:2 3:3 4:4 5:a 6:s 7:d 8:f; do
swaymsg -q workspace $workspace output $primary
done
elif [ "$XDG_CURRENT_DESKTOP" = "niri" ]; then
for workspace in 1:1 2:2 3:3 4:4 5:a 6:s 7:d 8:f; do
niri msg action move-workspace-to-monitor --reference $workspace $primary
done
fi
|