sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
345 stars 37 forks source link

Add ability to show current variant and current keyboard layout separately #63

Open roguh opened 2 years ago

roguh commented 2 years ago

Hello, I'd like it if this tool had options for showing the keyboard layout and variant separately, e.g. us and intl. For example:

$ xkb-switch -a
intl
$ xkb-switch -b
us
$ xkb-switch -p
us(intl)
roguh commented 2 years ago

Right now, I'm splitting the output on "(" to get the layout and variant as separate components.