mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Prompt/*: add XConfig variable to keybindings in doc.
This commit is contained in:
parent
0d383fa26f
commit
9ff17a46aa
@ -32,7 +32,7 @@ import XMonad.Layout.LayoutCombinators ( JumpToLayout(..) )
|
|||||||
-- > import XMonad.Prompt
|
-- > import XMonad.Prompt
|
||||||
-- > import XMonad.Prompt.Layout
|
-- > import XMonad.Prompt.Layout
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. shiftMask, xK_m ), layoutPrompt defaultXPConfig)
|
-- > , ((modMask x .|. shiftMask, xK_m ), layoutPrompt defaultXPConfig)
|
||||||
|
|
||||||
-- WARNING: This prompt won't display all possible layouts, because the
|
-- WARNING: This prompt won't display all possible layouts, because the
|
||||||
-- code to enable this was rejected from xmonad core. It only displays
|
-- code to enable this was rejected from xmonad core. It only displays
|
||||||
|
@ -47,11 +47,11 @@ import Data.Maybe
|
|||||||
--
|
--
|
||||||
-- 2. In your keybindings add something like:
|
-- 2. In your keybindings add something like:
|
||||||
--
|
--
|
||||||
-- > , ((modMask, xK_F1), manPrompt defaultXPConfig)
|
-- > , ((modMask x, xK_F1), manPrompt defaultXPConfig)
|
||||||
|
|
||||||
-- %import XMonad.Prompt
|
-- %import XMonad.Prompt
|
||||||
-- %import XMonad.Prompt.Man
|
-- %import XMonad.Prompt.Man
|
||||||
-- %keybind , ((modMask, xK_F1), manPrompt defaultXPConfig)
|
-- %keybind , ((modMask x, xK_F1), manPrompt defaultXPConfig)
|
||||||
|
|
||||||
data Man = Man
|
data Man = Man
|
||||||
|
|
||||||
|
@ -40,12 +40,12 @@ import XMonad.Prompt
|
|||||||
--
|
--
|
||||||
-- 2. In your keybindings add something like:
|
-- 2. In your keybindings add something like:
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. controlMask, xK_x), shellPrompt defaultXPConfig)
|
-- > , ((modMask x .|. controlMask, xK_x), shellPrompt defaultXPConfig)
|
||||||
--
|
--
|
||||||
|
|
||||||
-- %import XMonad.Prompt
|
-- %import XMonad.Prompt
|
||||||
-- %import XMonad.Prompt.Shell
|
-- %import XMonad.Prompt.Shell
|
||||||
-- %keybind , ((modMask .|. controlMask, xK_x), shellPrompt defaultXPConfig)
|
-- %keybind , ((modMask x .|. controlMask, xK_x), shellPrompt defaultXPConfig)
|
||||||
|
|
||||||
data Shell = Shell
|
data Shell = Shell
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ import Data.Maybe
|
|||||||
--
|
--
|
||||||
-- 2. In your keybindings add something like:
|
-- 2. In your keybindings add something like:
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. controlMask, xK_s), sshPrompt defaultXPConfig)
|
-- > , ((modMask x .|. controlMask, xK_s), sshPrompt defaultXPConfig)
|
||||||
--
|
--
|
||||||
|
|
||||||
-- %import XMonad.Prompt
|
-- %import XMonad.Prompt
|
||||||
-- %import XMonad.Prompt.Ssh
|
-- %import XMonad.Prompt.Ssh
|
||||||
-- %keybind , ((modMask .|. controlMask, xK_s), sshPrompt defaultXPConfig)
|
-- %keybind , ((modMask x .|. controlMask, xK_s), sshPrompt defaultXPConfig)
|
||||||
|
|
||||||
data Ssh = Ssh
|
data Ssh = Ssh
|
||||||
|
|
||||||
|
@ -43,13 +43,13 @@ import XMonad.Actions.WindowBringer
|
|||||||
--
|
--
|
||||||
-- and in the keys definition:
|
-- and in the keys definition:
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. shiftMask, xK_g ), windowPromptGoto defaultXPConfig)
|
-- > , ((modMask x .|. shiftMask, xK_g ), windowPromptGoto defaultXPConfig)
|
||||||
-- > , ((modMask .|. shiftMask, xK_b ), windowPromptBring defaultXPConfig)
|
-- > , ((modMask x .|. shiftMask, xK_b ), windowPromptBring defaultXPConfig)
|
||||||
|
|
||||||
-- %import XMonad.Prompt
|
-- %import XMonad.Prompt
|
||||||
-- %import XMonad.Prompt.Window
|
-- %import XMonad.Prompt.Window
|
||||||
-- %keybind , ((modMask .|. shiftMask, xK_g ), windowPromptGoto defaultXPConfig)
|
-- %keybind , ((modMask x .|. shiftMask, xK_g ), windowPromptGoto defaultXPConfig)
|
||||||
-- %keybind , ((modMask .|. shiftMask, xK_b ), windowPromptBring defaultXPConfig)
|
-- %keybind , ((modMask x .|. shiftMask, xK_b ), windowPromptBring defaultXPConfig)
|
||||||
|
|
||||||
|
|
||||||
data WindowPrompt = Goto | Bring
|
data WindowPrompt = Goto | Bring
|
||||||
|
@ -30,7 +30,7 @@ import XMonad.StackSet ( workspaces, tag )
|
|||||||
-- > import XMonad.Prompt
|
-- > import XMonad.Prompt
|
||||||
-- > import XMonad.Prompt.Workspace
|
-- > import XMonad.Prompt.Workspace
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. shiftMask, xK_m ), workspacePrompt defaultXPConfig (windows . W.shift))
|
-- > , ((modMask x .|. shiftMask, xK_m ), workspacePrompt defaultXPConfig (windows . W.shift))
|
||||||
|
|
||||||
data Wor = Wor String
|
data Wor = Wor String
|
||||||
|
|
||||||
|
@ -32,12 +32,12 @@ import XMonad.Actions.Commands (defaultCommands, runCommand')
|
|||||||
--
|
--
|
||||||
-- in your keybindings add:
|
-- in your keybindings add:
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. controlMask, xK_x), xmonadPrompt defaultXPConfig)
|
-- > , ((modMask x .|. controlMask, xK_x), xmonadPrompt defaultXPConfig)
|
||||||
--
|
--
|
||||||
|
|
||||||
-- %import XMonad.Prompt
|
-- %import XMonad.Prompt
|
||||||
-- %import XMonad.Prompt.XMonad
|
-- %import XMonad.Prompt.XMonad
|
||||||
-- %keybind , ((modMask .|. controlMask, xK_x), xmonadPrompt defaultXPConfig)
|
-- %keybind , ((modMask x .|. controlMask, xK_x), xmonadPrompt defaultXPConfig)
|
||||||
|
|
||||||
data XMonad = XMonad
|
data XMonad = XMonad
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user