mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
add dmenu support, seems to work, but the resulting client isn't launched
This commit is contained in:
parent
48fe0f45f2
commit
fff10368e3
3
Main.hs
3
Main.hs
@ -92,7 +92,7 @@ handler (KeyEvent {event_type = t, state = mod, keycode = code})
|
|||||||
handler _ = return ()
|
handler _ = return ()
|
||||||
|
|
||||||
--
|
--
|
||||||
-- switch focus (?)
|
-- switch focus to next window in list.
|
||||||
--
|
--
|
||||||
switch :: W ()
|
switch :: W ()
|
||||||
switch = do
|
switch = do
|
||||||
@ -115,6 +115,7 @@ spawn = io_ . runCommand
|
|||||||
keys :: [(KeyMask, KeySym, W ())]
|
keys :: [(KeyMask, KeySym, W ())]
|
||||||
keys =
|
keys =
|
||||||
[ (mod1Mask .|. shiftMask, xK_Return, spawn "xterm")
|
[ (mod1Mask .|. shiftMask, xK_Return, spawn "xterm")
|
||||||
|
, (mod1Mask, xK_p, spawn "exec=`dmenu_path | dmenu` && exec $exe")
|
||||||
, (controlMask, xK_space, spawn "gmrun")
|
, (controlMask, xK_space, spawn "gmrun")
|
||||||
, (mod1Mask, xK_Tab, switch)
|
, (mod1Mask, xK_Tab, switch)
|
||||||
, (mod1Mask .|. shiftMask, xK_q, io $ exitWith ExitSuccess)
|
, (mod1Mask .|. shiftMask, xK_q, io $ exitWith ExitSuccess)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user