[xmonad] Caps lock, togeter with ledmod in xmobar

Christer Eriksson agkbill at gmail.com
Tue Aug 9 07:45:37 CEST 2011


I am in the progress of configurating xmobar togheter with Xmonad and so far
it is going really good thanks to the help from xmonad web resources.

I am using Archlinux.

But now I am stuck.

I have added Keyboard LED Indication, following [url=
excelent guide.

Installed "ledmon" from AUR and added in xmonad.hs
, Run CommandReader "/usr/bin/ledmon" "LED"

, template = "%StdinReader% }{ <fc=#ffff00>%LED%</fc> %cpu% | %memory% *
%swap%    <fc=#ee9a00>%date%</fc> | %EGPF%"

Keyboard LED indication works great.

The problem is that I from time to time want to enter Swedish caracters and
for the reason switch to se keymap.

I did that according to Archlinux wiki about X.

in /etc/X11/xorg.conf i added.

    Option                 "XkbLayout" "us, se"
    Option                 "XkbOptions" "grp:caps_toggle"

I can now easily toggle keyboard layout using caps lock.

However I do not get a indication in xmobar that caps lock is on. That would
be great to se.

Any idea on how to accomplies this?

Thank you.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20110809/f917e5ca/attachment.htm>

More information about the xmonad mailing list