From 24468ba4a7a1f1b7852cff7195afb718ce984da5 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 23 Aug 2025 12:57:07 +0100 Subject: Added new keyboard layout indicator to waybar --- .config/waybar/config | 10 +++++----- .config/waybar/style.css | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to '.config/waybar') diff --git a/.config/waybar/config b/.config/waybar/config index 18b1af6..dce6025 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -15,7 +15,7 @@ "modules-center": ["custom/clock"], "modules-right": [ - //"custom/scratchpad-indicator", + "custom/keyboard-layout", "idle_inhibitor", "custom/brightness", "custom/audio", @@ -36,11 +36,11 @@ "tooltip" : false }, - "custom/scratchpad-indicator": { - "format": " {}", - "return-type": "json", + "custom/keyboard-layout": { + "format": " {}", + "return-type": "text", "interval": 1, - "exec": "~/.local/bin/scratchpad-indicator.sh" + "exec": "mmsg -k | awk '{print toupper($3); exit}'" }, "idle_inhibitor": { diff --git a/.config/waybar/style.css b/.config/waybar/style.css index a574200..182a733 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -32,7 +32,7 @@ window#waybar.hidden { #idle_inhibitor, #language, #custom-layout, -#custom-scratchpad-indicator, +#custom-keyboard-layout, #custom-brightness, #custom-memory, #custom-battery, @@ -54,7 +54,7 @@ window#waybar.hidden { #idle_inhibitor, #language, #custom-layout, -#custom-scratchpad-indicator, +#custom-keyboard-layout, #custom-brightness, #custom-memory, #custom-battery, @@ -108,10 +108,10 @@ window#waybar.hidden { } /*================================= */ -/* custom-scratchpad-indicator */ +/* custom-keyboard-layout */ /*==================================*/ -#custom-scratchpad-indicator { - color: #8ec07c; +#custom-keyboard-layout { + color: #98971a; } /* ================================ */ -- cgit v1.2.3