aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg
Commit message (Collapse)AuthorAge
* Add sway-ipc.7.scd to document IPC protocolLibravatar Brian Ashworth2019-03-04
| | | | | | | This add `sway-ipc.7.scd` that documents the IPC protocol. This also increased the minimum scdoc version from 1.8.1 to 1.9.0 to allow for table cells to be continued on the following line
* ipc: handle unnamed xkb_active_layout_nameLibravatar Brian Ashworth2019-02-11
| | | | | | If the active xkb_layout does not have a name, use `NULL` instead of `json_object_new_string(NULL)`. This also makes it so swaymsg will pretty print this as `(unnamed)`.
* Make json-c include respect pkg-config --cflagsLibravatar Jan Beich2019-01-23
| | | | | json-c.pc contains `Cflags: -I${includedir}/json-c`, so `<json-c/json.h>` won't be found unless the parent directory is searched by default.
* Removed unused wlroots dependency for sway(bg|bar|msg|nag)Libravatar M Stoeckl2019-01-21
| | | | Also remove direct libm dependency where unused.
* Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* meson: remove rpath optionsLibravatar emersion2019-01-18
|
* get_inputs: add libinput send events modeLibravatar Brian Ashworth2019-01-09
| | | | | Add `libinput_send_events` to the IPC output for `get_inputs` to allow scripting of mode changes.
* Remove readline.cLibravatar Ian Fan2019-01-01
| | | | | All occurrences of read_line have been replaced by getline. peek_line has been absorbed into detect_brace.
* swaymsg: parse success of single objectLibravatar Brian Ashworth2018-11-28
| | | | | Allows swaymsg to parse the success attribute of a single object response. This is needed for the subscribe event.
* Implement support for swaymsg -t SUBSCRIBE [-m]Libravatar Brian Ashworth2018-11-28
| | | | | | | | | | | | | | | | | | | | | 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']"`
* Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | And make sure we don't define both in the same source file.
* IPC: Send keyboard layout info in IPC_GET_INPUTSLibravatar Harish Krupo2018-11-12
| | | | Signed-off-by: Harish Krupo <harishkrupo@gmail.com>
* document swaymessage type for get_seatsLibravatar madblobfish2018-11-04
|
* ipc: move refresh from output to output->current_modeLibravatar Cole Mickens2018-11-03
|
* swaymsg: get_outputs: use output->current_mode for current mode displayLibravatar Cole Mickens2018-11-03
|
* swaymsg: fix get_outputs status codeLibravatar emersion2018-10-29
|
* Fix program name in version stringsLibravatar Ryan Dwyer2018-10-10
| | | | | | | | | | | | | When running swaymsg -v, the version returned is actually the version of swaymsg itself, yet the message displayed was "sway version <version>". This can create confusion if users update sway and swaymsg but don't restart sway, then use swaymsg to check the version. This patch changes the wording to be "swaymsg version <version>" instead, and likewise for swaybar. To get the version of a running sway instance, users should run swaymsg -t get_version.
* Add support for installing binaries with DT_RPATHLibravatar Arkadiusz Hiler2018-09-30
| | | | | | | | | | | | | | It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
* ipc: add tick eventLibravatar Ian Fan2018-08-01
|
* Remove `clipboard` command and `get_clipboard` messageLibravatar emersion2018-07-10
|
* Add get_config message type to ipcLibravatar Ian Fan2018-07-10
|
* Add get_binding_modes message type to ipcLibravatar Ian Fan2018-07-10
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* refactor success_objectLibravatar Armin Preiml2018-06-30
|
* fix swaymsg: errors are displayed againLibravatar Armin Preiml2018-06-30
| | | | | Command errors didn't get displayed, because the success function didn't accept objects
* Store sway_outputs so that they can be reenabledLibravatar Brian Ashworth2018-06-06
|
* Add tree representation to IPC workspace descriptionLibravatar Ryan Dwyer2018-05-29
|
* swaymsg: Fix exit codeLibravatar Ryan Dwyer2018-05-28
|
* Delete old asciidoc man pagesLibravatar emersion2018-05-25
|
* Merge remote-tracking branch 'origin/master' into scdocLibravatar Drew DeVault2018-05-12
|\
| * Implement IPC get_seats commandLibravatar Ryan Dwyer2018-05-12
| |
* | Add swaylock(1) and swaymsg(1)Libravatar Drew DeVault2018-05-11
|/
* swaymsg: Fix spelling in error messageLibravatar Nicolas Braud-Santoni2018-05-05
|
* ipc: add output modesLibravatar emersion2018-03-12
|
* swaymsg: convert to wlr_logLibravatar Dominique Martinet2018-01-05
|
* update json-c dep to 0.13Libravatar Rachel K2018-01-04
|
* Pretty-print all output info in swaymsg -t get_outputsLibravatar emersion2017-12-29
|
* fix memory leak in swaymsgLibravatar Tony Crisci2017-12-19
|
* fix memory leak in swaymsgLibravatar Tony Crisci2017-12-18
|
* ipc get_inputsLibravatar Tony Crisci2017-12-18
|
* remove relevant CMakeLists.txtLibravatar Tony Crisci2017-11-30
|
* meson build swaymsgLibravatar Tony Crisci2017-11-30
|
* fintune swaymsg manpageLibravatar madblobfish2017-10-13
| | | | Added a hint where to find the commands. Also indicate that command is itself not a command,
* Merge pull request #1263 from nyorain/masterLibravatar Drew DeVault2017-10-08
|\ | | | | Implement get_clipboard ipc message
| * Add get_clipbard ipc errors; Adapt swaymsgLibravatar nyorain2017-07-11
| | | | | | | | Also increase the get_clipboard timeout to 30 secs
| * Rework get_clipboard implementationLibravatar nyorain2017-07-07
| |
| * Implement ipc get_clipboardLibravatar nyorain2017-07-07
| |
* | Fix github links in docLibravatar Zuzana Svetlikova2017-10-06
|/
* Make asciidoc (and man pages) optionalLibravatar Drew DeVault2017-07-04
| | | | And remove it from the build
* Add -DVERSION flag for release version numbersLibravatar Sebastian Noack2017-04-26
|