OXDBXKXO
c2c405a24b
Merge 11a00db532 into 3c0588a44f
2026-01-09 20:25:00 -07:00
Simon Ser
94c819cc1f
Add features.hdr to output IPC response
2025-07-09 01:25:11 +02:00
Simon Ser
bac8c0f4d0
Add support for HDR10 output
2025-07-09 01:25:11 +02:00
Simon Ser
c7d7d56f61
ipc-json, swaymsg: indicate when adaptive sync is unsupported
2025-07-08 15:58:53 +02:00
OXDBXKXO
945abfc49a
swaymsg: get_cursor support
2025-06-25 23:47:28 +02:00
Simon Ser
d3e1c13e1f
swaymsg, swaynag: drop sway_terminate() definitions
...
These are unused.
2025-04-17 23:31:55 +02:00
Furkan Sahin
cb246cb9c2
ipc: standardize pretty print with raw print
...
`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-04-09 01:10:03 +02:00
Ferdinand Bachmann
c1031d8465
sway/ipc-json: add ext-foreign-toplevel-handle identifier to get_tree ipc output
...
Fixes #8291
2025-02-16 19:18:29 +01:00
Jacob McNamee
0b08dce08c
swaymsg: pretty-print sandbox properties
2025-01-13 08:54:23 +01:00
Ricardo Steijn
9a1c411abd
Add support for tearing-control-v1
...
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-08-05 02:13:49 +02:00
Simon Ser
fc640d5f6c
Define _POSIX_C_SOURCE globally
...
See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
2024-02-23 17:43:19 +03:00
rj1
d63497698b
fix typo
2023-02-25 10:50:43 +01:00
Simon Ser
0695f3fa2a
swaymsg: s/inactive/disabled/
...
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-02 12:00:06 -05:00
Simon Ser
f22d4dbab7
swaymsg: print output power status
2023-02-02 12:00:06 -05:00
Cedric Sodhi
2e33b0276f
Added reference for event types to swaymsg manpage
2023-02-01 16:22:15 +01:00
Simon Ser
78b5c0a77e
swaymsg: show mode picture aspect ratio
2022-10-03 13:35:52 +02:00
Alex Maese
cffb006feb
swaymsg: show non-desktop property when pretty printing outputs
2022-09-19 07:26:45 -04:00
llyyr
e98b97a45b
swaymsg: fix floating_nodes being ignored
...
Fix floating_nodes being ignored in pretty_print_tree.
2022-07-26 10:56:50 +02:00
Simon Ser
513fa00a5e
swaymsg: add GET_TREE pretty-printing
2021-12-21 11:07:11 +01:00
Simon Ser
d9ce781d4c
swaymsg: replace if with switch in pretty_print
2021-12-21 11:07:11 +01:00
Jason Nader
9303bed4d4
refactor: use JSON_MAX_DEPTH everywhere
2021-10-25 10:18:40 +02:00
Sefa Eyeoglu
b223f70250
refactor: use sway_abort instead
2021-10-22 09:57:05 +02:00
Sefa Eyeoglu
96baef8ae9
fix: use sane value for json_tokener max_depth
...
INT_MAX causes a NULL pointer if there is not enough memory available to
fit (INT_MAX * sizeof(struct json_tokener_srec)).
2021-10-22 09:57:05 +02:00
Sefa Eyeoglu
944d7031c5
fix: handle NULL from json_tokener_new_ex
...
if there is not enough memory to fit json_tokener and (depth *
json_tokener_srec) in RAM, don't segfault.
2021-10-22 09:57:05 +02:00
Jason Nader
db70f6496c
swaymsg: fix misplaced return value
2021-10-18 14:20:24 +02:00
Jason Nader
55cd8abd76
swaymsg: be explicit about the json parser error
2021-10-18 14:20:24 +02:00
Jason Nader
f873bcc4e1
swaymsg: use INT_MAX max JSON depth when parsing IPC response
...
Same reasoning as fe11caeac9 .
Without this, swaymsg would fail with a cryptic error message
when the JSON was nested too deep.
2021-10-18 14:20:24 +02:00
Jonas Große Sundrup
555cd96e05
cross-reference further documentation
2021-10-15 15:20:40 +02:00
Jonas Große Sundrup
35d29185a8
change incorrectly documented output types
2021-10-15 15:20:40 +02:00
Jonas Große Sundrup
bccf76d90b
clarify the type of raw output
2021-10-15 15:20:40 +02:00
Manuel Stoeckl
169b90f90b
Make command line option lists const
2021-02-04 09:49:06 +01:00
SpizzyCoder
7cf25d3b98
Changed fprintf(stdout,...) to printf(...) for more readable code
2021-01-16 20:24:41 +01:00
Ronan Pigott
0d04864fd1
swaymsg: use 3 digits for fractional part of the refresh rate
...
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.
2021-01-15 21:32:42 +01:00
Érico Rolim
08095e99f3
swaymsg.1: expand tip for multi-word strings.
...
Strings with commas inside, such as the ones used for
xkb_{config,layout} commands, count as multi-word strings.
2020-09-04 12:37:12 +02:00
Mark Stosberg
45aa5c104c
swaymsg.1: correct typo
2020-08-05 20:41:07 -04:00
Campbell Vertesi
acbe902815
Add note on quoting to swaymsg manpage
2020-07-15 16:17:11 +02:00
Jason Nader
45859be03f
i3-compat: add GET_BINDING_STATE IPC command
2020-06-14 00:55:14 -04:00
Simon Ser
a2d49099e1
Add adaptive_sync_status to output IPC reply
2020-03-07 00:32:04 +01:00
Ronan Pigott
6968fb3123
add scale_filter output config option
2019-11-29 18:13:37 +01:00
Ivan Molodetskikh
fe84ec2f24
Add max_render_time to output JSON
2019-11-17 20:18:42 +01:00
Martin Michlmayr
a085e6495c
swaymsg.1: fix typos
2019-09-12 14:56:36 +03:00
Martin Michlmayr
8724900e38
swaymsg.1: fix description of --pretty
2019-09-10 00:14:59 +03:00
Brian Ashworth
9bac7e6558
swaymsg.1: add tip about two hyphens for commands
...
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-13 11:31:51 +09:00
Brian Ashworth
a8a239e2f1
swaymsg: return 2 for sway errors
...
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-08-06 11:31:39 +09:00
Abdelhakim Qbaich
9bfbb0dd49
Add the missing constant for the switch input type
2019-06-07 10:15:03 +03:00
Brian Ashworth
c8e4ca355d
swaymsg: fix quiet error reporting
...
This makes it so swaymsg still returns the correct successful or failed
error code when in quiet mode
2019-05-03 11:09:49 -06:00
Brian Ashworth
d7d29fe546
swaymsg: add timeout and type checks
...
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-17 09:07:08 +03:00
Ranieri Althoff
fd6903673b
Send disabled output available modes on IPC get_outputs
...
- Also fix missing trailing newline on pretty print
Signed-off-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
2019-04-16 00:16:20 -04:00
Benjamin Cheng
6737b90cb9
Add heuristics to differentiate touchpads
...
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-04-14 19:31:36 -04:00
Geoff Greer
6e3046878d
Add support for manually setting subpixel hinting on outputs.
...
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-24 09:37:24 +02:00