eww-config/scripts/track_workspace

8 lines
176 B
Plaintext
Raw Normal View History

2024-03-30 14:30:52 +00:00
#!/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