diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-15 13:06:31 +0300 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-15 13:07:21 +0300 |
commit | 82d37c4becc502bcd791e9c236a4b0ba141c6288 (patch) | |
tree | 19acfea2dda23c397ba69076a0fd2c54c5442799 | |
parent | c164c8b7951005008ebad6b7c85b7122cdc7f688 (diff) |
eww: Use less cancer variable names
-rwxr-xr-x | .config/eww/scripts/workspace-list-listener | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.config/eww/scripts/workspace-list-listener b/.config/eww/scripts/workspace-list-listener index d9ac666..72a6543 100755 --- a/.config/eww/scripts/workspace-list-listener +++ b/.config/eww/scripts/workspace-list-listener @@ -2,8 +2,8 @@ readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock -spaces="`hyprctl -j workspaces | jq -r 'sort_by(.id) | .[] | .name'`" -jo -a $spaces +ws="`hyprctl -j workspaces | jq -r 'sort_by(.id) | .[] | .name'`" +jo -a $ws socat -u UNIX-CONNECT:"$IPC" - \ | stdbuf -oL grep -E '^(create|destroy)workspace>>' \ @@ -11,11 +11,11 @@ socat -u UNIX-CONNECT:"$IPC" - \ do case "$e" in c*) - spaces="`printf '%s\n%s\n' "$spaces" $n | sort -V`" + ws="`printf '%s\n%s\n' "$ws" $n | sort -V`" ;; d*) - spaces="`echo "$spaces" | grep -v "^$n$"`" + ws="`echo "$ws" | grep -v "^$n$"`" ;; esac - jo -a $spaces + jo -a $ws done |