aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
Commit message (Collapse)AuthorAge
...
* Write to swaynag pipe fd directly on config errorsLibravatar Brian Ashworth2018-08-03
|
* Show swaynag on config errorsLibravatar Brian Ashworth2018-08-03
|
* Implement scratchpadLibravatar Ryan Dwyer2018-07-23
| | | | | | | | | | | | | | Implements the following commands: * move scratchpad * scratchpad show * [criteria] scratchpad show Also fixes these: * Fix memory leak when executing command with criteria (use `list_free(views)` instead of `free(views)`) * Fix crash when running `move to` with no further arguments
* 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.
* Defer the focus commandsLibravatar Ryan Dwyer2018-07-19
|
* Implement default_floating_border command and adjust CSD behaviourLibravatar Ryan Dwyer2018-07-17
|
* Merge pull request #2276 from RyanDwyer/urgencyLibravatar Drew DeVault2018-07-16
|\ | | | | Implement urgency base functionality
| * 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 no_focus commandLibravatar Ryan Dwyer2018-07-16
|/
* Make focus part of transactionsLibravatar Ryan Dwyer2018-07-15
| | | | | | | | | | | | Rather than maintain copies of the entire focus stack, this PR transactionises the focus by introducing two new properties to the container state and using those when rendering. * `bool focused` means this container has actual focus. Only one container should have this equalling true in its current state. * `struct sway_container *focus_inactive_child` points to the immediate child that was most recently focused (eg. for tabbed and stacked containers).
* Simplify transactions by utilising a dirty flag on containersLibravatar Ryan Dwyer2018-07-14
| | | | | | | | | | | | | | | This PR changes the way we handle transactions to a more simple method. The new method is to mark containers as dirty from low level code (eg. arranging, or container_destroy, and eventually seat_set_focus), then call transaction_commit_dirty which picks up those containers and runs them through a transaction. The old methods of using transactions (arrange_and_commit, or creating one manually) are now no longer possible. The highest-level code (execute_command and view implementation handlers) will call transaction_commit_dirty, so most other code just needs to set containers as dirty. This is done by arranging, but can also be done by calling container_set_dirty.
* Implement floating_minimum_size and floating_maximum_sizeLibravatar Ryan Dwyer2018-07-11
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* 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.
* config_commands_command: make alloc failure check more permanentLibravatar Dominique Martinet2018-07-02
| | | | | | policy is accessed again later Found through static analysis
* Implement gaps (PR #2047)Libravatar Nate Symer2018-06-09
|
* Remove strip quoting and fix strncpy-overlapLibravatar Brian Ashworth2018-06-07
|
* Support runtime var expansion and set at runtimeLibravatar Brian Ashworth2018-06-05
|
* Address first round of review for generic blocksLibravatar Brian Ashworth2018-06-02
|
* Make command block implementation genericLibravatar Brian Ashworth2018-06-02
|
* Implement floatingLibravatar Ryan Dwyer2018-06-01
|
* Implement `floating enable`Libravatar Drew DeVault2018-06-01
|
* Implement config parser for workspace_layoutLibravatar Brian Ashworth2018-05-28
|
* 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 show_marksLibravatar Ryan Dwyer2018-05-17
|
* Change unmark implemention to match i3'sLibravatar Ryan Dwyer2018-05-15
|
* Implement marksLibravatar Ryan Dwyer2018-05-15
|
* Revert "Revert "Merge pull request #1943 from RyanDwyer/criteria-improvements""Libravatar Ryan Dwyer2018-05-14
| | | | | | | This reverts commit 32a572cecfd0f6072a78ce0a381a2f8365f9010a. This reimplements the criteria overhaul in preparation for fixing a known bug.
* Implement hide_edge_bordersLibravatar Brian Ashworth2018-05-11
|
* 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)
* Fix alphabetization of command listLibravatar Drew DeVault2018-05-03
|
* Render titlesLibravatar Ryan Dwyer2018-05-03
|
* Fix alphabetization of commands arrayLibravatar Drew DeVault2018-05-01
|
* Implement bordersLibravatar Ryan Dwyer2018-05-01
| | | | | | | | | | | | | Implements rendering of borders. Title text is still to do. Implements the following configuration directives: * client.focused * client.focused_inactive * client.unfocused * client.urgent * border * default_border
* Add map_from_region commandLibravatar emersion2018-04-26
|
* Implement criteria commandsLibravatar Ryan Dwyer2018-04-24
| | | | | | | Implements the following commands: * for_window [...] <cmdlist> * assign [...] <workspace>
* 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
* Merge branch 'master' into fullscreenLibravatar Drew DeVault2018-04-19
|\
| * 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 fullscreen.Libravatar Ryan Dwyer2018-04-16
|/
* Fix gcc string truncation warningsLibravatar Dominique Martinet2018-04-13
|
* Implement cursor event simulation with sway commands.Libravatar Danny Bautista2018-04-10
|
* Add input "identifier" map_to_output "identifier"Libravatar Drew DeVault2018-04-08
|
* Add workspace_auto_back_and_forth commandLibravatar db2018-04-08
| | | | | This is the only missing piece - other code regarding this functionality has already been ported from pre-wlroots source.
* Implement resize commandLibravatar Drew DeVault2018-04-05
|
* Implement opacity commandLibravatar Tony Crisci2018-04-04
|
* Merge branch 'wlroots' into split-containersLibravatar Tony Crisci2018-04-02
|\