tweak: switch from jaq to jq
`jaq` is not really better than `jq`, and it's more useful to have the more popular version in my environment.
This commit is contained in:
parent
0275dcacdd
commit
264fc1406d
5 changed files with 8 additions and 8 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
workspaces() {
|
||||
hyprctl workspaces -j | jaq -c 'map({key: .id | tostring, value: .windows}) | from_entries
|
||||
| . as $windows | [range(1;11) | {id: tostring, windows: $windows[tostring] // 0,
|
||||
previous: $windows[.-1|tostring] // 0, next: $windows[.+1|tostring] // 0}]'
|
||||
hyprctl workspaces -j | jq -c 'map({key: .id | tostring, value: .windows}) | from_entries
|
||||
| . as $windows | [range(1;11) | {id: tostring, windows: ($windows[tostring] // 0),
|
||||
previous: ($windows[.-1|tostring] // 0), next: ($windows[.+1|tostring] // 0)}]'
|
||||
}
|
||||
|
||||
workspaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue