]> git.sur5r.net Git - i3/i3/commitdiff
i3-msg: add support for SUBSCRIBE message type 3435/head
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 5 Sep 2014 20:47:27 +0000 (16:47 -0400)
committerVivien Didelot <vivien.didelot@gmail.com>
Thu, 4 Oct 2018 16:54:45 +0000 (12:54 -0400)
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


No differences found