forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 4eddcef1beeff824d6eb63fc643bf2a88ab9c20fFiltered to src/input/mod.rsClear filter

2025-01-29

misc: Fix typosbbb651 · 34679c7
misc: Fix typos

Using [`typos`](https://github.com/crate-ci/typos) cli

2025-01-26

Extend switch-layout action to accept layout index (#1045)Evgeny Zemtsov · Unverifiedbaa0518
Extend switch-layout action to accept layout index (#1045)

* Extend switch-layout action to accept layout index

* Update src/input/mod.rs

---------

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

2025-01-25

Add move-workspace-to-index and move-workspace-to-monitor actions (#1007)Kirottu · Unverified852da57
Add move-workspace-to-index and move-workspace-to-monitor actions (#1007)

* Added move-workspace-to-index and move-workspace-to-monitor IPC actions

* Added redraws to the workspace handling actions, fixed tests that panicked, fixed other mentioned problems.

* Fixed workspace focusing and handling numbered workspaces with `move-workspace-to-index`

* Fixed more inconsistencies with move-workspace-to-monitor

* Added back `self.workspace_switch = None`

* Reordered some workspace cleanup logic

* Fix formatting

* Add missing blank lines

* Fix moving workspace to same monitor and wrong current index updating

* Move function up and add fixme comment

---------

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

2025-01-20

2025-01-23

2025-01-18

implement `keyboard-shortcuts-inhibit` and `wlr-virtual-pointer` (#630)sodiboo · Unverified0584dd2
implement `keyboard-shortcuts-inhibit` and `wlr-virtual-pointer` (#630)

* stub keyboard-shortcuts-inhibit and virtual-pointer impls

* implement keyboard-shortcuts-inhibit

* implement virtual-pointer

* deal with supressed key release edge-case; add allow-inhibiting property

* add toggle-keyboard-shortcuts-inhibit bind

* add InputBackend extensions; use Device::output() for absolute pos events

* add a `State` parameter to the backend exts and better document future intent

* Add some tests for is_inhibiting_shortcuts

---------

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

2025-01-14

2025-01-10

Fix new Clippy warningsIvan Molodetskikh · 623687eBrowse files
Allow workspace names to be changed dynamically (#904)rustn00b · Unverified5958d3b
Allow workspace names to be changed dynamically (#904)

* Add un/set workspace name actions

* Add SetWorkspaceName reference to proptests

* Simplify unname_workspace

* Add ewaf version of set first workspace name test

* Simplify more

* Fix comment

* Make workspace in set-workspace-name a positional option

---------

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

2025-01-09

Add a window swap operation (#899)rustn00b · Unverified80815a1
Add a window swap operation (#899)

Swap the active window with the a neighboring column's active window.


---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Take into account PR comments

- no longer behave like an expel when a swap is made in a direction
  where there is no column to swap with
- fix janky animation

2025-01-03

2024-12-15

2024-12-13

2024-12-30

2024-12-29

2024-12-28

2024-11-29

2024-11-30

layout: Extract ScrollingSpaceIvan Molodetskikh · 8665003
layout: Extract ScrollingSpace

Leave the Workspace to do the workspace parts, and extract the scrolling parts
into a new file. This is a pre-requisite for things like the floating layer
(which will live in a workspace alongside the scrolling layer).

As part of this huge refactor, I found and fixed at least these issues:
- Wrong horizontal popup unconstraining for a smaller window in an
  always-centered column.
- Wrong workspace switch in focus_up_or_right().

2024-11-03

xdg: startup activationChristian Meissl · 61f2ac0
xdg: startup activation

pass an activation token to process spawned through actions

2024-11-24

2024-11-23

2024-11-21

Add `focus-window-previous` action (#811)Ridan Vandenbergh · Unverifieda74a578
Add `focus-window-previous` action (#811)

* Add `FocusWindowPrevious` action

* remove [`

* track previous focus in Niri instead of every window

---------

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

2024-11-12

Guard against closed screenshot UI in its bindsIvan Molodetskikh · db1faec
Guard against closed screenshot UI in its binds

They can trigger with closed screenshot UI via key repeat.

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>
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

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