From: Alexander Goussas Date: Sat, 18 Apr 2026 14:59:03 +0000 (-0500) Subject: add keyboard layout plugin for sketchybar X-Git-Url: http://git.frustrated-labs.net/?a=commitdiff_plain;h=6c0b203a7173fa19bbfb440d5e268231858d9d90;p=dotfiles.git add keyboard layout plugin for sketchybar --- 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