Closed jagajaga closed 5 years ago
Unfortunately, I'm not familiar at all with xkb or input handling in X in general. I'm not opposed to a widget (I assume there is some X event you can subscribe to that delivers notifications of layout changes). Another alternative would be to use a systray application that provides that functionality, and may additionally support changing layouts.
Combination of kbdd and ktc (http://hub.darcs.net/zabbal/ktc) is a good example which solves this issue. There's no reason to make that part of taffybar - keyboard layout switching should be DE-agnostic.
@zabbal does ktc have appindicator support?
I agree with @zabbal, though. This seems like something that should be handled in an SNI icon to me.
Hello! Do you have some ideas to implement widget showing current keyboard layout? You can use https://github.com/aartamonau/haskell-x11-xkb or https://github.com/jaor/xmobar/blob/master/src/Plugins/Kbd.hsc If I have time, I will try to implement myself.