Automatiically start applications in specified workspaces upon launch of i3.
Patches i3 config temporarily to assign apps to workspaces, launches apps, then restores old configuration.
Call in i3 configuration like this:
exec --no-startup-id exec ~/.startup_apps.sh
- Set
APP_LAUNCH_WAIT
to the time in seconds your apps take to launch - Set
CONFIG
to path to i3 configuration.
- Add app binary name to
APPS
array. - Add name to
NAMES
to identify app based on the criterion inCRITERIA
.
Set criterion for app toclass
,instance
, ortitle
. Usually use class or title. Find class usingxprop
. - Add the name of the workspace to assign the app to
WORKSPACES
.
This is the only reliable and efficient way to launch multiple applications in specific namespaces at launch of i3 I have found.