A bash script to start applications in certain workspaces

2

I'm dreaming of a Bash script that opens applications and places them in certain workspaces.

For example, I'd like to run a script that:

  • In Workspace 1 opens firefox
  • WS2 - opens term and maximizes it
  • WS3 - opens Sublime Text2 and maximizes it
  • WS4 - opens Pidgin, gpodder, and banshee

Is such a script possible in Ubuntu 13.04 running Cinnamon?

Rick

Posted 2013-09-06T21:11:36.073

Reputation: 265

Question was closed 2013-09-10T12:59:07.377

What OS and window manager? – ernie – 2013-09-06T22:24:36.237

Just added to post. Cinnamon on Ubuntu 13.04 – Rick – 2013-09-07T00:38:51.023

Answers

0

Yes, devilspie or wmctrl would do something close to what I'm asking. Link Ubuntu/ Gnome : Open an application in a specific workspace – wingedsubmariner left in the commets by @wingedsubmariner led me to these two utilities.

Essentially to answer the question -- once programs have been opened...

wmctrl -r mozilla -t 0 wmctrl -r mozilla -t 1

Rick

Posted 2013-09-06T21:11:36.073

Reputation: 265