From 24ac842631ae3253697a1ea3eb7aa1583c1b10d5 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 2 Jun 2024 20:50:03 +0200 Subject: [PATCH] [waybar] feat: Add keyboard-state module --- stow/waybar/.config/waybar/config | 2 +- stow/waybar/.config/waybar/modules.json | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/stow/waybar/.config/waybar/config b/stow/waybar/.config/waybar/config index f63a896..0040220 100644 --- a/stow/waybar/.config/waybar/config +++ b/stow/waybar/.config/waybar/config @@ -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"], diff --git a/stow/waybar/.config/waybar/modules.json b/stow/waybar/.config/waybar/modules.json index ebde88c..0e9cd7f 100644 --- a/stow/waybar/.config/waybar/modules.json +++ b/stow/waybar/.config/waybar/modules.json @@ -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"