summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-18 18:57:54 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-18 18:57:54 +0100
commitc65e9ded7f24b2b137c1151a392abb06dc58e1c6 (patch)
tree20e607369f44d1cd3ea3722301f3277b137f7f2d /.local
parent3ed52a75442a01cfa2bf40420469ce86dadfc329 (diff)
chkb: Merge invocations to ‘jq’
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/chkb5
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]))")
| .[]