mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
documentation patch: add a bit more context to the code snippets in X.L.IndependentScreens
This commit is contained in:
parent
c00dd7b51b
commit
189f489e03
@ -53,12 +53,16 @@ import XMonad.Hooks.DynamicLog
|
|||||||
-- to specific workspace names. In the default configuration, only
|
-- to specific workspace names. In the default configuration, only
|
||||||
-- the keybindings for changing workspace do this:
|
-- the keybindings for changing workspace do this:
|
||||||
--
|
--
|
||||||
|
-- > keyBindings conf = let m = modMask conf in fromList $
|
||||||
|
-- > {- lots of other keybindings -}
|
||||||
-- > [((m .|. modm, k), windows $ f i)
|
-- > [((m .|. modm, k), windows $ f i)
|
||||||
-- > | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
-- > | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
||||||
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||||
--
|
--
|
||||||
-- This should change to
|
-- This should change to
|
||||||
--
|
--
|
||||||
|
-- > keyBindings conf = let m = modMask conf in fromList $
|
||||||
|
-- > {- lots of other keybindings -}
|
||||||
-- > [((m .|. modm, k), windows $ onCurrentScreen f i)
|
-- > [((m .|. modm, k), windows $ onCurrentScreen f i)
|
||||||
-- > | (i, k) <- zip (workspaces' conf) [xK_1 .. xK_9]
|
-- > | (i, k) <- zip (workspaces' conf) [xK_1 .. xK_9]
|
||||||
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user