Files
dotfiles/bspwm/capsindicator.sh
2025-06-03 14:16:01 +03:00

14 lines
369 B
Bash
Executable File

#!/bin/bash
# Get the current layout
layout=$(setxkbmap -query | grep layout | awk '{print $2}')
# Check if the layout is Russian
if [ "$layout" = "ru" ]; then
# Turn on the Caps Lock indicator (you may need to adjust this command based on your system)
xset led named "Caps Lock"
else
# Turn off the Caps Lock indicator
xset -led named "Caps Lock"
fi