forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 90ef2020c414df287c4d962b7ebce134f70cfeb7Filtered to src/input/mod.rsClear filter

2025-08-28

2025-06-16

2025-08-26

2025-08-21

2025-07-16

Unfocus layout when exit confirm dialog is openIvan Molodetskikh · d662811
Unfocus layout when exit confirm dialog is open

Screen readers expect closing a modal dialog to reannounce the previous focus.
This makes the exit confirm dialog more modal in this sense: it will unfocus
the layout and then focus it back when closed, giving the desired behavior.

2025-08-21

Move fallibility inside ExitConfirmDialogIvan Molodetskikh · 0a8b4e0
Move fallibility inside ExitConfirmDialog

Makes it less annoying on the outside.

2025-08-20

Add spawn-sh, spawn-at-startup-shIvan Molodetskikh · e81f356
Add spawn-sh, spawn-at-startup-sh

Our top 10 most confusing config moments

2025-08-19

Add per-axis scroll speed config for input devices (#2109)Bernardo Kuri · Unverified5ea9092
Add per-axis scroll speed config for input devices (#2109)

* Add per-axis scroll speed config for input devices.

Accepts negative values to inverse scroll direction.

Properly complements/overrides global `scroll-direction` setting.

Includes docs and tests.

* Update per-axis scroll factor implementation after testing

- Refined configuration structure in niri-config
- Updated input handling to use per-axis scroll factors
- Added comprehensive test snapshots
- Updated documentation with per-axis examples

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Simplify per-axis scroll factor implementation per review feedback

- Make documentation concise and clear
- Remove unnecessary comments and test helper functions
- Use inline snapshots for tests
- Rename get_factors() to h_v_factors() for clarity
- Remove unnecessary .clone() calls (ScrollFactor is Copy)
- Reduce test count to essential cases only
- Fix comment about window factor override behavior

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Remove unnecessary ScrollFactor::new() helper function

The maintainer prefers minimal code, so removing this helper and
constructing ScrollFactor directly in tests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix scroll factor behavior - all settings now multiply with window factor

Per maintainer feedback, both combined and per-axis scroll settings
should multiply with the window-specific scroll factor, not override it.
This ensures consistent behavior regardless of configuration method.

Also removed the now-unused has_per_axis_override() method.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Final cleanup: remove redundant comments and unused snapshot files

- Removed unused snapshot files (now using inline snapshots)
- Removed redundant inline comments in tests
- Simplified test descriptions to be more concise

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Convert scroll factor parsing tests to use assert_debug_snapshot

Updates parse_scroll_factor_combined, parse_scroll_factor_split, and
parse_scroll_factor_partial tests to use assert_debug_snapshot instead
of manual assert_eq comparisons, as requested in PR review.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Convert to inline snapshots as requested

- Convert all scroll factor parsing tests to use inline snapshots instead of external files
- Remove external snapshot files to keep test directory clean
- All tests still pass with inline snapshot assertions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix missed assert_eq in parse_scroll_factor_mixed test

Converts the remaining assert_eq calls to assert_debug_snapshot
with inline snapshots in the mixed syntax test function.
Also fixes raw string delimiters from ### to #.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Convert scroll_factor_h_v_factors test to use assert_debug_snapshot

Makes all scroll factor tests consistent by using snapshots instead
of assert_eq for better maintainability.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fixes

---------

Co-authored-by: Bernardo Kuri <github@bkuri.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-08-09

Add the `LoadConfigFile` action (#2163)vanderlokken · Unverified67361f8
Add the `LoadConfigFile` action (#2163)

* Add the `LoadConfigFile` action

* fixes

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-07-16

Implement org.fd.a11y KeyboardMonitorIvan Molodetskikh · 672bf3e
Implement org.fd.a11y KeyboardMonitor

Makes Orca work with niri:
- keyboard watching and announcing everywhere (not just GTK 3 windows)
- grabs for the Orca modifier (with double-press to pass through) and keystrokes

2025-06-18

2025-06-12

2025-06-11

Expand screenshot UI to handle move-X-or-to-workspace/monitor-X (#1669)Illia Ostapyshyn · Unverified10a6d6a
Expand screenshot UI to handle move-X-or-to-workspace/monitor-X (#1669)

* Expand screenshot UI to handle more moving actions

Currently, screenshot UI handles MoveColumn{Left,Right} and
MoveWindow{Up,Down} which move the screenshot selection as if it were a
floating window.  Expand this to include MoveColumn*OrToMonitor* and
MoveWindow*OrToWorkspace* and adjust their logic to move the screenshot
selection.

* Update src/input/mod.rs

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-06-09

Accept FloatOrInt for input accel_speed, animation slowdownIvan Molodetskikh · 6bab912
Accept FloatOrInt for input accel_speed, animation slowdown

Technically cfg-breaking due to introducing min/max limits at parse time, but
values outside these limits were invalid anyway, so maybe it's fine?

2025-05-25

Rename Un/Set/ToggleUrgent to Un/Set/ToggleWindowUrgentIvan Molodetskikh · 126ca37
Rename Un/Set/ToggleUrgent to Un/Set/ToggleWindowUrgent

Overlooked this when reviewing. This change is not cfg-breaking (since you
can't bind these directly), but it does break calling these actions through
IPC. I don't imagine they are widely used though, and the original PR author
who also implemented urgency for bars said he didn't use these actions either.

2025-05-23

input: do not revert fully invisible cursor to hidden (#1650)Duncan Overbruck · Unverified7fdb918
input: do not revert fully invisible cursor to hidden (#1650)

* input: do not force redraw to hide an already hidden cursor

* more

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-05-22

2025-05-21

input: Add missing redraws on urgency actionsIvan Molodetskikh · 71251a7
input: Add missing redraws on urgency actions

The layout urgent colors update even without window rule changes.

2025-05-16

2025-05-12

2025-03-27

2025-05-09

Add a clickable button to capture the screenshotIvan Molodetskikh · 0763c7e
Add a clickable button to capture the screenshot

Allows tablet-, touch- and mouse-only confirmation.
Extract evt.slot()Ivan Molodetskikh · e2b9838Browse files
Use early returnIvan Molodetskikh · b956f27Browse files

2025-05-01

2025-04-27

Fix pointer hiding so that it is no longer annoying (#1426)bogdanov · Unverified758cca5
Fix pointer hiding so that it is no longer annoying (#1426)

* replace `pointer_hidden` with `pointer_visiblity`

* disable hidden pointer after content underneath has changed

* fixes

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-04-25

Implement top-left hot corner to toggle the OverviewIvan Molodetskikh · e6d82d3
Implement top-left hot corner to toggle the Overview

Compared to third-party implementations such as waycorner:

- It works during interactive window move (no surfaces receive pointer
  focus in this case, so this cannot work through layer-shell).
- It works during drag-and-drop.
- It disables itself over fullscreen windows.
- It does not prevent direct scanout.
Implement an OverviewIvan Molodetskikh · af1fca3Browse files

2025-04-24

2025-04-20

Remove cancellation from swipe gesturesIvan Molodetskikh · 59a4224
Remove cancellation from swipe gestures

It only worked for workspace switch, and even there it was more confusing than
helpful.

2025-04-04

input: Don't panic on resize edge None when window is SomeIvan Molodetskikh · feae8c1
input: Don't panic on resize edge None when window is Some

This can already happen with the tab indicator, it will happen more onwards.

2025-03-29

screenshot: make selection area modifiable via move/resize keybinds (#1279)nyx · Unverified7dc015e
screenshot: make selection area modifiable via move/resize keybinds (#1279)

* screenshot: make selection area modifiable via keybinds

* input: run fmt

* Reimplement screenshot UI binds in a better way

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Add focus argument to move-window-to-workspace (#1332)nyx · Unverified0db48e2
Add focus argument to move-window-to-workspace (#1332)

* layout: add focus flag to move-window-to-workspace

* lib: update comment

* misc: minor dup refactor

* input: format code

* layout: minor nit

* layout: update comment

* input: remove unnecessary conditionals

* misc: replace boolean

* tests: fix the failing one

* layout: change to smart

* ipc: Option<bool> -> bool

* lib: format code

* Rewrite focus doc comment

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-03-06

feat: support color picker functionalitynnyyxxxx · 7210045
feat: support color picker functionality

chore: format code

refactor: improve quality

feat: implement gnomes PickColor method

refactor: minor code extraction

misc: fix reviews

fixes