fixing things for eww and hyprland
This commit is contained in:
parent
d34f4ab2b4
commit
849b950c02
8 changed files with 29 additions and 102 deletions
2
.config/eww/scripts/get-workspaces
Normal file → Executable file
2
.config/eww/scripts/get-workspaces
Normal file → Executable file
|
@ -2,7 +2,7 @@
|
|||
|
||||
spaces (){
|
||||
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
|
||||
seq 1 10 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})'
|
||||
seq 1 5 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})'
|
||||
}
|
||||
|
||||
spaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue