diff options
-rwxr-xr-x | .local/bin/chkb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/chkb b/.local/bin/chkb index 7bfefcc..b2f0d64 100755 --- a/.local/bin/chkb +++ b/.local/bin/chkb @@ -8,10 +8,9 @@ s="$( { hyprctl -j getoption input:kb_layout hyprctl -j getoption input:kb_variant - } | jq ' - .str | split(",\\s*"; "g") - ' | jq -rn ' + } | jq -rn ' [inputs] + | map(.str | split(",\\s*"; "g")) | transpose | map("\(.[0]) (\(.[1]))") | .[] |