mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
greedydoc
Add documentation on how to use GreedyView as your default workspace switcher.
This commit is contained in:
parent
cb1921b89a
commit
fb8cddf4b4
@ -1,6 +1,27 @@
|
|||||||
-- greedyView is an alternative to standard workspace switching. When a
|
-- greedyView is an alternative to standard workspace switching. When a
|
||||||
-- workspace is already visible on another screen, greedyView swaps the
|
-- workspace is already visible on another screen, greedyView swaps the
|
||||||
-- contents of that other screen with the current screen.
|
-- contents of that other screen with the current screen.
|
||||||
|
--
|
||||||
|
-- To use GreedyView as your default workspace switcher,
|
||||||
|
--
|
||||||
|
-- Add this import :
|
||||||
|
--
|
||||||
|
-- import XMonadContrib.GreedyView
|
||||||
|
--
|
||||||
|
-- And replace the function call used to switch workspaces,
|
||||||
|
--
|
||||||
|
-- this :
|
||||||
|
--
|
||||||
|
-- [((m .|. modMask, k), f i)
|
||||||
|
-- | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
|
||||||
|
-- , (f, m) <- [(view, 0), (shift, shiftMask)]]
|
||||||
|
--
|
||||||
|
-- becomes this :
|
||||||
|
--
|
||||||
|
-- [((m .|. modMask, k), f i)
|
||||||
|
-- | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
|
||||||
|
-- , (f, m) <- [(greedyView, 0), (shift, shiftMask)]]
|
||||||
|
--
|
||||||
|
|
||||||
module XMonadContrib.GreedyView (greedyView) where
|
module XMonadContrib.GreedyView (greedyView) where
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user