dots-of-war/eggs/eww-laptop/.config/eww/scripts/get-active-workspace
2024-12-05 22:10:22 +01:00

3 lines
224 B
Bash
Executable file

#!/bin/bash
hyprctl monitors -j | jq --raw-output .[0].activeWorkspace.id
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 grep '^workspace>>' | stdbuf -o0 awk -F '>>|,' '{print $2}'