From 82d37c4becc502bcd791e9c236a4b0ba141c6288 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 15 Sep 2023 13:06:31 +0300 Subject: eww: Use less cancer variable names --- .config/eww/scripts/workspace-list-listener | 10 +++++----- 1 file 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 -- cgit v1.2.3