summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.config/eww/scripts/active-workspace-listener9
1 files changed, 1 insertions, 8 deletions
diff --git a/.config/eww/scripts/active-workspace-listener b/.config/eww/scripts/active-workspace-listener
index d3d46f2..8a09897 100755
--- a/.config/eww/scripts/active-workspace-listener
+++ b/.config/eww/scripts/active-workspace-listener
@@ -3,11 +3,4 @@
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
hyprctl -j activeworkspace | jq -r '.name'
-socat -u UNIX-CONNECT:"$IPC" - \
- | stdbuf -oL grep '^workspace>>' \
- | while IFS= read -r line
- do
- IFS='>>'
- set -- $line
- echo $3
- done
+socat -u UNIX-CONNECT:"$IPC" - | sed -n 's/^workspace>>//p'