[waybar] feat: Add keyboard-state module

This commit is contained in:
Tibo De Peuter 2024-06-02 20:50:03 +02:00
parent 0fb52ce59e
commit 24ac842631
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 14 additions and 1 deletions

View file

@ -30,7 +30,7 @@
"name": "keep",
"position": "top",
"height": 25,
"modules-left": ["sway/mode"],
"modules-left": ["sway/mode", "keyboard-state"],
"modules-center": ["clock"],
"modules-right": ["privacy"],

View file

@ -83,6 +83,19 @@
"tooltip": false
},
"keyboard-state": {
"format": {
"capslock": "{icon}",
},
"format-icons": {
"locked": "\uf023",
"unlocked": ""
},
"numlock": false,
"capslock": true,
"scrollock": false,
},
"memory": {
"format": "{}% \uf1c0",
"on-click": "kitty -e zenith"