From 7b5c1e65ed5c84f85b7257f56bdc7d3508248edd Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 15 Sep 2023 13:06:04 +0300 Subject: eww: Use the power of sed --- .config/eww/scripts/active-workspace-listener | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to '.config/eww/scripts') 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' -- cgit v1.2.3