I am batman
This commit is contained in:
10
scripts/keyboardswitch.sh
Executable file
10
scripts/keyboardswitch.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
scrDir=`dirname "$(realpath "$0")"`
|
||||
source $scrDir/globalcontrol.sh
|
||||
|
||||
hyprctl switchxkblayout all next
|
||||
|
||||
layMain=$(hyprctl -j devices | jq '.keyboards' | jq '.[] | select (.main == true)' | awk -F '"' '{if ($2=="active_keymap") print $4}')
|
||||
notify-send -a "t1" -r 91190 -t 800 -i "~/.config/dunst/icons/keyboard.svg" "${layMain}"
|
||||
|
||||
Reference in New Issue
Block a user