-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-i3.sh
executable file
·29 lines (22 loc) · 1.1 KB
/
config-i3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
MONITOR_1=$(xrandr --listmonitors | cut -d " " -f6 | grep -v "^$" | sed -n "1p")
MONITOR_2=$(xrandr --listmonitors | cut -d " " -f6 | grep -v "^$" | sed -n "2p")
MONITOR_3=$(xrandr --listmonitors | cut -d " " -f6 | grep -v "^$" | sed -n "3p")
if [ $USER == "ruhland" ]
then
MONITOR_3=$(xrandr --listmonitors | cut -d " " -f6 | grep -v "^$" | sed -n "2p")
MONITOR_2=$(xrandr --listmonitors | cut -d " " -f6 | grep -v "^$" | sed -n "3p")
fi
echo "MONITOR_1=${MONITOR_1}"
echo "MONITOR_2=${MONITOR_2}"
echo "MONITOR_3=${MONITOR_3}"
i3-msg "workspace 1; move workspace to output $MONITOR_1"
i3-msg "workspace 2; move workspace to output $MONITOR_1"
i3-msg "workspace 3; move workspace to output $MONITOR_1"
i3-msg "workspace 4; move workspace to output $MONITOR_2"
i3-msg "workspace 5; move workspace to output $MONITOR_2"
i3-msg "workspace 6; move workspace to output $MONITOR_2"
i3-msg "workspace 7; move workspace to output $MONITOR_2"
i3-msg "workspace 8; move workspace to output $MONITOR_3"
i3-msg "workspace 9; move workspace to output $MONITOR_3"
i3-msg "workspace 10; move workspace to output $MONITOR_3"