xmonad-contrib-0.16.999: Community-maintained extensions extensions for xmonad
Copyright(c) 2011 Brandon S Allbery <allbery.b@gmail.com>
LicenseBSD
MaintainerBrandon S Allbery <allbery.b@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Hooks.DebugKeyEvents

Contents

Description

A debugging module to track key events, useful when you can't tell whether xmonad is processing some or all key events.

Synopsis

Usage

Add this to your handleEventHook to print received key events to the log (the console if you use startx/xinit, otherwise usually ~/.xsession-errors).

     , handleEventHook = debugKeyEvents

If you already have a handleEventHook then you should append it:

     , handleEventHook = ... <+> debugKeyEvents

Logged key events look like:

keycode 53 sym 120 (0x78, "x") mask 0x0 () clean 0x0 ()

The mask and clean indicate the modifiers pressed along with the key; mask is raw, and clean is what xmonad sees after sanitizing it (removing numberLockMask, etc.)

For more detailed instructions on editing the logHook see:

XMonad.Doc.Extending

debugKeyEvents :: Event -> X All Source #

Print key events to stderr for debugging