summaryrefslogtreecommitdiff
path: root/.config/qtile/config.py
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-11 17:29:46 +0300
committerThanos Apollo <[email protected]>2024-04-11 17:29:46 +0300
commit92a2b341e7f1866eef960dc1b07e246a55621585 (patch)
tree1dfda8a756154bf385ce7373936eacfcf51aa7f4 /.config/qtile/config.py
parent40af34ac84c8b951e3162a98c3899394f78527c6 (diff)
qtile: Add keyboard configuration
Diffstat (limited to '.config/qtile/config.py')
-rw-r--r--.config/qtile/config.py8
1 files changed, 8 insertions, 0 deletions
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