diff options
Diffstat (limited to '.config')
-rwxr-xr-x | .config/eww/scripts/active-workspace-listener | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/eww/scripts/active-workspace-listener b/.config/eww/scripts/active-workspace-listener index 8a09897..359a0f2 100755 --- a/.config/eww/scripts/active-workspace-listener +++ b/.config/eww/scripts/active-workspace-listener @@ -3,4 +3,14 @@ readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock hyprctl -j activeworkspace | jq -r '.name' -socat -u UNIX-CONNECT:"$IPC" - | sed -n 's/^workspace>>//p' +socat -u UNIX-CONNECT:"$IPC" - | while read -r line +do + case "$line" in + 'workspace>>'*) + echo "${line#*'>>'}" + ;; + 'moveworkspace>>'*) + hyprctl -j activewindow | jq -r .workspace.name + ;; + esac +done |