From 6c0b203a7173fa19bbfb440d5e268231858d9d90 Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Sat, 18 Apr 2026 09:59:03 -0500 Subject: [PATCH] add keyboard layout plugin for sketchybar --- sketchybar/.config/sketchybar/plugins/kbd.sh | 3 +++ sketchybar/.config/sketchybar/sketchybarrc | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 sketchybar/.config/sketchybar/plugins/kbd.sh diff --git a/sketchybar/.config/sketchybar/plugins/kbd.sh b/sketchybar/.config/sketchybar/plugins/kbd.sh new file mode 100755 index 0000000..1ad945a --- /dev/null +++ b/sketchybar/.config/sketchybar/plugins/kbd.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sketchybar --set "$NAME" label="$(/usr/local/bin/xkbswitch -ge)" diff --git a/sketchybar/.config/sketchybar/sketchybarrc b/sketchybar/.config/sketchybar/sketchybarrc index 12547b0..863f297 100755 --- a/sketchybar/.config/sketchybar/sketchybarrc +++ b/sketchybar/.config/sketchybar/sketchybarrc @@ -66,6 +66,8 @@ sketchybar --add item clock right \ --set battery update_freq=120 script="$PLUGIN_DIR/battery.sh" \ --subscribe battery system_woke power_source_change \ --add item cpu right \ - --set cpu update_freq=10 icon='' script="$PLUGIN_DIR/cpu.sh" + --set cpu update_freq=10 icon='' script="$PLUGIN_DIR/cpu.sh" \ + --add item kbd right \ + --set kbd update_freq=2 icon='' script="$PLUGIN_DIR/kbd.sh" sketchybar --update -- 2.43.0