mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
Make RotView build, and add a brief description.
This commit is contained in:
parent
13006a89c2
commit
0ace4a78fc
@ -1,4 +1,6 @@
|
||||
module XMonad.RotView ( rotView ) where
|
||||
module XMonadContrib.RotView ( rotView ) where
|
||||
|
||||
-- Provides bindings to cycle through non-empty workspaces.
|
||||
|
||||
-- To use:
|
||||
-- include XMonad.RotView
|
||||
@ -14,7 +16,7 @@ import XMonad ( X, WorkspaceId, workspace )
|
||||
import StackSet ( StackSet, focus )
|
||||
import qualified StackSet as W ( current )
|
||||
|
||||
rotView :: Bool -> X m ()
|
||||
rotView :: Bool -> X ()
|
||||
rotView b = do ws <- gets workspace
|
||||
let m = W.current ws
|
||||
allws = if b then allWorkspaces ws else reverse $ allWorkspaces ws
|
||||
|
Loading…
x
Reference in New Issue
Block a user