[xmonad] Caps lock, togeter with ledmod in xmobar
Christer Eriksson
agkbill at gmail.com
Tue Aug 9 07:45:37 CEST 2011
Hi,
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=
http://www.haskell.org/haskellwiki/Xmonad/Config_archive/John_Goerzen%27s_Configuration/]John<http://www.haskell.org/haskellwiki/Xmonad/Config_archive/John_Goerzen%27s_Configuration/%5DJohn>
Goerzen's[/url]
excelent guide.
Installed "ledmon" from AUR and added in xmonad.hs
[code]
, Run CommandReader "/usr/bin/ledmon" "LED"
, template = "%StdinReader% }{ <fc=#ffff00>%LED%</fc> %cpu% | %memory% *
%swap% <fc=#ee9a00>%date%</fc> | %EGPF%"
}
[/code]
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.
[code]
Option "XkbLayout" "us, se"
Option "XkbOptions" "grp:caps_toggle"
[/code]
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,
/Christer
-------------- 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