mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
RotView.hs: info and documentation
This commit is contained in:
parent
13683bc92f
commit
399b955eb6
32
RotView.hs
32
RotView.hs
@ -1,12 +1,22 @@
|
|||||||
module XMonadContrib.RotView ( rotView ) where
|
-----------------------------------------------------------------------------
|
||||||
|
-- |
|
||||||
|
-- Module : XMonadContrib.RotView
|
||||||
|
-- Copyright : (c) David Roundy <droundy@darcs.net>
|
||||||
|
-- License : BSD3-style (see LICENSE)
|
||||||
|
--
|
||||||
|
-- Maintainer : David Roundy <droundy@darcs.net>
|
||||||
|
-- Stability : unstable
|
||||||
|
-- Portability : unportable
|
||||||
|
--
|
||||||
-- Provides bindings to cycle through non-empty workspaces.
|
-- Provides bindings to cycle through non-empty workspaces.
|
||||||
|
--
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
-- To use:
|
module XMonadContrib.RotView (
|
||||||
-- import XMonadContrib.RotView
|
-- * Usage
|
||||||
|
-- $usage
|
||||||
-- , ((modMask .|. shiftMask, xK_Right), rotView True)
|
rotView
|
||||||
-- , ((modMask .|. shiftMask, xK_Left), rotView False)
|
) where
|
||||||
|
|
||||||
import Control.Monad.State ( gets )
|
import Control.Monad.State ( gets )
|
||||||
import Data.List ( sortBy )
|
import Data.List ( sortBy )
|
||||||
@ -16,6 +26,14 @@ import XMonad
|
|||||||
import StackSet hiding (filter)
|
import StackSet hiding (filter)
|
||||||
import qualified Operations as O
|
import qualified Operations as O
|
||||||
|
|
||||||
|
-- $usage
|
||||||
|
-- You can use this module with the following in your Config.hs file:
|
||||||
|
--
|
||||||
|
-- > import XMonadContrib.RotView
|
||||||
|
--
|
||||||
|
-- > , ((modMask .|. shiftMask, xK_Right), rotView True)
|
||||||
|
-- > , ((modMask .|. shiftMask, xK_Left), rotView False)
|
||||||
|
|
||||||
rotView :: Bool -> X ()
|
rotView :: Bool -> X ()
|
||||||
rotView b = do
|
rotView b = do
|
||||||
ws <- gets windowset
|
ws <- gets windowset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user