xmonad-contrib-0.12: Third party extensions for xmonad

Portabilityunportable
Stabilityunstable
MaintainerDmitri Iouchtchenko <johnnyspoon@gmail.com>
Safe HaskellNone

XMonad.Hooks.WorkspaceHistory

Contents

Description

Keeps track of workspace viewing order.

Synopsis

Usage

To record the order in which you view workspaces, you can use this module with the following in your ~/.xmonad/xmonad.hs:

 import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook)

Then add the hook to your logHook:

  main = xmonad $ def
      { ...
      , logHook = ... >> workspaceHistoryHook >> ...
      , ...
      }

To make use of the collected data, a query function is provided.

Hooking

workspaceHistoryHook :: X ()

A logHook that keeps track of the order in which workspaces have been viewed.

Querying

workspaceHistory :: X [WorkspaceId]

A list of workspace tags in the order they have been viewed, with the most recent first. No duplicates are present, but not all workspaces are guaranteed to appear, and there may be workspaces that no longer exist.