Skip to content

Instantly share code, notes, and snippets.

@CSaratakij
Created December 9, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CSaratakij/dce87947da2e44106225acf33a24d299 to your computer and use it in GitHub Desktop.
Save CSaratakij/dce87947da2e44106225acf33a24d299 to your computer and use it in GitHub Desktop.
Spawn Terminal Layout in i3wm
#!/bin/sh
#----------------------------------------#
# Auto Start App on specific workspace. #
#----------------------------------------#
# Setup Bar
exec polybar mystatus -q &
# Setup Workspace 8
i3-msg "workspace 8"
i3-msg "workspace 8; exec st -ai -e alsamixer -g"
sleep 0.8;
i3-msg "workspace 8; floating disable"
i3-msg "workspace 8; split h"
i3-msg "workspace 8; exec st -ai -e cmus"
sleep 0.8;
i3-msg "workspace 8; floating disable"
i3-msg "workspace 8; split v"
i3-msg "workspace 8; exec st -ai -e cava"
sleep 0.8;
i3-msg "workspace 8; floating disable"
for i in {1..5}
do
i3-msg "resize grow left 6 px"
i3-msg "resize shrink up 6 px"
done
i3-msg "resize grow left 6 px"
sleep 0.8;
# Setup Workspace 9
i3-msg "workspace 9; exec st"
sleep 0.8;
# Setup Workspace 10
i3-msg "workspace 10"
i3-msg "workspace 10; exec run_autoupdate.sh"
sleep 0.8;
i3-msg "workspace 10; floating disable"
# Back to Workspace 1
i3-msg "workspace 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment