From 92a2b341e7f1866eef960dc1b07e246a55621585 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 11 Apr 2024 17:29:46 +0300 Subject: qtile: Add keyboard configuration --- .config/qtile/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.config/qtile/config.py') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index aa00e5c..4f35ccf 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -94,6 +94,13 @@ def init_widgets_list(): fontsize=12, foreground=monokai["green"],), widget.Spacer(length=10,), + widget.KeyboardLayout( + configured_keyboards = ['us','gr','bg phonetic'], + fontsize = 12, + display_map = {'us':'US', 'gr':'EL', 'bg phonetic':'BG'}, + padding = 15, + fmt = "[{}]" + ), widget.Image( filename="~/.config/qtile/volume1.png", scale=True,), @@ -230,6 +237,7 @@ keys = [ Key([],"XF86AudioLowerVolume",lazy.spawn("amixer sset Master 5%-")), Key([],"XF86AudioRaiseVolume",lazy.spawn("amixer sset Master 5%+")), # Keyboard + Key([mod], "space", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout."), Key([],"F9", lazy.spawn("setxkbmap gr -option ctrl:swapcas")), Key([],"F10", lazy.spawn("setxkbmap us -option ctrl:swapcaps")), # Thinkpad -- cgit v1.2.3