You are not logged in.
Pages: 1
I've set up an xbindkey with the command "urxvt -e ncmpcpp", essentially just directly opening up an ncmpcpp window. Is there a way to force send this to a certain desktop in xmonad? xprop gives the following:
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_PID(CARDINAL) = 6454
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x1c0000a
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 14 by 23
program specified resize increment: 10 by 19
program specified base size: 4 by 4
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "brian-desktop"
WM_COMMAND(STRING) = { "urxvt", "-e", "ncmpcpp" }
_NET_WM_ICON_NAME(UTF8_STRING) = "Beastie Boys - Bodhisattva Vow"
WM_ICON_NAME(STRING) = "Beastie Boys - Bodhisattva Vow"
_NET_WM_NAME(UTF8_STRING) = "Beastie Boys - Bodhisattva Vow"
WM_NAME(STRING) = "Beastie Boys - Bodhisattva Vow"
I checked the ManageHook xmonad documentation (http://xmonad.org/xmonad-docs/xmonad/XM … eHook.html) and googled around a bit and I came up with the following:
stringProperty "WM_COMMAND" =? "ncmpcpp" --> doShift "Music"
Where music is the desktop that I want to send it to. However, this doesn't do anything. What am I doing wrong?
EDIT: I also tried the following but it didn't work either:
stringProperty "WM_COMMAND" =? "urxvt -e ncmpcpp" --> doShift "Music"
Last edited by iamsmrt (2011-02-06 22:37:40)
Offline
Probably the simplest way is to pass the terminal a title (probably Music, ncmpcpp, etc.) and bind that in your ManageHook.
Alternately, you might look into Xmonad.Util.NamedScratchPad; you could create one for your ncmpcpp terminal and bind that to a key to show or hide it.
Offline
Pages: 1