dotfiles/i3/.i3/scripts/dock.sh

33 lines
838 B
Bash
Executable File

#!/bin/bash
if [[ $(iwgetid -r) = *adazio* ]];
then
echo "@Work"
~/.i3/scripts/work-monitors.sh &
~/.i3/scripts/work-layout.sh &
fi
if [[ $(iwgetid -r) = *moerks.dk* ]];
then
echo "@Home"
~/.i3/scripts/home-monitors.sh &
~/.i3/scripts/home-layout.sh &
fi
sleep 1
. ~/.i3/env
echo $PRIMARY
echo $SECONDARY
echo $LAPTOP
sleep 1
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