mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -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,15 +53,19 @@ import XMonad.Hooks.DynamicLog
|
||||
-- to specific workspace names. In the default configuration, only
|
||||
-- the keybindings for changing workspace do this:
|
||||
--
|
||||
-- > [((m .|. modm, k), windows $ f i)
|
||||
-- > | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
||||
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
-- > keyBindings conf = let m = modMask conf in fromList $
|
||||
-- > {- lots of other keybindings -}
|
||||
-- > [((m .|. modm, k), windows $ f i)
|
||||
-- > | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
||||
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
--
|
||||
-- This should change to
|
||||
--
|
||||
-- > [((m .|. modm, k), windows $ onCurrentScreen f i)
|
||||
-- > | (i, k) <- zip (workspaces' conf) [xK_1 .. xK_9]
|
||||
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
-- > keyBindings conf = let m = modMask conf in fromList $
|
||||
-- > {- lots of other keybindings -}
|
||||
-- > [((m .|. modm, k), windows $ onCurrentScreen f i)
|
||||
-- > | (i, k) <- zip (workspaces' conf) [xK_1 .. xK_9]
|
||||
-- > , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
||||
--
|
||||
-- In particular, the analogue of @XMonad.workspaces@ is
|
||||
-- @workspaces'@, and you can use @onCurrentScreen@ to convert functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user