xmonad-contrib-bluetilebranch-0.8.1.2: Third party extensions for xmonadSource codeContentsIndex
XMonad.Actions.TagWindows
Portabilityunportable
Stabilityunstable
MaintainerKarsten Schoelzel <kuser@gmx.de>
Contents
Usage
Description
Functions for tagging windows and selecting them by tags.
Synopsis
addTag :: String -> Window -> X ()
delTag :: String -> Window -> X ()
unTag :: Window -> X ()
setTags :: [String] -> Window -> X ()
getTags :: Window -> X [String]
hasTag :: String -> Window -> X Bool
withTaggedP :: String -> (Window -> WindowSet -> WindowSet) -> X ()
withTaggedGlobalP :: String -> (Window -> WindowSet -> WindowSet) -> X ()
withFocusedP :: (Window -> WindowSet -> WindowSet) -> X ()
withTagged :: String -> (Window -> X ()) -> X ()
withTaggedGlobal :: String -> (Window -> X ()) -> X ()
focusUpTagged :: String -> X ()
focusUpTaggedGlobal :: String -> X ()
focusDownTagged :: String -> X ()
focusDownTaggedGlobal :: String -> X ()
shiftHere :: (Ord a, Eq s, Eq i) => a -> StackSet i l a s sd -> StackSet i l a s sd
shiftToScreen :: (Ord a, Eq s, Eq i) => s -> a -> StackSet i l a s sd -> StackSet i l a s sd
tagPrompt :: XPConfig -> (String -> X ()) -> X ()
tagDelPrompt :: XPConfig -> X ()
Usage

To use window tags, import this module into your ~/.xmonad/xmonad.hs:

 import XMonad.Actions.TagWindows
 import XMonad.Prompt    -- to use tagPrompt

and add keybindings such as the following:

   , ((modMask x,                 xK_f  ), withFocused (addTag "abc"))
   , ((modMask x .|. controlMask, xK_f  ), withFocused (delTag "abc"))
   , ((modMask x .|. shiftMask,   xK_f  ), withTaggedGlobal "abc" sink)
   , ((modMask x,                 xK_d  ), withTaggedP "abc" (shiftWin "2"))
   , ((modMask x .|. shiftMask,   xK_d  ), withTaggedGlobalP "abc" shiftHere)
   , ((modMask x .|. controlMask, xK_d  ), focusUpTaggedGlobal "abc")
   , ((modMask x,                 xK_g  ), tagPrompt defaultXPConfig (\s -> withFocused (addTag s)))
   , ((modMask x .|. controlMask, xK_g  ), tagDelPrompt defaultXPConfig)
   , ((modMask x .|. shiftMask,   xK_g  ), tagPrompt defaultXPConfig (\s -> withTaggedGlobal s float))
   , ((modWinMask,                xK_g  ), tagPrompt defaultXPConfig (\s -> withTaggedP s (shiftWin "2")))
   , ((modWinMask .|. shiftMask,  xK_g  ), tagPrompt defaultXPConfig (\s -> withTaggedGlobalP s shiftHere))
   , ((modWinMask .|. controlMask, xK_g ), tagPrompt defaultXPConfig (\s -> focusUpTaggedGlobal s))

NOTE: Tags are saved as space separated strings and split with unwords. Thus if you add a tag "a b" the window will have the tags "a" and "b" but not "a b".

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

addTag :: String -> Window -> X ()Source
add a tag to the existing ones
delTag :: String -> Window -> X ()Source
remove a tag from a window, if it exists
unTag :: Window -> X ()Source
remove all tags
setTags :: [String] -> Window -> X ()Source
set multiple tags for a window at once (overriding any previous tags)
getTags :: Window -> X [String]Source
read all tags of a window reads from the "_XMONAD_TAGS" window property
hasTag :: String -> Window -> X BoolSource
check a window for the given tag
withTaggedP :: String -> (Window -> WindowSet -> WindowSet) -> X ()Source
withTaggedGlobalP :: String -> (Window -> WindowSet -> WindowSet) -> X ()Source
apply a pure function to windows with a tag
withFocusedP :: (Window -> WindowSet -> WindowSet) -> X ()Source
withTagged :: String -> (Window -> X ()) -> X ()Source
withTaggedGlobal :: String -> (Window -> X ()) -> X ()Source
focusUpTagged :: String -> X ()Source
focusUpTaggedGlobal :: String -> X ()Source
focusDownTagged :: String -> X ()Source
Move the focus in a group of windows, which share the same given tag. The Global variants move through all workspaces, whereas the other ones operate only on the current workspace
focusDownTaggedGlobal :: String -> X ()Source
shiftHere :: (Ord a, Eq s, Eq i) => a -> StackSet i l a s sd -> StackSet i l a s sdSource
shiftToScreen :: (Ord a, Eq s, Eq i) => s -> a -> StackSet i l a s sd -> StackSet i l a s sdSource
tagPrompt :: XPConfig -> (String -> X ()) -> X ()Source
tagDelPrompt :: XPConfig -> X ()Source
Produced by Haddock version 2.4.2