mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 13:50:38 -04:00
13 lines
427 B
Bash
Executable file
13 lines
427 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
ScrDir=`dirname "$(realpath "$0")"`
|
|
source $ScrDir/globalcontrol.sh
|
|
|
|
hyprctl devices -j | jq -r '.keyboards[].name' | while read keyName
|
|
do
|
|
hyprctl switchxkblayout "$keyName" next
|
|
done
|
|
|
|
layMain=$(hyprctl -j devices | jq '.keyboards' | jq '.[] | select (.main == true)' | awk -F '"' '{if ($2=="active_keymap") print $4}')
|
|
dunstify "t1" -i ~/.config/dunst/icons/keyboard.svg -a "$layMain" -r 91190 -t 800
|
|
|