
29 May
2009
29 May
'09
1:29 p.m.
On Thu, 28 May 2009 10:50:34 +0300
Roman Cheplyaka
* Brent Yorgey
[2009-05-27 22:52:04-0400] ....... ... logHook = ...other stuff... >> checkKBLayout
...
checkKBLayout :: X () checkKBLayout = do curTag <- gets (W.currentTag . windowset) when (curTag == "foo") $ spawn "set keyboard layout" .......
Just to make it clear: the command will be spawned each time when windowset changes -- e.g. when you change the focus. It's harmless with setting kb layout, but if you use it for e.g. launching an application you'll get a new instance each time you change focus.
I wonder why it keeps and keeps spawning the program even if I stay on that workspace.... Cheers, Sergey