#!/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