aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/input
Commit message (Collapse)AuthorAge
* input/tablet: add tool_mode option to set tablet tools as relative inputLibravatar Tudor Brindus2020-10-12
| | | | Closes #4139.
* input_cmd_click_method: fix typo in error textLibravatar Tudor Brindus2020-06-19
|
* input: implement cycling through keyboard layout listLibravatar Bor Grošelj Simić2020-03-11
|
* input_cmd_events: add support for input typesLibravatar Brian Ashworth2020-02-18
| | | | | | | | | | | This adds support for input type configs to input_cmd_events. This works similar to the wildcard handling that existed where configs for the devices are stored and the type config is reset to INT_MIN so that it does not override. This also condenses the toggle_send_events and toggle_wildcard_send_events functions into a single function to reduce code duplication.
* input_cmd_xkb_file: allow shell path expansionLibravatar Brian Ashworth2019-11-21
| | | | | This allows for shell path expansion for input_cmd_xkb_file. The logic has been extracted from output_cmd_background
* Use an enum instead of a marker string for map_to_Libravatar Tadeo Kondrak2019-11-17
|
* Implement input map_to_region commandLibravatar Tadeo Kondrak2019-11-17
|
* input_cmd_xkb_switch_layout: support input typesLibravatar Brian Ashworth2019-07-18
| | | | | This just adds input type config support to input_cmd_xkb_switch_layout so that `input type:keyboard xkb_switch_layout <idx>` will work
* input_cmd_xkb_*: cleanup includesLibravatar Ed Younis2019-07-17
|
* Implement input_cmd_xkb_file (#3999)Libravatar Ed Younis2019-07-17
| | | | | | | Adds a new commend "xkb_file", which constructs the internal xkb_keymap from a xkb file rather than an RMLVO configuration. This allows greater flexibility when specifying xkb configurations. An xkb file can be dumped with the xkbcomp program.
* calibration_matrix: expect 6 individual valuesLibravatar Sergei Dolgov2019-07-05
| | | | | | Example usage from command line: swaymsg input type:touch calibration_matrix -- -1 0 1 0 -1 1
* Use isnanLibravatar Sergei Dolgov2019-07-05
|
* Add calibration_matrix config optionLibravatar Sergei Dolgov2019-07-05
| | | | | | | | | | | | | | | | | | | | | | Can be used to change the orientation of a touchscreen. Example usage with swaymsg: # identity swaymsg input type:touch calibration_matrix '"1 0 0 0 1 0"' # 90 degree clockwise swaymsg input type:touch calibration_matrix '"0 -1 1 1 0 0"' # 180 degree clockwise swaymsg input type:touch calibration_matrix '"-1 0 1 0 -1 1"' # 270 degree clockwise swaymsg input type:touch calibration_matrix '"0 1 0 -1 0 1"' Documentation: https://wayland.freedesktop.org/libinput/doc/latest/absolute-axes.html#calibration-of-absolute-devices
* Add a new xkb_switch_layout commandLibravatar Simon Ser2019-06-09
| | | | This allows users to programatically change the active layout.
* config/input: validate xkb keymap before storingLibravatar Brian Ashworth2019-06-09
| | | | | | | | This allows for an optional validation stage when storing an input config. Currently, only the xkb keymap is validated. If storing the delta input config will result in any invalid xkb keymaps, the input config will not be stored and error will be populated with the first line of the xkbcommon log.
* Merge pull request #3480 from RedSoxFan/input-modes-improved-toggleLibravatar Drew DeVault2019-01-21
|\ | | | | input_cmd_events: allow toggle modes to be listed
| * input_cmd_events: allow toggle modes to be listedLibravatar Brian Ashworth2019-01-21
| | | | | | | | | | | | | | | | | | This extends `input <identifier> events toggle` to allow for an optional list of modes to toggle through. If no event modes are listed, all supported modes are cycled through (current behavior). If event modes are listed, they will be cycled through, defaulting to the first mode listed when the current mode is not in the list. This modes listed will also not be checked to see if the device supports them and may fail.
* | Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
|/ | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* Remove now-unused "input" argument of cmd_results_newLibravatar M Stoeckl2019-01-14
| | | | | | | | | Patch tested by compiling with `__attribute__ ((format (printf, 2, 3)))` applied to `cmd_results_new`. String usage constants have been converted from pointers to arrays when encountered. General handler format strings were sometimes modified to include the old input string, especially for unknown command errors.
* Merge pull request #3342 from RedSoxFan/scroll-buttons-improvedLibravatar Drew DeVault2019-01-13
|\ | | | | Improve mouse button parsing: input scroll_button
| * input_cmd_scroll_button: utilize mouse btn helpersLibravatar Brian Ashworth2019-01-10
| | | | | | | | | | | | | | | | This modifies `input_cmd_scroll_button` to utilize the mouse button helper `get_mouse_button` when parsing the button. x11 axis buttons are not supported with this command and `CMD_INVALID` will be returned, but all other x11 buttons, button event names, and button event codes should be working
* | input_cmd_events: implement toggleLibravatar Brian Ashworth2019-01-09
|/ | | | | | | | Implements toggling input events during runtime. This will not attempt to toggle to a mode that is not supported by the device. When toggling the wildcard input, the device specific input configs are altered. Each device will cycle one supported mode.
* Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | And make sure we don't define both in the same source file.
* Add scroll factor config option.Libravatar Spencer Michaels2018-11-18
|
* Use parse_boolean where possible.Libravatar Connor E2018-11-10
|
* Fix some missing commands in sway-input(5)Libravatar Drew DeVault2018-10-03
|
* add tap-and-drag setting to sway-inputLibravatar PP2018-09-29
|
* Implement support for input wildcardLibravatar Brian Ashworth2018-09-23
|
* Add xkb_numlock/xkb_capslock commands (#2311)Libravatar ProgAndy2018-07-25
|
* Switch to using a function to parse booleansLibravatar Brian Ashworth2018-07-23
|
* Implement tap_button_map for input devicesLibravatar Brian Ashworth2018-07-14
|
* add error handling for scroll button out of rangeLibravatar Robert Kubosz2018-07-13
| | | | | user will be informed if the scroll button indentifier values causes underflow or overflow.
* expanded error detection for scroll button optionLibravatar Robert Kubosz2018-07-12
| | | | | | | | | | Now the scroll_button will not accept: - letters on string beginning; - negative numbers. What is tolerated: - letters after number; - rational numbers: the fraction after dot will be omitted.
* rm constraint for max value of button identifierLibravatar Robert Kubosz2018-07-12
| | | | updated error message to be more adequate for current contraint
* increase maximum value of button identifierLibravatar Robert Kubosz2018-07-12
| | | | and also cleanup spaces
* 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.
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* input_config: free new_input_config on errorLibravatar Dominique Martinet2018-07-02
| | | | Found through static analysis.
* Add map_from_region commandLibravatar emersion2018-04-26
|
* Split repeat commands into separate files.Libravatar Ryan Dwyer2018-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 }
* Add input "identifier" map_to_output "identifier"Libravatar Drew DeVault2018-04-08
|
* input config handler contextLibravatar Tony Crisci2018-01-20
|
* sway: change all sway_log to wlr_logLibravatar Dominique Martinet2018-01-05
|
* improve xkb command loggingLibravatar Tony Crisci2017-12-18
|
* expect exactly one xkb argLibravatar Tony Crisci2017-12-16
|
* 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
|