neodotfiles/user/.config/hypr/scripts/switchlayout
2024-03-08 11:21:36 -04:00

10 lines
217 B
Bash
Executable file

#!/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
)"