14 lines
369 B
Bash
Executable File
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
|