blob: eb319d0e81500639dc374bc5cbef0073e32dae67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
mon="1"
[ -n "$2" ] && mon="$2"
cp $1 "$HOME/.config/wall$mon.png"
IFS=$'\n'
outputcf=$(grep '^output .* background.*$' ~/.config/sway/config)
for line in $outputcf; do
swaymsg $line
done
|