2018-04-18 15:51:14 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-04-18 17:37:06 +02:00
|
|
|
if [[ $(iwgetid -r) = *adazio* ]];
|
|
|
|
then
|
|
|
|
echo "@Work"
|
2018-04-22 18:44:43 +02:00
|
|
|
~/.i3/scripts/work-monitors.sh &
|
|
|
|
~/.i3/scripts/work-layout.sh &
|
2018-04-18 17:37:06 +02:00
|
|
|
fi
|
|
|
|
if [[ $(iwgetid -r) = *moerks.dk* ]];
|
|
|
|
then
|
|
|
|
echo "@Home"
|
2018-04-22 18:44:43 +02:00
|
|
|
~/.i3/scripts/home-monitors.sh &
|
|
|
|
~/.i3/scripts/home-layout.sh &
|
2018-04-18 17:37:06 +02:00
|
|
|
fi
|
|
|
|
|
2018-04-22 18:44:43 +02:00
|
|
|
sleep 1
|
|
|
|
. ~/.i3/env
|
|
|
|
|
2018-04-18 17:37:06 +02:00
|
|
|
echo $PRIMARY
|
|
|
|
echo $SECONDARY
|
|
|
|
echo $LAPTOP
|
|
|
|
|
|
|
|
sleep 1
|
2018-04-22 18:44:43 +02:00
|
|
|
i3-msg "workspace 1:Comms; move workspace to output $SECONDARY"
|
|
|
|
i3-msg "workspace 2:Web; move workspace to output $PRIMARY"
|
|
|
|
i3-msg "workspace 3:IDE; move workspace to output $PRIMARY"
|
|
|
|
i3-msg "workspace 4:Work; move workspace to output $PRIMARY"
|
|
|
|
i3-msg "workspace 5:OC; move workspace to output $PRIMARY"
|
|
|
|
i3-msg "workspace 6:Logs; move workspace to output $SECONDARY"
|
|
|
|
i3-msg "workspace 7:Term; move workspace to output $PRIMARY"
|
|
|
|
i3-msg "workspace 8:Media; move workspace to output $LAPTOP"
|
|
|
|
|
|
|
|
exit
|