baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

Elementary OS GNU/Linux: move window between desktop spaces (start application on specific desktop space)

#/bin/bash
application=VMware
desktop_space=2
wmctrl -s $desktop_space
wmctrl -i -r `wmctrl -l | grep "$application" | cut -d ' ' -f 1` -t $desktop_space

See also:
https://superuser.com/questions/236526/how-to-open-a-program-on-particular-desktop
https://linux.die.net/man/1/devilspie

Comments are currently closed.