You are not logged in.
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
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