mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-05 22:51:52 -07:00
Docstring parser for generating xmonad build configs with default settings for extensions
This commit is contained in:
@@ -42,7 +42,7 @@ import Data.Maybe
|
||||
--
|
||||
-- and add a keybinding to the runCommand action:
|
||||
--
|
||||
-- > , ((modMask .|. controlMask, xK_y), runCommand)
|
||||
-- > , ((modMask .|. controlMask, xK_y), runCommand commands)
|
||||
--
|
||||
-- and define the list commands:
|
||||
--
|
||||
@@ -54,6 +54,11 @@ import Data.Maybe
|
||||
-- 'commands'. (If you like it enough, you may even want to get rid
|
||||
-- of many of your other key bindings!)
|
||||
|
||||
-- %def commands :: [(String, X ())]
|
||||
-- %def commands = defaultCommands
|
||||
-- %import XMonadContrib.Commands
|
||||
-- %keybind , ((modMask .|. controlMask, xK_y), runCommand commands)
|
||||
|
||||
commandMap :: [(String, X ())] -> M.Map String (X ())
|
||||
commandMap c = M.fromList c
|
||||
|
||||
|
Reference in New Issue
Block a user