Commits
2024-11-11
Unhide the pointer on scroll events (#797)Ramses · Unverified494b438
Unhide the pointer on scroll events (#797) * Unhide the pointer on scroll events Since we reset the surface under the pointer when we hide the pointer (see update_pointer_contents), scroll events don't work when the pointer is hidden. So to make scrolling work, we make sure that we unhide the pointer when a scrolling event occurs. * Update src/input/mod.rs --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-11-10
2024-11-08
Only call on_output_config_changed() on lid switchIvan Molodetskikh · 927abad
Only call on_output_config_changed() on lid switch We don't need to reload the niri output config.
2024-11-05
2024-11-03
Implement scroll_factor mouse and touchpad setting (#730)elipp · Unverified8b39f98
Implement scroll_factor mouse and touchpad setting (#730) * Implement scroll_factor mouse and touchpad setting * Change to FloatOrInt, add docs * Also change v120 values --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Remove pointer_grab_ongoing in favor of checking the actual grabIvan Molodetskikh · e0ebf1bBrowse files
Correct pointer constraint activation logicIvan Molodetskikh · 9193245
Correct pointer constraint activation logic Internally it uses the pointer focus, so make sure we have up-to-date focus before setting it.
Rename pointer_focus to pointer_contents, clarify commentsIvan Molodetskikh · f5d91c5
Rename pointer_focus to pointer_contents, clarify comments This is not pointer focus and it shouldn't be pointer focus, let's be clear about it.
2024-10-29
Don't show the cursor on programmatic movementIvan Molodetskikh · d3e7224
Don't show the cursor on programmatic movement For keyboard-only use, especially with warp-mouse-to-focus, the intention is that the cursor stays hidden from keyboard and other automatic actions, and only shows up with an actual mouse movement.
[cfg-breaking] Rename hide-on-key-press to hide-when-typingIvan Molodetskikh · 13fe9c8
[cfg-breaking] Rename hide-on-key-press to hide-when-typing I originally preferred on-key-press, but when-typing feels more natural and matches sway. This setting had not been in a stable release yet so this is not stable release cfg breaking.
2024-10-20
2024-07-15
2024-10-18
support binding actions to switches (#747)Christian Meissl · Unverified79fd309
support binding actions to switches (#747) * support spawn action on switch events this adds a new config section named `switch-events` that allows to bind `spawn` action to certain switch toggles. * Expand docs --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-10-17
Add scroll-button property for Touchpad, Mouse, Trackpoint, Trackball (#744)chillinbythetree · Unverifieda480087Browse files
2024-10-16
Implement input configuration for trackballs (#743)tazjin · Unverified84655d3
Implement input configuration for trackballs (#743) * niri-config: add trackball configuration struct The available options are mostly the same as for mice. I've verified that each option is applicable to trackballs in the libinput CLI. * input: apply trackball config settings
2024-10-15
input: apply output transform for tablet input (#737)Christian Meissl · Unverified0c5e046
input: apply output transform for tablet input (#737) when mapping a tablet input to an output apply the output transform just like we already do for touch input.
2024-10-11
2024-10-10
layout: Reduce field visibilityIvan Molodetskikh · ab7d81a
layout: Reduce field visibility The outside code isn't supposed to mess with the fields.
2024-10-09
2024-10-06
Rework pointer inactivity hide as a timerIvan Molodetskikh · 6fb60da
Rework pointer inactivity hide as a timer The previous way was prone to triggering late due to compositor idling and therefore never calling the check function.
2024-10-02
2024-10-06
Show hidden pointer on mouse pressIvan Molodetskikh · 1ba2be3
Show hidden pointer on mouse press Feels like this should be the case.
2024-02-24
2024-09-13
2024-09-12
2024-09-05
2024-09-06
Implement by-id window addressing in IPC and CLI, fix move-column-to-workspaceIvan Molodetskikh · dcb29ef
Implement by-id window addressing in IPC and CLI, fix move-column-to-workspace This is a JSON-breaking change for the IPC actions that changed from unit variants to struct variants. Unfortunately, I couldn't find a way with serde to both preserve a single variant, and make it serialize to the old value when the new field is None. I don't think anyone is using these actions from JSON at the moment, so this breaking change is fine.
2024-09-04
2024-06-20
2024-07-31
add mod3 key binding support (#565)Jeff Peeler · Unverified9728dbe
add mod3 key binding support (#565) * add support for iso_level5_shift modifier * update Cargo.lock bumps smithay to de94e8f59e202b605c35dfe1fef1857bad427e8c
2024-07-13
2024-07-10
Add move-column-{left/right}-or-to-monitor-{left/right} (#528)Winter · Unverifieda283c34
Add move-column-{left/right}-or-to-monitor-{left/right} (#528)
* feature added, move-column-left-or-monitor-left and move-column-right-or-monitor-right
* fixed stupid mistake
* yalter's fixes
* fixed names
* fixed a stupid mistake
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>2024-07-08
2024-07-07
Clear pointer grab upon opening the screenshot UIIvan Molodetskikh · 6ec9c72
Clear pointer grab upon opening the screenshot UI Gets rid of DND surfaces.
2024-07-06
2024-06-30
2024-07-05
Added Commnads to focus windows or Monitors above/below the active window (#497)TheAngusMcFire · Unverifieda56e4ff
Added Commnads to focus windows or Monitors above/below the active window (#497) * Implement focus-window-up/down-or-monitor calls * Fixed wrong naming of focus-window-or-monitor commands * fix copy pase errors for focusing direction * Fixed wrong behaviour when the current workspace is empty * Cleanup navigation code to reduce complexity * Fix wrong comments and add testcases for FocusWindowOrMonitorUp/Down --------- Co-authored-by: Christian Rieger <christian.rieger@student.tugraz.at>
2024-06-28
feat: add `focus-column-or-monitor-left`, `focus-column-or-monitor-right` (#456)Filipe Paniguel · Unverifiedbdf9894
feat: add `focus-column-or-monitor-left`, `focus-column-or-monitor-right` (#456) * feat: add support for focus-window-or-monitor * addresses output without window case * refactor: reduce verbosity * update this.. * refactor: rename `maybe_focus_window` functions * refactor: flip focus_window_or_output return logic * Update src/layout/mod.rs Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * refactor: rename to Column * move blocks next to other Column variables --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-06-19
2024-06-17
Refactor layout to fractional-logicalIvan Molodetskikh · 1dae45c
Refactor layout to fractional-logical Lets borders, gaps, and everything else stay pixel-perfect even with fractional scale. Allows setting fractional border widths, gaps, struts. See the new wiki .md for more details.
2024-06-09
Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391)James Sully · Unverifieda55e385
Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391) * add focus-column-right-or-first * add focus-column-left-or-last
2024-06-07
2024-05-23
Add "off" and "disabled-on-external-mouse" properties to input devicesYuya Nishihara · c8e46b9
Add "off" and "disabled-on-external-mouse" properties to input devices This is called "events <mode>" in Sway, but we decided to use more abstracted form for consistency with the other config items. "disabled-on-external-mouse" is added only to touchpads, but there might be other devices that support this option. I think "off" also applies to keyboards, but I'm not going to add the one because we don't have libinput machinery for the keyboard config, and it's unlikely that user wants to disable _all_ keyboards. OTOH, pointer devices can be disabled per type. Perhaps, this should be revisited after implementing #371.