fixing things for eww and hyprland

This commit is contained in:
Chris Cochrun 2023-08-30 17:29:01 -05:00
parent d34f4ab2b4
commit 849b950c02
8 changed files with 29 additions and 102 deletions

2
.config/eww/scripts/get-workspaces Normal file → Executable file
View 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