neodotfiles/config/hypr/scripts/switchlayout
2024-09-27 23:08:07 -04:00

10 lines
237 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
)"