20 lines
464 B
Plaintext
20 lines
464 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
M=$(xrandr -q | awk '/ connected/ {print $1}')
|
||
|
NUM=$(echo "$M" | wc -l)
|
||
|
|
||
|
ettin() {
|
||
|
sec=$(echo "$M" | awk NR==2)
|
||
|
xrandr --output LVDS1 --primary --auto --scale 1.0x1.0 --output "$sec" --right-of LVDS1 --auto --scale 1.0x1.0
|
||
|
setbg
|
||
|
bspc monitor LVDS1 -d 1 2 3 4 5
|
||
|
bspc monitor "$sec" -d 6 7 8 9 10
|
||
|
bspc rule -a Firefox:Navigator state=tiled, desktop='^6'
|
||
|
}
|
||
|
|
||
|
if [ "$NUM" = 1 ]; then
|
||
|
unimon
|
||
|
elif [ "$NUM" = 2 ]; then
|
||
|
ettin
|
||
|
fi
|