taffybar / taffybar

A gtk based status bar for tiling window managers such as XMonad
BSD 3-Clause "New" or "Revised" License
696 stars 137 forks source link

Current keyboard layout #79

Closed jagajaga closed 5 years ago

jagajaga commented 10 years ago

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.

travitch commented 10 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.

zabbal commented 10 years ago

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.

colonelpanic8 commented 6 years ago

@zabbal does ktc have appindicator support?

colonelpanic8 commented 5 years ago

I agree with @zabbal, though. This seems like something that should be handled in an SNI icon to me.