1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh if pgrep -x i3 && xrandr | grep 'HDMI.* connected'; then i3-msg focus left i3-msg workspace 3:👾 i3-msg focus right fi urxvt -e tmux new -s main & sleep 1 if pgrep -x i3 && xrandr | grep 'HDMI.* connected'; then i3-msg move workspace number 1:💻 i3-msg workspace number 1:💻 fi