How can I open an application when I open a certain workspace for the first time?
For instance when I open workspace 4 for the first time I would like firefox to open automatically in that workspace. How can I achieve this?
For instance when I open workspace 4 for the first time I would like firefox to open automatically in that workspace. How can I achieve this?
Check out this script from the i3ipc-python project
usage: app-on-ws-init.py [-h] [--workspace NAME] [--command CMD]
Open an application on a given workspace when it is initialized
optional arguments:
-h, --help show this help message and exit
--workspace NAME The name of the workspace
--command CMD The command to run on the newly initted workspace
Add an exec_always
line to your config with this script and --workspace=4 --command=firefox
[binary0010@Hephaestus .i3]$ ./apps-on-ws-init.py --workspace=4 --command=spotify Traceback (most recent call last): File "./apps-on-ws-init.py", line 23, in <module> i3.main() AttributeError: 'Connection' object has no attribute 'main'
Right now, you should have the python overrides installed from the i3ipc-python project page. That is meant to fix some quirks in the library but probably won't be necessary in the future. https://github.com/acrisci/i3ipc-python/releases/tag/v0.1.1
Asked: 2014-04-21 14:16:08 +0000
Seen: 246 times
Last updated: Apr 21 '14