diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-18 18:57:54 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-18 18:57:54 +0100 |
commit | c65e9ded7f24b2b137c1151a392abb06dc58e1c6 (patch) | |
tree | 20e607369f44d1cd3ea3722301f3277b137f7f2d /.local/bin | |
parent | 3ed52a75442a01cfa2bf40420469ce86dadfc329 (diff) |
chkb: Merge invocations to ‘jq’
Diffstat (limited to '.local/bin')
-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]))") | .[] |