1#!/usr/bin/env bash 2KB="$(/usr/bin/hyprctl devices -j | /usr/bin/jq -r \ 3 '.keyboards[] | select(.main==true) | .name' | head -n1)" 4exec /usr/bin/hyprctl switchxkblayout "$KB" next 5