mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -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 (
|
module XMonadContrib.XMonadPrompt (
|
||||||
-- * Usage
|
-- * Usage
|
||||||
-- $usage
|
-- $usage
|
||||||
xmonadPrompt
|
xmonadPrompt,
|
||||||
|
xmonadPromptC
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import XMonad
|
import XMonad
|
||||||
@@ -45,3 +46,7 @@ instance XPrompt XMonad where
|
|||||||
|
|
||||||
xmonadPrompt :: XPConfig -> X ()
|
xmonadPrompt :: XPConfig -> X ()
|
||||||
xmonadPrompt c = mkXPrompt XMonad c (mkComplFunFromList (map fst defaultCommands)) runCommand'
|
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