From: Vivien Didelot Date: Fri, 5 Sep 2014 20:47:27 +0000 (-0400) Subject: i3-msg: add support for SUBSCRIBE message type X-Git-Tag: 4.16~25^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cff4fadd7275dd20b9de383c2f83e1e06a27b7a4;hp=cff4fadd7275dd20b9de383c2f83e1e06a27b7a4;p=i3%2Fi3 i3-msg: add support for SUBSCRIBE message type If i3-msg is invoked with -t subscribe, it will wait for the first event matching the given payload, before exiting. For instance, get the number of the next focused workspace with: i3-msg -t subscribe '[ "workspace" ]' | jshon -e current -e num Like inotifywait, the -m flag allows to wait indefinitely for events, instead of exiting right after receiving the first one. For example, continuously monitor the names of focused windows with: i3-msg -t subscribe -m '[ "window" ]' | jq .container.name ---