sway-patched-tray-menu-github/sway
Brian Ashworth bf9a52bab0 Implement support for swaymsg -t SUBSCRIBE [-m]
In `i3 4.16`, `i3-msg` can be used with the message type `subscribe`
and has the ability to monitor for responses until killed. This adds
support for both to swaymsg.

If the JSON array of event types is malformed or contains an invalid
event, sway will send a response with `success` set to `false`. If
swaymsg sees this, it will not display the failure and exit.

If the `subscribe` event is successful, swaymsg will wait for the first
response and display that instead of the success message. If
`-m/--monitor` is given, swaymsg will continue monitor for responses
until killed or a malformed response is received.

For the `subscribe` event, the responses will always be printed as JSON.
If `-r/--raw` is given, the JSON will not be pretty printed, which may
be preferred when monitoring due to there being multiple responses.

Example: `swaymsg -t SUBSCRIBE -m "['window']"`
2018-11-28 11:19:18 -05:00
..
commands Change execute_command to return a list of results 2018-11-27 21:42:09 -05:00
config Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
desktop Implement title alignment 2018-11-25 22:08:58 -05:00
input Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
tree Fix segfault when destroying unmapped child view 2018-11-28 14:08:20 +01:00
commands.c Merge pull request #3204 from RedSoxFan/cmd-res-list 2018-11-28 09:26:47 +01:00
config.c Merge pull request #3185 from emersion/remove-xopen-source 2018-11-26 21:25:45 +10:00
criteria.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
debug-tree.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c IPC: Use consistent function names across ipc-json 2018-11-26 11:15:40 +02:00
ipc-server.c Implement support for swaymsg -t SUBSCRIBE [-m] 2018-11-28 11:19:18 -05:00
main.c Change execute_command to return a list of results 2018-11-27 21:42:09 -05:00
meson.build Implement title alignment 2018-11-25 22:08:58 -05:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Update for swaywm/wlroots#1387 2018-11-23 12:07:46 +01:00
sway-bar.5.scd Implement strip_workspace_name. 2018-11-17 16:11:28 +00:00
sway-input.5.scd Add scroll factor config option. 2018-11-18 13:49:30 -05:00
sway-output.5.scd Add relative output transform 2018-11-05 22:58:27 +00:00
sway.1.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway.5.scd Implement title alignment 2018-11-25 22:08:58 -05:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00