summaryrefslogtreecommitdiffstats
path: root/roles/waybar/templates
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-16 16:28:53 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-16 16:28:53 +0100
commitc3bb987272091e1993227f3a19a1bc515476ebf0 (patch)
treeefa5caeaa81a0bf0855efc9cfc3a9c7628735566 /roles/waybar/templates
parent9f13fc942ecc910528d37a0e387b1b17b55ce320 (diff)
Fix waybar capslock issue by providing the kbd dev path
Diffstat (limited to 'roles/waybar/templates')
-rw-r--r--roles/waybar/templates/waybar/config.jsonc.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/waybar/templates/waybar/config.jsonc.j2 b/roles/waybar/templates/waybar/config.jsonc.j2
index 4ba63f44..7eef4ac2 100644
--- a/roles/waybar/templates/waybar/config.jsonc.j2
+++ b/roles/waybar/templates/waybar/config.jsonc.j2
@@ -91,6 +91,9 @@
"on-click": "hyprctl switchxkblayout all next"
},
"keyboard-state": {
+{% if waybar_external_kbd_dev_path is defined %}
+ "device-path": "{{ waybar_external_kbd_dev_path }}",
+{% endif %}
"numlock": false,
"capslock": true,
"format": {