aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands
Commit message (Collapse)AuthorAge
* Merge commit '104057a7ea34ad3fa4b202668bb6d66550483f0b' into HEADHEADmasterLibravatar Jenkins CI4 days
|\
| * Override outputs with the workspace commandpatch-for/masterLibravatar Kristóf Marussy2024-01-27
| |
* | commands/output/toggle: Use free_output_configLibravatar Kenny Levinsen2024-03-28
| |
* | Use apply_all_output_configs to light up outputsLibravatar Kenny Levinsen2024-03-28
| | | | | | | | | | This allows us to test and if necessary degrade the entire backend configuration to light everything up.
* | commands/move: do not force focus on the moved containerLibravatar Ronan Pigott2024-03-01
| | | | | | | | | | | | | | | | | | | | My code archaeology isn't good enough to determine what this is here for, but it isn't correct. We should be able to move containers in a direction without focusing them. AFAICT i3 doesn't do this, so we shouldn't either. This fixes ipc commands like move <dir> with criteria that apply to containers which are not the current focus.
* | Convert to new pointer enumsLibravatar Simon Ser2024-02-28
| | | | | | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
* | Define _POSIX_C_SOURCE globallyLibravatar Simon Ser2024-02-23
| | | | | | | | See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
* | commands: note how xwayland/primary_selection are reset on reloadLibravatar Simon Ser2024-02-05
| |
* | commands/primary_selection: drop duplicate bool parsingLibravatar Simon Ser2024-02-05
| |
* | sway/output: Improve logging of swaybg execvp failure and more checksLibravatar Tamino Bauknecht2024-01-29
|/ | | | | | This doesn't catch the error if a background changing command is executed via swaymsg, but improves logging. The additional checks at least propagate if e.g. forking failed.
* scene_graph: Port opacity and filter modesLibravatar Alexander Orzechowski2024-01-18
|
* Delete old damage tracking codeLibravatar Alexander Orzechowski2024-01-18
| | | | The new scene graph abstraction handles this for us.
* scene_graph: Port container server side decorationsLibravatar Alexander Orzechowski2024-01-18
|
* sway: raise error on non-accessible background fileLibravatar Tamino Bauknecht2023-12-12
|
* Add wlr/util/transform.h includesLibravatar Simon Ser2023-11-23
| | | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4097 Closes: https://github.com/swaywm/sway/issues/7830
* commands/input/map_from_region: don't treat 0x prefix as hex identifierLibravatar iff2023-09-07
| | | | | | | | | | | | | | | | | | | | | When using the `map_from_region` for pen tables, we will usually make the available area as big as possible while maintaining the proportions with the screen. As most of the tablets uses a 16:10 ratios while the most popular screen ratios is still 16:9, the argument for most people should be `0x0 1x0.9` to have the maximum effective area. However, the argument above won't work because the current code will treat `0x...` as a hexadecimal number, instead of setting both `x` and `y` to `0`. This fix allows the use of the following syntax: ``` input type:tablet_tool { map_from_region 0x0 1x0.9 } ```
* fix crash when resizing tiled scratchpad windowsLibravatar bretello2023-07-23
| | | | | | | Splitting and then hiding a scratchpad container results in a segfault. fixes #6693
* Deprecate seat idle_wakeLibravatar Simon Ser2023-07-19
| | | | | | | | | | | | | | | | | | | | | | | Sway has two knobs to control idling: - seat idle_inhibit: when the seat is active (ie. not idle), this extends the active state. When the seat is idle, this is ignored. - seat idle_wake: when the seat is idle, this wakes up the seat. When the seat is active, this is ignored. The motivation for the deprecation is two-fold: - The concept of "seat idle state" is ill-defined. Each idle-notify-v1 client will pass a different idle timeout. With the old logic, a seat was declared idle if and only if all idle-notify-v1 timeouts have expired. However, if only a portion of the timeouts have expired, then some clients would wake up, and the rest would stay active. This is inconsistent with the definition of idle_inhibit/idle_wake: idle_inhibit was used for clients which are waking up. - It never worked properly with the new idle-notify-v1 protocol and no-one noticed. Only the legacy KDE idle protocol is taken into account, but that protocol is not used anymore.
* Calculate tiled resize amount relative to parent containerLibravatar nukoseer2023-07-13
| | | | | | | sway should shrinks/grows tiled windows according to parent container for ppt unit for i3 compatibility. Resolves: #7593
* idle-inhibit-v1: simplify with server globalLibravatar Simon Ser2023-06-23
| | | | | | We only have a single running server, no need to keep track of multiple server instances. Also no need to support multiple idle inhibit managers.
* input/libinput: add scroll_button_lock methodLibravatar Cezary Drożak2023-06-16
| | | | | | | Closes https://github.com/swaywm/sway/issues/6987 Co-authored-by: JJGadgets <git@jjgadgets.tech> Co-authored-by: DeltaWhy <mike5713@gmail.com>
* Use format_str() throughoutLibravatar Simon Ser2023-04-14
|
* commands: add printf attribute to cmd_results_new()Libravatar Simon Ser2023-04-14
| | | | And fix the resulting build failures.
* commands/floating_minmax_size: fix error stringsLibravatar Simon Ser2023-04-14
| | | | cmd_results_new() does not take the command name as argument.
* Fix old style function definitionsLibravatar Elyes Haouas2023-04-14
| | | | Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
* root: Try to preserve relative positions of floating containersLibravatar Ankit Pandey2023-03-14
| | | | | | | | | | | | | | | This makes the behavior of floating containers more consistent with i3. The coordinates of the container are scaled when the size of the workspace it is on changes or when the container is moved between workspaces on different outputs. For scratchpad containers, add a new state that preserves the dimensions of the last output the window appeared on. This is necessary because after a container is hidden in the scratchpad, we expect it to be in the same relative position on the output when it reappears. We can't just use the container's attached workspace because that workspace's dimensions might have been changed or the workspace as a whole could have been destroyed.
* container: rehome the container_swap function into container.cLibravatar Ronan Pigott2023-02-19
| | | | | | | | | | | This function was already declared in container.h but defined in commands/swap.c for some unknown reason. Everything in commands/ assumes the handler context has been set appropriately by the command preludes but this function snuck its way into seatop_* which doesn't set anything in the handler context. The fact that the seatop drag actions manipulate the focus without custody of the seat means they are definitely very broken in multiseat.
* launcher: make launcher context seat awareLibravatar Ronan Pigott2023-02-05
|
* Add missing includes & remove duplicatesLibravatar Carl Smedstad2023-01-03
|
* commands/move: Warp cursor after moving workspace to another outputLibravatar Ankit Pandey2022-12-19
| | | | | | | This makes sway's behavior consistent with i3 when `mouse_warping` is set to any value besides `none`. Fixes #7027.
* Fix input command order (rotation_angle)Libravatar Baltazár Radics2022-12-09
| | | | | | efd83cb8 added the rotation_angle command but it didn't insert it in the proper place in the list, so the repeat_delay and repeat_rate commands became unusable.
* Add libinput RotationAngleLibravatar Lucas Zampieri2022-12-09
| | | | | | This patch adds the libinput option RotationAngle to sway. Signoff-by: Lucas Zampieri <lzampier@redhat.com>
* Add `primary_selection` config optionLibravatar Aidan Dang2022-12-05
| | | | | | | | | | | | See: https://github.com/swaywm/sway/issues/4511 Adds a bool config option `primary_selection`, which explicitly enables/disables the primary selection clipboard. Defaults to enabled. This is implemented as a launch-only option which enables or disables the creation of the `zwp_primary_selection_device_manager_v1` global. Co-authored-by: Tilde Rose <t1lde@protonmail.com>
* Make libinput backend optionalLibravatar Simon Ser2022-11-28
|
* launcher: export X startup ids and use them for workspace matchingLibravatar Ronan Pigott2022-11-26
|
* launcher: export xdga tokens and use them for workspace matchingLibravatar Ronan Pigott2022-11-26
|
* launcher: fudge the interface a bitLibravatar Ronan Pigott2022-11-26
| | | | We want to create a context before knowing the pid it will match with.
* launcher: initialize launcher_ctxs once on startupLibravatar Ronan Pigott2022-11-26
|
* launcher: rename pid_workspace to launcher_ctxLibravatar Ronan Pigott2022-11-26
| | | | Soon we will match views with more than just a pid.
* launcher: track workspaces by nodeLibravatar Ronan Pigott2022-11-26
| | | | | | | | | | This removes the need to rename the pid_workspaces when a workspace is renamed. It also opens the possibility of tracking other node types. Tracking containers would allow application to be placed correctly in the container tree even if the user has moved their focus elsewhere since it was launched.
* root: move the workspace matching code to its own fileLibravatar Ronan Pigott2022-11-26
| | | | | | | This removes the pid_workspace bits from tree/root before it gets too interesting. No functional change.
* Support libinput's 1.21 new dwtp optionLibravatar pudiva chip líquida2022-10-30
| | | | | | | | | Support the new dwtp (disable while trackpointing) option introduced in libinput 1.21, allowing users to control whether the trackpoint (like those in Thinkpads, but not only) should be disabled while using the keyboard/touchpad. See: https://gitlab.freedesktop.org/libinput/libinput/-/issues/731
* sway/commands/output: Add command for unplugging non-physical outputsLibravatar Andri Yngvason2022-10-07
|
* Remove internal references to DPMSLibravatar Simon Ser2022-07-04
| | | | | While at it, use an int for the config field, just like we do for all other fields.
* Reject font values that are invalid for pangoLibravatar Hugo Osvaldo Barrera2022-07-01
| | | | | | | | | Use pango to parse font configuration early, and reject the command as invalid if the value is invalid for pango. Since we're already parsing the font into a `PangoFontDescription`, keep that instance around and avoid re-parsing the font each time we render text. Fixes: https://github.com/swaywm/sway/issues/6805
* Avoid unecessary string copyLibravatar Hugo Osvaldo Barrera2022-07-01
|
* Strip quotes in bindsym --input-device=...Libravatar Thomas Jost2022-06-25
| | | | | | | | If the input device is quoted, which is common when using variables in the config file, those quotes must be ignored here, or the input device will be ignored. Fixes #7029.
* Rename dpms output command to powerLibravatar Simon Ser2022-06-23
| | | | | | | | The "dpms" command refers to VESA Display Power Management Signaling, a deprecated standard. It's superseded by VESA DPM. Instead of tying out command name to a particular standard, use the neutral term "power".
* Remove access to wlr_input_device unionLibravatar Simon Ser2022-06-22
| | | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3626 Closes: https://github.com/swaywm/sway/issues/7077
* sway: add bindgesture commandLibravatar Florian Franzen2022-05-30
| | | | Co-authored-by: Michael Weiser <michael.weiser@gmx.de>