hyprlock: add capslock indicator (#1280)

This commit is contained in:
end-4
2025-05-08 23:28:52 +02:00
parent e22bca8097
commit af076f83c4
3 changed files with 32 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/env bash
MAIN_KB_CAPS=$(hyprctl devices | grep -B 6 "main: yes" | grep "capsLock" | head -1 | awk '{print $2}')
if [ "$MAIN_KB_CAPS" = "yes" ]; then
echo "Caps Lock active"
else
echo ""
fi