zen-tools / gxkb

πŸ‡ΊπŸ‡¦ πŸ‡΅πŸ‡± πŸ‡±πŸ‡Ή πŸ‡ͺπŸ‡ͺ X11 keyboard indicator and switcher
https://zen-tools.github.io/gxkb
136 stars 11 forks source link

Different flag image for different variants #46

Closed jozsefk9 closed 3 months ago

jozsefk9 commented 3 months ago

What would be the way to have a different image displayed for rs and rs -variant latin ?

zen-tools commented 3 months ago

Hi Jozsef,

gxkb first looks for a file named rs_latin.png, then falls back to rs.png if it does not exist, and finally to zz.png if no files are found. You can add or override flags in your home directory, for example, rs(latin): ~/.config/gxkb/flags/rs_latin.png.

jozsefk9 commented 3 months ago

Hi Jozsef,

gxkb first looks for a file named rs_latin.png, then falls back to rs.png if it does not exist, and finally to zz.png if no files are found. You can add or override flags in your home directory, for example, rs(latin): ~/.config/gxkb/flags/rs_latin.png.

Fantastic! Thanks so much! This is actually the only way I can have this working in IceWM right now. And it's a beautiful way of doing it. So easy, so simple, so great! Perfect.