xmonad-contrib-0.18.0: Community-maintained extensions for xmonad
Copyright(c) 2022 Tony Zorman
LicenseBSD3-style (see LICENSE)
MaintainerTony Zorman <soliditsallgood@mailbox.org>
Safe HaskellNone
LanguageHaskell2010

XMonad.Hooks.ShowWName

Contents

Description

Flash the names of workspaces name when switching to them. This is a reimplementation of XMonad.Layout.ShowWName as a logHook.

Synopsis

Usage

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

import XMonad.Hooks.ShowWName

main :: IO ()
main = xmonad $ def
  { logHook = showWNameLogHook def
  }

Whenever a workspace gains focus, the above logHook will flash its name. You can customise the duration of the flash, as well as colours by customising the SWNConfig argument that showWNameLogHook takes.

Alternatively, you can also bind flashName to a key and manually invoke it when you want to know which workspace you are on.

showWNameLogHook :: SWNConfig -> X () Source #

LogHook for flashing the name of a workspace upon entering it.

data SWNConfig Source #

Constructors

SWNC 

Fields

Instances

Instances details
Read SWNConfig Source # 
Instance details

Defined in XMonad.Layout.ShowWName

Show SWNConfig Source # 
Instance details

Defined in XMonad.Layout.ShowWName

Default SWNConfig Source # 
Instance details

Defined in XMonad.Layout.ShowWName

Methods

def :: SWNConfig #

flashName :: SWNConfig -> X () Source #

Flash the name of the currently focused workspace.