aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
Commit message (Collapse)AuthorAge
* Deny repeating reload by holding keyLibravatar Ryan Dwyer2018-09-04
| | | | | | | | | | | | | | | Fixes #2568 The binding that gets stored in the keyboard's `repeat_binding` would get freed on reload, leaving a dangling pointer. Rather than attempt to unset the keyboard's `repeat_binding` along with the other bindings, I opted to just not set it for the reload command because there's no point in reloading repeatedly by holding the binding. This disables repeat bindings for the reload command. As we now need to detect whether it's a reload command in two places, I've added a binding flag to track whether it's a reload or not.
* Rename fowa enum and use switch in view_request_activateLibravatar Ryan Dwyer2018-09-02
|
* Implement focus_on_window_activationLibravatar Ryan Dwyer2018-09-02
| | | | Depends on https://github.com/swaywm/wlroots/pull/1223
* Remove layout.cLibravatar Ryan Dwyer2018-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | When we have type safety we'll need to have functions for workspace_add_tiling and so on. This means the existing container functions will be just for containers, so they are being moved to container.c. At this point layout.c doesn't contain much else, so I've relocated everything and removed the file. * container_swap and its static functions have been moved to the swap command and made static. * container_recursive_resize has been moved to the resize command and made static. * The following have been moved to container.c: * container_handle_fullscreen_reparent * container_insert_child * container_add_sibling * container_add_child * container_remove_child * container_replace_child * container_split * enum movement_direction and sway_dir_to_wlr have been moved to util.c. Side note: Several commands included layout.h which then included root.h. With layout.h gone, root.h has to be included by those commands.
* Allow a fallback color to be specified for swaybgLibravatar Brian Ashworth2018-08-08
| | | | | | This allows for a color to be set when the wallpaper does not fill the entire output. If specified, the fallback color is also used when the image path is inaccessible.
* Write to swaynag pipe fd directly on config errorsLibravatar Brian Ashworth2018-08-03
|
* Show swaynag on config errorsLibravatar Brian Ashworth2018-08-03
|
* ipc: add binding eventLibravatar Ian Fan2018-08-01
|
* Implement setting NumLock and CapsLock statusLibravatar ProgAndy2018-07-25
| | | | | | After setting the keymap, try to enable NumLock and disable CapsLock. This only works if sway has the xkb master state and controls the keyboard. Prepare configuration settings for later use as well.
* Implement floating_modifier <mod> [inverse|normal]Libravatar Brian Ashworth2018-07-24
|
* Merge pull request #2165 from swaywm/pid-workspacesLibravatar Drew DeVault2018-07-24
|\ | | | | Implement pid->workspace tracking
| * Merge branch 'master' into pid-workspacesLibravatar Drew DeVault2018-07-23
| |\
| * | Implement pid->workspace trackingLibravatar Drew DeVault2018-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | When you spawn a process with the exec command, sway now notes the workspace you had focused and the pid of the child process, then assigns that workspace to the child when its window appears. Some of this is carried over from sway 0.15, but with some major refactoring and centralization of state.
* | | Invoke mouse bindingsLibravatar frsfnrrg2018-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mouse binding logic is inspired/copied from the keyboard binding logic; we store a sorted list of the currently pressed buttons, and trigger a binding when the currently pressed (or just recently pressed, in the case of a release binding) buttons, as well as modifiers/container region, match those of a given binding. As the code to execute a binding is not very keyboard specific, keyboard_execute_command is renamed to seat_execute_command and moved to where the other binding handling functions are. The call to transaction_commit_dirty has been lifted out.
* | | Parse mouse binding optionsLibravatar frsfnrrg2018-07-23
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, the existing sway_binding structure is given an enumerated type code. As all flags to bindsym/bindcode are boolean, a single uint32 is used to hold all flags. The _BORDER, _CONTENTS, _TITLEBAR flags, when active, indicate in which part of a container the binding can trigger; to localize complexity, they do not overlap with the command line arguments, which center around _TITLEBAR being set by default. The keyboard handling code is adjusted for this change, as is binding_key_compare; note that BINDING_LOCKED is *not* part of the key portion of the binding. Next, list of mouse bindings is introduced and cleaned up. Finally, the binding command parsing code is extended to handle the case where bindsym is used to describe a mouse binding rather than a keysym binding; the difference between the two may be detected as late as when the first key/button is parsed, or as early as the first flag. As bindings can have multiple keycodes/keysyms/buttons, mixed keysym/button sequences are prohibited.
* | Reset outputs on reloadLibravatar Brian Ashworth2018-07-20
| |
* | 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.
* | Fix output wildcard handlingLibravatar Brian Ashworth2018-07-20
| |
* | 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
| |
* | Add get_config message type to ipcLibravatar Ian Fan2018-07-10
| |
* | Implement mode --pango_markupLibravatar Brian Ashworth2018-07-05
|/
* Sort binding key listsLibravatar frsfnrrg2018-06-12
| | | | | | | Sort the list comprising the set of keys for the binding in ascending order. (Keyboard shortcuts depend only on the set of simultaneously pressed keys, not their order, so this change should have no external effect.) This simplifies comparisons between bindings.
* Refactor cmd_output to use config_subcommandLibravatar Brian Ashworth2018-06-03
|
* Make command block implementation genericLibravatar Brian Ashworth2018-06-02
|
* Implement focus_wrappingLibravatar Brian Ashworth2018-05-27
|
* Implement bindsym/bindcode --lockedLibravatar frsfnrrg2018-05-27
| | | | | | | | | Adds the --locked flag to bindsym and bindcode commands. When a keyboard's associated seat has an exclusive client (i.e, a screenlocker), then bindings are only executed if they have the locked flag. When there is no such client, this restriction is lifted.
* Change unmark implemention to match i3'sLibravatar Ryan Dwyer2018-05-15
|
* Idle handling for dpms/lockscreen et alLibravatar Mattias Eriksson2018-05-13
| | | | | | | | | Swayidle handles idle events and allows for dpms and lockscreen handling. It also handles systemd sleep events, and can raise a lockscreen on sleep Fixes #541
* Implement IPC get_seats commandLibravatar Ryan Dwyer2018-05-12
|
* Implement pango supportLibravatar Ryan Dwyer2018-05-06
| | | | | | Implements support for the pango: prefix in the font command. Closes #1903.
* Move code for re-arranging after font height change into a common placeLibravatar Ryan Dwyer2018-05-05
|
* Convert border_colors.text to float[4]Libravatar Drew DeVault2018-05-03
|
* Change comment formatLibravatar Ryan Dwyer2018-05-03
|
* Calculate config->font_height based on existing container titlesLibravatar Ryan Dwyer2018-05-03
|
* Render titlesLibravatar Ryan Dwyer2018-05-03
|
* Implement bordersLibravatar Ryan Dwyer2018-04-30
| | | | | | | | | | | | | 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
|
* 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 }
* Add input "identifier" map_to_output "identifier"Libravatar Drew DeVault2018-04-08
|
* remove unused attachment configLibravatar Tony Crisci2018-04-02
|
* Implement focus_follows_mouseLibravatar Drew DeVault2018-03-31
| | | | | | | Also contains two other small changes: - Clicking any button will focus the container clicked (not just left) - Remove seamless_mouse (doesn't make sense on wlroots)
* Merge remote-tracking branch 'origin/wlroots' into swaybar-layersLibravatar Drew DeVault2018-03-30
|\
| * Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Libravatar Tony Crisci2018-03-29
| | | | | | | | | | This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
| * Revert "Refactor tree"Libravatar Drew DeVault2018-03-29
| |
| * rename container functionsLibravatar Tony Crisci2018-03-29
| |
| * remove swayc_t typedefLibravatar Tony Crisci2018-03-29
| |
| * move tree includes to their own directoryLibravatar Tony Crisci2018-03-29
| |
* | Spawn swaybars when outputs are addedLibravatar Drew DeVault2018-03-29
| |