eww-config/scripts/track_workspace
2024-03-30 09:30:52 -05:00

8 lines
176 B
Bash
Executable File

#!/usr/bin/env bash
swaymsg -t subscribe -m '[ "workspace" ]' | jq --unbuffered '.current.num' | while read -r;do
if [ "$REPLY" != "null" ];then
echo "$REPLY"
fi
done