You are not logged in.

#1 2021-05-12 12:51:27

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Qtile keybindings stop working when changing language

Hi,
I am new to Qtile, moving from GNOME.
I use two languages, and I use the Qtile built in widget to switch between the two keyboard layouts.

I set my keybindings on my config in English, but when I switch languages the keybindings stop working.

How can I fix this?

Last edited by AmitGold (2021-05-12 15:59:38)

Offline

#2 2021-05-18 22:09:51

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Re: Qtile keybindings stop working when changing language

I fixed this by running

setxkbmap -layout "us,il" -option "grp:alt_shift_toggle"

in my autostart script.
then I created a custom bar widget:

def get_keyboard_layout():
    return subprocess.check_output(['xkblayout-state', 'print', '"%s"']).decode('utf-8').strip()[1:3]

bar.Bar([
                widget.GenPollText(
                    foreground=colors["paleblue"], fontsize=16, func=get_keyboard_layout, update_interval=0.5),
])

Last edited by AmitGold (2021-05-18 22:11:40)

Offline

Board footer

Powered by FluxBB