xmonad-contrib-0.17.0: Community-maintained extensions extensions for xmonad
Copyright(c) 2012 kedals0
LicenseBSD3-style (see LICENSE)
MaintainerDal <kedasl0@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

XMonad.Actions.Workscreen

Contents

Description

A workscreen permits to display a set of workspaces on several screens. In xinerama mode, when a workscreen is viewed, workspaces associated to all screens are visible.

The first workspace of a workscreen is displayed on first screen, second on second screen, etc. Workspace position can be easily changed. If the current workscreen is called again, workspaces are shifted.

This also permits to see all workspaces of a workscreen even if just one screen is present, and to move windows from workspace to workscreen.

Synopsis

Usage

You can use this module with the following in your ~/.xmonad/xmonad.hs:

import XMonad.Actions.Workscreen
myWorkspaces = let myOldWorkspaces = ["adm","work","mail"]
               in Workscreen.expandWorkspace 2 myOldWorkspaces
myStartupHook = do Workscreen.configWorkscreen (Workscreen.fromWorkspace 2 myWorkspaces)
                   return ()

Then, replace normal workspace view and shift keybinding:

[((m .|. modm, k), f i)
     | (i, k) <- zip [0..] [1..12]
     , (f, m) <- [(Workscreen.viewWorkscreen, 0), (Workscreen.shiftToWorkscreen, shiftMask)]]

For detailed instructions on editing your key bindings, see XMonad.Doc.Extending.

configWorkscreen :: [Workscreen] -> X () Source #

Initial configuration of workscreens

viewWorkscreen :: WorkscreenId -> X () Source #

View workscreen of index WorkscreenId. If current workscreen is asked workscreen, workscreen's workspaces are shifted.

data Workscreen Source #

Constructors

Workscreen 

Instances

Instances details
Show Workscreen Source # 
Instance details

Defined in XMonad.Actions.Workscreen

shiftToWorkscreen :: WorkscreenId -> X () Source #

Shift a window on the first workspace of workscreen WorkscreenId.

fromWorkspace :: Int -> [WorkspaceId] -> [Workscreen] Source #

Create workscreen list from workspace list. Group workspaces to packets of screens number size.

expandWorkspace :: Int -> [WorkspaceId] -> [WorkspaceId] Source #

Helper to group workspaces. Multiply workspace by screens number.