8 lines
176 B
Bash
Executable File
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
|