neodotfiles/config/hypr/scripts/switchlayout

11 lines
237 B
Text
Raw Permalink Normal View History

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