summaryrefslogtreecommitdiff
path: root/swaymsg
AgeCommit message (Collapse)AuthorLines
2025-04-17swaymsg, swaynag: drop sway_terminate() definitionsSimon Ser-4/+0
These are unused.
2025-04-09ipc: standardize pretty print with raw printFurkan Sahin-1/+1
`swaymsg -t get_inputs --raw` calls it a pointer but `--pretty` calls it a Mouse. Previous commit 6737b90cb that set this to pointer probably forgo to update the pretty one. closes #8584
2025-02-16sway/ipc-json: add ext-foreign-toplevel-handle identifier to get_tree ipc outputFerdinand Bachmann-0/+4
Fixes #8291
2025-01-13swaymsg: pretty-print sandbox propertiesJacob McNamee-0/+12
2024-08-05Add support for tearing-control-v1Ricardo Steijn-1/+5
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3871 Adds option to allow tearing per output, as well as an option to force enable or disable tearing for a specific application using a window rule. Only works with fullscreen applications.
2024-02-23Define _POSIX_C_SOURCE globallySimon Ser-1/+0
See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
2023-02-25fix typorj1-1/+1
2023-02-02swaymsg: s/inactive/disabled/Simon Ser-1/+1
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.
2023-02-02swaymsg: print output power statusSimon Ser-1/+4
2023-02-01Added reference for event types to swaymsg manpageCedric Sodhi-0/+2
2022-10-03swaymsg: show mode picture aspect ratioSimon Ser-2/+10
2022-09-19swaymsg: show non-desktop property when pretty printing outputsAlex Maese-2/+11
2022-07-26swaymsg: fix floating_nodes being ignoredllyyr-0/+9
Fix floating_nodes being ignored in pretty_print_tree.
2021-12-21swaymsg: add GET_TREE pretty-printingSimon Ser-0/+48
2021-12-21swaymsg: replace if with switch in pretty_printSimon Ser-16/+14
2021-10-25refactor: use JSON_MAX_DEPTH everywhereJason Nader-3/+0
2021-10-22refactor: use sway_abort insteadSefa Eyeoglu-25/+27
2021-10-22fix: use sane value for json_tokener max_depthSefa Eyeoglu-2/+6
INT_MAX causes a NULL pointer if there is not enough memory available to fit (INT_MAX * sizeof(struct json_tokener_srec)).
2021-10-22fix: handle NULL from json_tokener_new_exSefa Eyeoglu-18/+28
if there is not enough memory to fit json_tokener and (depth * json_tokener_srec) in RAM, don't segfault.
2021-10-18swaymsg: fix misplaced return valueJason Nader-1/+1
2021-10-18swaymsg: be explicit about the json parser errorJason Nader-7/+8
2021-10-18swaymsg: use INT_MAX max JSON depth when parsing IPC responseJason Nader-2/+7
Same reasoning as fe11caeac946cecda491d592044a6b9519ef2035. Without this, swaymsg would fail with a cryptic error message when the JSON was nested too deep.
2021-10-15cross-reference further documentationJonas Große Sundrup-0/+5
2021-10-15change incorrectly documented output typesJonas Große Sundrup-6/+7
2021-10-15clarify the type of raw outputJonas Große Sundrup-1/+1
2021-02-04Make command line option lists constManuel Stoeckl-1/+1
2021-01-16Changed fprintf(stdout,...) to printf(...) for more readable codeSpizzyCoder-1/+1
2021-01-15swaymsg: use 3 digits for fractional part of the refresh rateRonan Pigott-4/+4
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.
2020-09-04swaymsg.1: expand tip for multi-word strings.Érico Rolim-1/+3
Strings with commas inside, such as the ones used for xkb_{config,layout} commands, count as multi-word strings.
2020-08-05swaymsg.1: correct typoMark Stosberg-1/+1
2020-07-15Add note on quoting to swaymsg manpageCampbell Vertesi-6/+12
2020-06-14i3-compat: add GET_BINDING_STATE IPC commandJason Nader-0/+5
2020-03-07Add adaptive_sync_status to output IPC replySimon Ser-3/+8
2019-11-29add scale_filter output config optionRonan Pigott-1/+5
2019-11-17Add max_render_time to output JSONIvan Molodetskikh-2/+6
2019-09-12swaymsg.1: fix typosMartin Michlmayr-1/+1
2019-09-10swaymsg.1: fix description of --prettyMartin Michlmayr-1/+1
2019-08-13swaymsg.1: add tip about two hyphens for commandsBrian Ashworth-0/+5
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.
2019-08-06swaymsg: return 2 for sway errorsBrian Ashworth-1/+14
This mirrors a change in i3 4.17 that returns 2 for errors from sway, including invalid command, command failed, and invalid subscription requests
2019-06-07Add the missing constant for the switch input typeAbdelhakim Qbaich-0/+1
2019-05-03swaymsg: fix quiet error reportingBrian Ashworth-20/+32
This makes it so swaymsg still returns the correct successful or failed error code when in quiet mode
2019-04-17swaymsg: add timeout and type checksBrian Ashworth-1/+10
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.
2019-04-16Send disabled output available modes on IPC get_outputsRanieri Althoff-1/+1
- Also fix missing trailing newline on pretty print Signed-off-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
2019-04-14Add heuristics to differentiate touchpadsBenjamin Cheng-0/+1
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.
2019-03-24Add support for manually setting subpixel hinting on outputs.Geoff Greer-1/+4
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
2019-03-16Flush stdout in swaymsg when in subscribe modeFlakebi-0/+1
2019-03-08Add -p/--pretty option to swaymsgPeter Grayson-1/+9
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>
2019-03-07ipc: describe libinput device configurationBrian Ashworth-3/+7
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.
2019-02-27Add sway-ipc.7.scd to document IPC protocolBrian Ashworth-0/+4
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
2019-02-11ipc: handle unnamed xkb_active_layout_nameBrian Ashworth-2/+2
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)`.