initial commit
This commit is contained in:
13
bspwm/capsindicator.sh
Executable file
13
bspwm/capsindicator.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user