Ivan Molodetskikh
902222675a
Use Niri::insert_client() in tests
2025-01-27 08:16:09 +03:00
Ivan Molodetskikh
ec43493522
Extract Niri::insert_client()
2025-01-27 08:06:33 +03:00
Evgeny Zemtsov
baa0518912
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-26 19:09:01 +00:00
Ivan Molodetskikh
d665079b84
CI: Don't forget to build randomized tests in release
2025-01-26 09:54:40 +03:00
Ivan Molodetskikh
f0d935dee1
CI: Further reduce the number of proptest cases
2025-01-26 09:39:04 +03:00
Ivan Molodetskikh
314b82caa0
CI: Reduce number of proptest cases
2025-01-26 09:20:49 +03:00
Ivan Molodetskikh
8f79139b78
CI: Add a randomized tests job
2025-01-26 08:37:25 +03:00
Ivan Molodetskikh
c5296b870a
CI: Write out dependencies once at the top
2025-01-26 08:37:24 +03:00
Ivan Molodetskikh
78697d1cea
Switch Smithay back to git
...
Release currently has an unfortunate merge that breaks IMEs.
2025-01-25 11:51:45 +03:00
Kirottu
852da5714a
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-25 08:49:51 +00:00
Ivan Molodetskikh
4f79303811
CI: Remove version string from msrv job
...
Required checks on GitHub need to be updated every time otherwise.
2025-01-25 10:54:07 +03:00
Ivan Molodetskikh
f294d527e1
wiki: Add clipboard section
2025-01-25 10:52:43 +03:00
peelz
54a1cd5069
Add clipboard disable-primary setting
2025-01-25 10:36:36 +03:00
Ivan Molodetskikh
748d90b443
Update Smithay to a crates.io version
...
What a time to be alive
2025-01-24 08:42:11 +03:00
bbb651
128b01e049
Add scroll-factor window rule
2025-01-23 12:07:32 +03:00
Ivan Molodetskikh
788c9c6c54
Add find_root_shell_surface() that goes through popups
2025-01-23 12:07:32 +03:00
Ivan Molodetskikh
a10705fb20
Add toggle-window-rule-opacity action
2025-01-23 11:13:55 +03:00
dependabot[bot]
b01b8afa8c
build(deps): bump clap in the rust-dependencies group
...
Bumps the rust-dependencies group with 1 update: [clap](https://github.com/clap-rs/clap ).
Updates `clap` from 4.5.26 to 4.5.27
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.26...clap_complete-v4.5.27 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-21 11:56:26 +03:00
Ivan Molodetskikh
acd4cb51aa
Implement shadows for layer surfaces
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
5ebcae997e
wiki: Add missing property to window rules example
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
2511a98e8b
Extract Niri::update_shaders()
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
a7692d10c4
Add update_render_elements() to MappedLayer
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
c892f04c96
tile: Rename update() to update_render_elements()
2025-01-21 11:31:30 +03:00
Ivan Molodetskikh
3aad5a39ea
Fix two comments
2025-01-21 11:31:30 +03:00
dependabot[bot]
7f025da5b6
build(deps): bump the rust-dependencies group with 2 updates
...
Bumps the rust-dependencies group with 2 updates: [sd-notify](https://github.com/lnicola/sd-notify ) and [serde_json](https://github.com/serde-rs/json ).
Updates `sd-notify` from 0.4.4 to 0.4.5
- [Changelog](https://github.com/lnicola/sd-notify/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lnicola/sd-notify/compare/v0.4.4...v0.4.5 )
Updates `serde_json` from 1.0.135 to 1.0.137
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.135...v1.0.137 )
---
updated-dependencies:
- dependency-name: sd-notify
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-20 13:53:29 +03:00
dependabot[bot]
01285bdbbe
build(deps): bump the smithay group with 2 updates
...
Bumps the smithay group with 2 updates: [smithay](https://github.com/Smithay/smithay ) and [smithay-drm-extras](https://github.com/Smithay/smithay ).
Updates `smithay` from `fe31867` to `953959e`
- [Release notes](https://github.com/Smithay/smithay/releases )
- [Commits](https://github.com/Smithay/smithay/compare/fe31867e3afac2543c4016fb8ed99df3e11eb6da...953959e6069b3e14dba96fdaa46c65990c21d5c9 )
Updates `smithay-drm-extras` from `fe31867` to `953959e`
- [Release notes](https://github.com/Smithay/smithay/releases )
- [Commits](https://github.com/Smithay/smithay/compare/fe31867e3afac2543c4016fb8ed99df3e11eb6da...953959e6069b3e14dba96fdaa46c65990c21d5c9 )
---
updated-dependencies:
- dependency-name: smithay
dependency-type: direct:production
dependency-group: smithay
- dependency-name: smithay-drm-extras
dependency-type: direct:production
dependency-group: smithay
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-20 13:51:41 +03:00
Ivan Molodetskikh
8182484572
Remove Vec from Shadow::render()
2025-01-18 17:43:58 +03:00
sodiboo
0584dd2f1e
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-18 17:26:42 +03:00
Ivan Molodetskikh
bd559a2660
Implement window shadows
2025-01-17 23:10:01 +03:00
dependabot[bot]
b4add625b2
build(deps): bump sd-notify in the rust-dependencies group
...
Bumps the rust-dependencies group with 1 update: [sd-notify](https://github.com/lnicola/sd-notify ).
Updates `sd-notify` from 0.4.3 to 0.4.4
- [Changelog](https://github.com/lnicola/sd-notify/blob/master/CHANGELOG.md )
- [Commits](https://github.com/lnicola/sd-notify/compare/v0.4.3...v0.4.4 )
---
updated-dependencies:
- dependency-name: sd-notify
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-17 11:34:41 +03:00
Val Packett
890bbff007
dbus: DisplayConfig: implement apply_monitors_config
...
This enables gnome-control-center to apply display configuration
changes. Only temporarily, persistence is ignored currently.
2025-01-17 11:16:10 +03:00
Val Packett
b853d5b124
dbus: DisplayConfig: report fractional scales as supported
2025-01-17 11:16:10 +03:00
Val Packett
693e0e09f7
dbus: DisplayConfig: report disabled monitors in get_current_state
...
This is required for gnome-control-center to be able to turn
monitors back on.
2025-01-17 11:16:10 +03:00
Val Packett
d52356b131
dbus: DisplayConfig: add properties required by display settings panel
2025-01-17 11:16:10 +03:00
dependabot[bot]
b11b995d03
build(deps): bump the rust-dependencies group with 2 updates
...
Bumps the rust-dependencies group with 2 updates: [bitflags](https://github.com/bitflags/bitflags ) and [log](https://github.com/rust-lang/log ).
Updates `bitflags` from 2.7.0 to 2.8.0
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.7.0...2.8.0 )
Updates `log` from 0.4.22 to 0.4.25
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.22...0.4.25 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-16 12:51:04 +03:00
Ivan Molodetskikh
99ba295082
Remove obsolete comment
2025-01-15 15:18:11 +03:00
Ivan Molodetskikh
8c2b5957eb
Rename FoIPosition to FloatingPosition
2025-01-15 14:29:35 +03:00
dependabot[bot]
4472164447
build(deps): bump the smithay group with 2 updates
...
Bumps the smithay group with 2 updates: [smithay](https://github.com/Smithay/smithay ) and [smithay-drm-extras](https://github.com/Smithay/smithay ).
Updates `smithay` from `2a0d430` to `fe31867`
- [Release notes](https://github.com/Smithay/smithay/releases )
- [Commits](https://github.com/Smithay/smithay/compare/2a0d4307430dc478b0b2f278bc5dc56ec02aa5ca...fe31867e3afac2543c4016fb8ed99df3e11eb6da )
Updates `smithay-drm-extras` from `2a0d430` to `fe31867`
- [Release notes](https://github.com/Smithay/smithay/releases )
- [Commits](https://github.com/Smithay/smithay/compare/2a0d4307430dc478b0b2f278bc5dc56ec02aa5ca...fe31867e3afac2543c4016fb8ed99df3e11eb6da )
---
updated-dependencies:
- dependency-name: smithay
dependency-type: direct:production
dependency-group: smithay
- dependency-name: smithay-drm-extras
dependency-type: direct:production
dependency-group: smithay
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-15 12:32:32 +03:00
Ivan Molodetskikh
a3cbe3514b
clipped_surface: Store complete uniforms in the struct
...
This mistake shall never happen again.
2025-01-14 21:25:17 +03:00
Ivan Molodetskikh
efa7c862a4
Add missing clipped surface uniform
2025-01-14 21:19:05 +03:00
Gustav Sörnäs
0df7a085de
add write-to-disk argument to screenshot actions
2025-01-14 13:39:52 +03:00
dependabot[bot]
6ae51f287c
build(deps): bump the smithay group with 2 updates
...
Bumps the smithay group with 2 updates: [smithay](https://github.com/Smithay/smithay ) and [smithay-drm-extras](https://github.com/Smithay/smithay ).
Updates `smithay` from `e1a863b` to `2a0d430`
- [Release notes](https://github.com/Smithay/smithay/releases )
- [Commits](https://github.com/Smithay/smithay/compare/e1a863b3ffc2d560007e3b89e5bbe9500c69221e...2a0d4307430dc478b0b2f278bc5dc56ec02aa5ca )
Updates `smithay-drm-extras` from `e1a863b` to `2a0d430`
- [Release notes](https://github.com/Smithay/smithay/releases )
- [Commits](https://github.com/Smithay/smithay/compare/e1a863b3ffc2d560007e3b89e5bbe9500c69221e...2a0d4307430dc478b0b2f278bc5dc56ec02aa5ca )
---
updated-dependencies:
- dependency-name: smithay
dependency-type: direct:production
dependency-group: smithay
- dependency-name: smithay-drm-extras
dependency-type: direct:production
dependency-group: smithay
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-14 11:35:00 +03:00
Erica Z
36076d5279
make niri-session POSIX compatible ( #970 )
...
* make niri-session POSIX compatible
* Update resources/niri-session
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-01-14 09:41:50 +03:00
dependabot[bot]
427c4e3982
build(deps): bump directories from 5.0.1 to 6.0.0
...
Bumps [directories](https://github.com/soc/directories-rs ) from 5.0.1 to 6.0.0.
- [Commits](https://github.com/soc/directories-rs/commits )
---
updated-dependencies:
- dependency-name: directories
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-13 13:36:17 +03:00
dependabot[bot]
1632ce87a5
build(deps): bump zbus in the rust-dependencies group
...
Bumps the rust-dependencies group with 1 update: [zbus](https://github.com/dbus2/zbus ).
Updates `zbus` from 5.2.0 to 5.3.0
- [Release notes](https://github.com/dbus2/zbus/releases )
- [Commits](https://github.com/dbus2/zbus/compare/zbus-5.2.0...zbus-5.3.0 )
---
updated-dependencies:
- dependency-name: zbus
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-01-13 13:35:10 +03:00
bbb651
c523c80598
Support WAYLAND_SOCKET in winit backend
...
I know of a single compositor that supports `WAYLAND_SOCKET` but not
`WAYLAND_DISPLAY`: https://gitlab.freedesktop.org/mstoeckl/windowtolayer
This should also make niri more robust against accidentally setting
`WAYLAND_SOCKET` when starting as a session, before programs could fail
if they preffered `WAYLAND_SOCKET` over `WAYLAND_DISPLAY`
2025-01-13 08:19:17 +03:00
mrheinen
0bd6df507b
Highlight that the path in niri.service should be checked ( #962 )
...
* Highlight that the path in niri.service should be checked
Having just installed niri I ran into this issue. When building from source on Ubuntu the install location using the instructions in this document is /usr/local//bin/niri.
However niri.service pointed to /usr/bin/niri so my session would not start at all. Hopefully this update helps
* Update wiki/Getting-Started.md
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2025-01-13 06:59:21 +03:00
sodiboo
6e41220dbf
use standard padding syntax instead of implementing our own
...
the padding of the two-digit-month can be implemented much more
concisely using `std::fmt` syntax.
2025-01-12 21:38:51 +03:00
Ivan Molodetskikh
e05bc269e6
README: Update screenshot
v25.01
2025-01-11 19:53:25 +03:00
Ivan Molodetskikh
d574341f1f
wiki: Add missing period
2025-01-11 09:10:45 +03:00