mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
Added xmonadPromptC
I added xmonadPromptC which takes a user defined list of commands as in Command.runCommand
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
module XMonadContrib.XMonadPrompt (
|
||||
-- * Usage
|
||||
-- $usage
|
||||
xmonadPrompt
|
||||
xmonadPrompt,
|
||||
xmonadPromptC
|
||||
) where
|
||||
|
||||
import XMonad
|
||||
@@ -45,3 +46,7 @@ instance XPrompt XMonad where
|
||||
|
||||
xmonadPrompt :: XPConfig -> X ()
|
||||
xmonadPrompt c = mkXPrompt XMonad c (mkComplFunFromList (map fst defaultCommands)) runCommand'
|
||||
|
||||
-- xmonad prompt with custom command list
|
||||
xmonadPromptC :: [(String, X ())] -> XPConfig -> X ()
|
||||
xmonadPromptC commands c = mkXPrompt XMonad c (mkComplFunFromList (map fst commands)) runCommand'
|
||||
|
Reference in New Issue
Block a user