neodotfiles/user/.config/hypr/scripts/switchlayout

11 lines
217 B
Text
Raw Normal View History

2024-03-08 15:21:36 +00:00
#!/bin/bash
hyprctl \
--batch "$(
hyprctl devices -j |
jq -r '.keyboards[] | .name' |
while IFS= read -r keyboard; do
printf '%s %s %s;' 'switchxkblayout' "${keyboard}" 'next'
done
)"