zen-tools / gxkb

🇺🇦 🇵🇱 🇱🇹 🇪🇪 X11 keyboard indicator and switcher
https://zen-tools.github.io/gxkb
136 stars 11 forks source link

cli or signals #26

Closed paperbenni closed 7 months ago

paperbenni commented 4 years ago

This is a feature request. It would be awesome if there was some way to use gxkb other than clicking or scrolling on the applet. What I have in mind are either signals sent to the applet to either switch to the next layout or open the menu, or a cli option to do just that. Or implement a dbus interface. Either way it would allow external tools to interact with gxkb and you could for example to a keybind that reproduces the layout switcher on windows.

zen-tools commented 4 years ago

Hi! I would like to keep gxkb as simple as possible. But I can suggest to take a look at  xkbmon+xkb-switch utils. If your window manager supports lua-scripting, you may use these tools to get a list of available keyboard layouts, current keyboard layout and switch keyboard layout. And gxkb can work as usual in order to remember keyboard layouts by application/window.