Update: 2024-10-15

This commit is contained in:
2024-10-15 23:11:47 +03:00
parent 79b2e2f7b1
commit eae6ecaebb
808 changed files with 238018 additions and 205905 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
spaces (){
windows=$(hyprctl workspaces -j | jq 'map({id: .id}) | sort_by(.id)')
echo $windows
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)})'
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done