sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
353 stars 40 forks source link

Add option to show a fancy name of the layout #32

Open nobekobasu opened 5 years ago

nobekobasu commented 5 years ago

I work with typo layouts so I see 'us+typo' and 'ru:2+typo' instead of usual 'us' and 'ru'. I wrote a program that behaves like xkb-switch with -W flag but prints 'English (US)' and 'Russian'. Those names are available from the Xlib itself, you do not need to write any additional strings. Could you please add a flag for that?

sergei-mironov commented 5 years ago

That makes sense, could you please share your sources?

zvezdochiot commented 5 years ago

Sources enough:

https://github.com/X11-good-tools/xkblang

sergei-mironov commented 5 years ago

Looks good. Still I would prefere to leave it as an opportunity to send PR for now.

zvezdochiot commented 5 years ago

@grwlf. У меня из-за последнего PR накрылось всё "медным тазом". Разбираться что к чему времени нет. Откатил назад. Но и вперёд мне "дороги нет".

brs-brs commented 2 months ago

Added -f option: https://github.com/sergei-mironov/xkb-switch/commit/7e9b1815549082f20fe1dab7d33060b6369741d5