aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg
Commit message (Collapse)AuthorAge
* Define _POSIX_C_SOURCE globallyLibravatar Simon Ser2024-02-23
| | | | See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
* fix typoLibravatar rj12023-02-25
|
* swaymsg: s/inactive/disabled/Libravatar Simon Ser2023-02-02
| | | | | | The JSON field is named "active", but that's confusing for users: `output disable` is the command which results in `active = false` outputs. Use the same terminology in end-user messages.
* swaymsg: print output power statusLibravatar Simon Ser2023-02-02
|
* Added reference for event types to swaymsg manpageLibravatar Cedric Sodhi2023-02-01
|
* swaymsg: show mode picture aspect ratioLibravatar Simon Ser2022-10-03
|
* swaymsg: show non-desktop property when pretty printing outputsLibravatar Alex Maese2022-09-19
|
* swaymsg: fix floating_nodes being ignoredLibravatar llyyr2022-07-26
| | | | Fix floating_nodes being ignored in pretty_print_tree.
* swaymsg: add GET_TREE pretty-printingLibravatar Simon Ser2021-12-21
|
* swaymsg: replace if with switch in pretty_printLibravatar Simon Ser2021-12-21
|
* refactor: use JSON_MAX_DEPTH everywhereLibravatar Jason Nader2021-10-25
|
* refactor: use sway_abort insteadLibravatar Sefa Eyeoglu2021-10-22
|
* fix: use sane value for json_tokener max_depthLibravatar Sefa Eyeoglu2021-10-22
| | | | | INT_MAX causes a NULL pointer if there is not enough memory available to fit (INT_MAX * sizeof(struct json_tokener_srec)).
* fix: handle NULL from json_tokener_new_exLibravatar Sefa Eyeoglu2021-10-22
| | | | | if there is not enough memory to fit json_tokener and (depth * json_tokener_srec) in RAM, don't segfault.
* swaymsg: fix misplaced return valueLibravatar Jason Nader2021-10-18
|
* swaymsg: be explicit about the json parser errorLibravatar Jason Nader2021-10-18
|
* swaymsg: use INT_MAX max JSON depth when parsing IPC responseLibravatar Jason Nader2021-10-18
| | | | | | Same reasoning as fe11caeac946cecda491d592044a6b9519ef2035. Without this, swaymsg would fail with a cryptic error message when the JSON was nested too deep.
* cross-reference further documentationLibravatar Jonas Große Sundrup2021-10-15
|
* change incorrectly documented output typesLibravatar Jonas Große Sundrup2021-10-15
|
* clarify the type of raw outputLibravatar Jonas Große Sundrup2021-10-15
|
* Make command line option lists constLibravatar Manuel Stoeckl2021-02-04
|
* Changed fprintf(stdout,...) to printf(...) for more readable codeLibravatar SpizzyCoder2021-01-16
|
* swaymsg: use 3 digits for fractional part of the refresh rateLibravatar Ronan Pigott2021-01-15
| | | | | | | | The fractional part of the real number we want to represent never has more than 3 decimal digits, so use 3 decimal digits of precision. e.g. 'swaymsg -t get_outputs' would show a refresh rate of 59934 mHz as 59.933998 Hz, now correctly as 59.934 Hz.
* swaymsg.1: expand tip for multi-word strings.Libravatar Érico Rolim2020-09-04
| | | | | Strings with commas inside, such as the ones used for xkb_{config,layout} commands, count as multi-word strings.
* swaymsg.1: correct typoLibravatar Mark Stosberg2020-08-05
|
* Add note on quoting to swaymsg manpageLibravatar Campbell Vertesi2020-07-15
|
* i3-compat: add GET_BINDING_STATE IPC commandLibravatar Jason Nader2020-06-14
|
* Add adaptive_sync_status to output IPC replyLibravatar Simon Ser2020-03-07
|
* add scale_filter output config optionLibravatar Ronan Pigott2019-11-29
|
* Add max_render_time to output JSONLibravatar Ivan Molodetskikh2019-11-17
|
* swaymsg.1: fix typosLibravatar Martin Michlmayr2019-09-12
|
* swaymsg.1: fix description of --prettyLibravatar Martin Michlmayr2019-09-10
|
* swaymsg.1: add tip about two hyphens for commandsLibravatar Brian Ashworth2019-08-13
| | | | | | This adds a tip to the command section about using two hyphens before a command to signal that no swaymsg options will follow to allow for sway commands with leading hyphens.
* swaymsg: return 2 for sway errorsLibravatar Brian Ashworth2019-08-06
| | | | | | This mirrors a change in i3 4.17 that returns 2 for errors from sway, including invalid command, command failed, and invalid subscription requests
* Add the missing constant for the switch input typeLibravatar Abdelhakim Qbaich2019-06-07
|
* swaymsg: fix quiet error reportingLibravatar Brian Ashworth2019-05-03
| | | | | This makes it so swaymsg still returns the correct successful or failed error code when in quiet mode
* swaymsg: add timeout and type checksLibravatar Brian Ashworth2019-04-17
| | | | | | | | | | | | | | | This adds a 3 second timeout to the initial reply in swaymsg. This prevents swaymsg from hanging when `swaymsg -t get_{inputs,seats}` is used in i3. The timeout is removed when waiting for a subscribed event or monitoring for subscribed events. This also adds type checks to commands where i3 does not reply with all of the properties that sway does (such as `modes` in `get_outputs`). This is mostly just a behavioral adjustment since swaymsg should run on i3. When running under i3, some command reply's (such as the one for `get_outputs) may have more useful information in the raw json than the pretty printed version.
* Send disabled output available modes on IPC get_outputsLibravatar Ranieri Althoff2019-04-16
| | | | | | - Also fix missing trailing newline on pretty print Signed-off-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
* Add heuristics to differentiate touchpadsLibravatar Benjamin Cheng2019-04-14
| | | | | | | Use libinput_device_config_tap_get_finger_count to determine whether a pointer is a touchpad. swaymsg is also updated to reflect the new touchpad type.
* Add support for manually setting subpixel hinting on outputs.Libravatar Geoff Greer2019-03-24
| | | | | | Many laptop screens report unknown subpixel order. Allow users to manually set subpixel hinting to work around this. Addresses https://github.com/swaywm/sway/issues/3163
* Flush stdout in swaymsg when in subscribe modeLibravatar Flakebi2019-03-16
|
* Add -p/--pretty option to swaymsgLibravatar Peter Grayson2019-03-08
| | | | | | | | | | | This new option forces pretty (non-raw/non-JSON) output. By default, when not using a tty, swaymsg outputs using the "raw" format. This makes it impossible to, for example, pipe the pretty output to a pager such as `less` since piping does not use a tty. The new -p/--pretty option gives the user explicit control over the output format while retaining the default tty-dependent behavior. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
* ipc: describe libinput device configurationLibravatar Brian Ashworth2019-03-07
| | | | | | | | This adds the device configurations to the ipc response for libinput devices. Only supported configuration options for the device will be added. This also moves `libinput_send_events` inside a new `libinput` object that contains the rest of the configuration options. sway-ipc(7) has been updated to reflect the changes and document the new additions.
* Add sway-ipc.7.scd to document IPC protocolLibravatar Brian Ashworth2019-02-27
| | | | | | | 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.