summaryrefslogtreecommitdiffstats
path: root/include/sway/commands.h
Commit message (Collapse)AuthorAge
...
* resize: Determine if anything changed using before/after checkLibravatar Ryan Dwyer2018-10-09
| | | | | | Returning a boolean from container_resize_tiled and resize_tiled doesn't work in all cases. This patch changes it back to void and does a before/after check to see if the container was resized.
* Implement popup_during_fullscreenLibravatar Ryan Dwyer2018-10-08
| | | | | | | | | | This introduces a new view_impl function: is_transient_for. Similar to container_has_ancestor but works using the surface parents rather than the tree. This patch modifies view_is_visible, container_at and so on to allow transient views to function normally when they're in front of a fullscreen view.
* Shim client.background and client.placeholderLibravatar Drew DeVault2018-10-07
| | | | | | | These are not supported by sway, but are valid i3 commands and should not cause config errors. Also includes a couple of minor touch-ups.
* Add configuration for raising containers on focusLibravatar Jonathan Buch2018-10-03
| | | | | | | * New configuration option: raise_floating (From the discussion on https://github.com/i3/i3/issues/2990) * By default, it still raises the window on focus, otherwise it will raise the window on click.
* Handle border options for gapsLibravatar Brian Ashworth2018-10-01
| | | | | | | | | | | | Fixes `hide_edge_borders smart` when gaps are in use. Implements `hide_edge_borders smart_no_gaps` and `smart_borders on|no_gaps|off`. Since `smart_borders on` is equivalent to `hide_edge_borders smart` and `smart_borders no_gaps` is equivalent to `hide_edge_borders smart_no_gaps`, I opted to just save the last value set for `hide_edge_borders` and restore that on `smart_borders off`. This simplifies the conditions for setting the border.
* Merge pull request #2725 from PumbaPe/add-tap-and-dragLibravatar Drew DeVault2018-09-30
|\ | | | | Add tap and drag to sway-input
| * add tap-and-drag setting to sway-inputLibravatar PP2018-09-29
| |
* | Return an error when resizing is a no opLibravatar Ryan Dwyer2018-09-29
|/
* Allow running commands on containers without focusing themLibravatar Ryan Dwyer2018-09-23
| | | | | | | | | | | | | | This adds a `con` argument to `execute_command` which allows you to specify the container to execute the command on. In most cases it leaves it as `NULL` which makes it use the focused node. We only set it when executing `for_window` criteria such as when a view maps. This means we don't send unnecessary IPC focus events, and fixes a crash when the criteria command is `move scratchpad` (because we can't give focus to a hidden scratchpad container). Each of the shell map handlers now check to see if the view has a workspace. It won't have a workspace if criteria has moved it to the scratchpad.
* Introduce create_output command (for developer use)Libravatar Ryan Dwyer2018-09-19
| | | | Should help with testing hotplugging.
* Introduce tiling_drag directiveLibravatar Ryan Dwyer2018-09-11
|
* Implement focus_on_window_activationLibravatar Ryan Dwyer2018-09-02
| | | | Depends on https://github.com/swaywm/wlroots/pull/1223
* commands: add nopLibravatar Ian Fan2018-08-18
|
* Implement resizing tiled containers via cursorLibravatar Ryan Dwyer2018-08-12
| | | | | | | | | * The OP_RESIZE seat operation has been renamed to OP_RESIZE_FLOATING, and OP_RESIZE_TILING has been introduced. * Similar to the above, seat_begin_resize and handle_resize_motion have been renamed and tiling variants introduced. * resize.c's resize_tiled has to be used, so container_resize_tiled has been introduced in resize.c to allow external code to call it.
* Write to swaynag pipe fd directly on config errorsLibravatar Brian Ashworth2018-08-03
|
* Add xkb_numlock/xkb_capslock commands (#2311)Libravatar ProgAndy2018-07-25
|
* Implement floating_modifier and mouse operations for floating viewsLibravatar Ryan Dwyer2018-07-22
| | | | | | | | | | | | | | This implements the following: * `floating_modifier` configuration directive * Drag a floating window by its title bar * Hold mod + drag a floating window from anywhere * Resize a floating view by dragging the border * Resize a floating view by holding mod and right clicking anywhere on the view * Resize a floating view and keep aspect ratio by holding shift while resizing using either method * Mouse cursor turns into resize when hovering floating border or corner
* Implement force_display_urgency_hintLibravatar Ryan Dwyer2018-07-21
| | | | | | | | | | | | | The directive sets the timeout before an urgent view becomes normal again after switching to it from another workspace. Also: * When an xwayland surface removes the urgent hint while the timer is active, we now ignore the request. This happens as soon as the view receives focus, so it was effectively making the timer pointless. * The timeout is now only applied when switching to it from another workspace.
* Implement urgency base functionalityLibravatar Ryan Dwyer2018-07-16
| | | | | | Introduces a command to manually set urgency, as well as rendering of urgent views, sending the IPC event, removing urgency after focused for one second, and matching urgent views via criteria.
* Implement tap_button_map for input devicesLibravatar Brian Ashworth2018-07-14
|
* add scroll button optionLibravatar Robert Kubosz2018-07-11
| | | | | | This commit introduces a scroll_button option, which is intended to be used with scroll_method. Now user can edit his sway config and add an scroll_button option to device section.
* Remove `clipboard` command and `get_clipboard` messageLibravatar emersion2018-07-10
|
* cmd_results_to_json: return copied string and properly free the jsonLibravatar Dominique Martinet2018-07-05
| | | | | | | The only user of this function would copy the string right away to get rid of the const flag anyway, and freeing a const string afterwards might work but is not meant to be done according to the json-c API.
* Refactor cmd_output to use config_subcommandLibravatar Brian Ashworth2018-06-03
|
* Address first round of review for generic blocksLibravatar Brian Ashworth2018-06-02
|
* Make command block implementation genericLibravatar Brian Ashworth2018-06-02
|
* Support i3's legacy force_focus_wrapping commandLibravatar Brian Ashworth2018-05-28
|
* Implement focus_wrappingLibravatar Brian Ashworth2018-05-27
|
* Implement swap commandLibravatar Brian Ashworth2018-05-26
|
* Implement title_formatLibravatar Ryan Dwyer2018-05-05
| | | | | | | | | | This implements the title_format command, with a new placeholder %shell which gets substituted with the view type (xwayland, xdg_shell_v6 or wl_shell). Example config: for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
* Add map_from_region commandLibravatar emersion2018-04-26
|
* Implement rename workspace commandLibravatar Ryan Dwyer2018-04-23
| | | | | | | | This implements the following commands: * rename workspace to new_name * rename workspace old_name to new_name * rename workspace number n to new_name
* Make key repeat configurableLibravatar Ryan Dwyer2018-04-18
| | | | | | | | | | | This creates two input commands for configuring the repeat delay and rate. Example config: input "myidentifier" { repeat_delay 250 repeat_rate 25 }
* Implement cursor event simulation with sway commands.Libravatar Danny Bautista2018-04-10
|
* Add input "identifier" map_to_output "identifier"Libravatar Drew DeVault2018-04-08
|
* Implement opacity commandLibravatar Tony Crisci2018-04-04
|
* Add default_orientation commandLibravatar Drew DeVault2018-03-30
|
* Add swaybg_commandLibravatar Drew DeVault2018-03-29
|
* Add bar configuration commandsLibravatar Drew DeVault2018-03-29
|
* take seat param for handle_command and renameLibravatar Tony Crisci2018-02-24
|
* seat fallback configLibravatar Tony Crisci2017-12-17
|
* rename config apply cmdsLibravatar Tony Crisci2017-12-16
|
* xkb configLibravatar Tony Crisci2017-12-15
|
* basic configurationLibravatar Tony Crisci2017-12-14
|
* seat configurationLibravatar Tony Crisci2017-12-12
|
* input configLibravatar Tony Crisci2017-12-11
|
* Add minimal config subsystemLibravatar emersion2017-12-05
|
* Add initial command subsystem (untested)Libravatar Drew DeVault2017-11-22
| | | | Need to spin up the IPC server to test this
* Move everything to sway/old/Libravatar Drew DeVault2017-11-18
|
* Add the 'clipboard' command to set the clipboardLibravatar nyorain2017-07-01
|