hyprland-void-dots/hypr-configs/dotfiles/eww/scripts/kb-layout/set-active

10 lines
No EOL
218 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
)"