You are not logged in.

#1 2014-02-16 21:11:04

filk
Member
Registered: 2013-02-15
Posts: 15

xmonad/dmenu: open application window on same desktop it was launched

I use dmenu to launch applications in xmonad, and I'm wondering if there's any way to make sure the window opens on the same desktop as dmenu was invoked. I often launch a heavier application like firefox, chrome or Steam, then switch back to another desktop with a terminal or something to continue what I was doing while waiting for it to load. Unfortunately, once the application does load in 4 or 5 seconds, it opens on the desktop I'm currently viewing rather than where I launched dmenu.

Any way to get a behaviour where xmonad remembers where dmenu was invoked and places windows there?

Offline

#2 2014-02-17 20:19:55

Mad_Hatter93
Member
Registered: 2012-06-30
Posts: 19

Re: xmonad/dmenu: open application window on same desktop it was launched

The easiest way is to have program workspace allocation automatically assign them, such as having Firefox always open on tag 2, Steam on tag 3, Consoles on tag 1, and so on, and then moving them as the need arises.

Offline

#3 2014-02-18 01:07:02

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: xmonad/dmenu: open application window on same desktop it was launched

XMonad.Actions.SpawnOn from xmonad contrib?

*EDIT*

To clarify, it has the spawnHere command that may do what you want.

Last edited by skottish (2014-02-18 01:37:49)

Offline

Board footer

Powered by FluxBB