Score:0

How do I launch an application in a specific virtual desktop with xfwm4?

pk flag

I am using Ubuntu with xcfe.

I would like to launch an application - for example, Chromium - in one of the specific virtual desktops offered in xfwm4, with a terminal command.

What command would allow me to do this?

Score:0
cn flag

The command wmctrl works on any desktop. The command wmctrl -s 1 will activate workspace 2 (wmctrl starts counting from 0). Follow this by the command for launching your application, and you will be there.

To bind that to a hotkey, you can use the construct:

sh-c 'wmctrl -s 1 && <yourcommand>'
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.