Mark Karlinsky
d7156df842
Add support for running as a dinit service ( #728 )
...
* Added dinit services
* Added dinit support to niri-session
* Replaced shutdown script for dinit with a single command execution
* Added dinit service files to Getting Started install tables
* Fix typo in resources/dinit/niri
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* Fixed mistakes in wiki/Getting-Started.md
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
* niri-session does not start dinit anymore
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-10-13 12:26:16 +00:00
Ivan Molodetskikh
33b39913c7
layout: Fix expel animation of the smaller window in column
2024-10-12 09:58:03 +03:00
Ivan Molodetskikh
d5cbc35811
Implement ConsumeOrExpelWindow{Left,Right} by id
2024-10-12 09:58:03 +03:00
Ivan Molodetskikh
a038c5aaab
layout/workspace: Add add_tile_to_column()
2024-10-12 09:58:03 +03:00
Ivan Molodetskikh
c9c985c927
Support empty column in tile_offsets
...
Will be needed for the new inserting tile code.
2024-10-11 11:00:50 +03:00
Ivan Molodetskikh
859c0be0e5
layout: Add clarifying comment
2024-10-10 10:44:18 +03:00
Ivan Molodetskikh
810ea245f9
layout: Deduplicate default width resolution
2024-10-10 10:40:59 +03:00
Ivan Molodetskikh
58fc5f3b06
layout: Replace move_window_to_output with move_to_output
2024-10-10 10:28:55 +03:00
Ivan Molodetskikh
7d4e99b760
layout/workspace: Reduce code duplication in adding windows
2024-10-10 10:17:16 +03:00
Ivan Molodetskikh
ab7d81aae0
layout: Reduce field visibility
...
The outside code isn't supposed to mess with the fields.
2024-10-10 09:24:20 +03:00
Winter
e24723125f
added power-on-monitors ( #723 )
2024-10-09 08:50:06 +00:00
Ivan Molodetskikh
03c603918d
Document the new cursor hide settings
2024-10-06 22:09:19 -07:00
Ivan Molodetskikh
6fb60dacd2
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-06 22:09:19 -07:00
yzy-1
42a9daec9d
Implement hide cursor on key press and on timeout
2024-10-06 22:09:19 -07:00
Ivan Molodetskikh
1ba2be3928
Show hidden pointer on mouse press
...
Feels like this should be the case.
2024-10-06 22:09:19 -07:00
sodiboo
66be000410
implement locked cursor position hints ( #685 )
...
* implement cursor position hints
* Remove redundant fully qualified path
* Find root surface
* Convert nesting to if-return
* Manually wrap error messages
* Remove error!() prints
* Add queue redraw
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com >
2024-10-06 20:36:49 +03:00
sodiboo
5fc669c282
remove redundant pointer casts in shader code
2024-10-05 22:26:47 -07:00
sodiboo
9b78b15ba5
use CStr literals over calling CStr::from_bytes_with_nul
2024-10-05 22:26:47 -07:00
sodiboo
b9fd0a405e
use if let Some() over match with None => ()
2024-10-05 22:26:47 -07:00
seth
1b44e0cd20
flake: add overlay output
2024-10-05 12:09:24 -07:00
seth
b3d4d4eacc
flake: use rust-overlay in dev shell
...
This allows `niri-visual-tests` to still be built and run in the dev
shell where it's necessary, as well as brings back the nightly `rustfmt`
used by the project
We can't use `fenix` again though as it doesn't wrap `ld` like nixpkgs
and rust-overlay do; without it, the way we link `dlopen()`'d libraries
breaks
2024-10-05 12:09:24 -07:00
seth
a835bdc940
ci: nix build -> nix flake check
...
The (debug) package is already set as a check and will still be built
with this, but Nix will now also check other outputs automatically --
such as the dev shell
2024-10-05 12:09:24 -07:00
seth
b258fd69d2
flake: improve packaging
...
Some highlights include:
- Removing some unnecessary dependencies of the package itself
- Allowing for overriding the package
- Adding Cargo feature toggles
- Installing all niri-related resources
- Avoiding `LD_LIBRARY_PATH` hacks
2024-10-05 12:09:24 -07:00
seth
3ab3e778ab
flake: drop most external inputs
...
Previously, inputs like Crane and Fenix were used to only build the
`niri` package. This isn't really required, and can easily be replaced
by nixpkgs' `rustPlatform` -- which will also lead to less dependencies
being pulled into user's lockfiles
2024-10-05 12:09:24 -07:00
seth
e6203313ce
flake: format with nixfmt
2024-10-05 12:09:24 -07:00
seth
938061dd5e
flake: use nixfmt
2024-10-05 12:09:24 -07:00
Ivan Molodetskikh
0cca7a2116
default-config: Add more comments to prefer-no-csd
2024-10-01 13:28:28 +03:00
Ivan Molodetskikh
39b46b3326
default-config: Add rounded corner window rule example
2024-10-01 13:28:16 +03:00
Ivan Molodetskikh
2aebd6bdbb
default-config: Add comments to consume/expel binds
2024-10-01 13:20:38 +03:00
Ivan Molodetskikh
b501a9b303
Upgrade dependencies
2024-09-30 15:27:36 +03:00
Ivan Molodetskikh
94e5408f46
Update Smithay
2024-09-30 15:24:50 +03:00
Christian Meissl
eb190e3f94
handle role specific buffer offset
2024-09-30 05:04:58 -07:00
spazzylemons
80bb0d5876
Remove one unnecessary .clone() call and reorder another
2024-09-30 00:45:44 -07:00
Marwin Kreuzig
c04ccafd0a
fix focus_up_or_right
2024-09-28 05:18:22 -07:00
sodiboo
6ee5b5afa7
flake: update inputs and remove crane.inputs.nixpkgs override
...
the input was removed in https://github.com/ipetkov/crane/pull/692
2024-09-15 08:05:05 -07:00
Ivan Molodetskikh
6a48728ffb
Bump version to 0.1.9
v0.1.9
2024-09-14 11:55:52 +03:00
Ivan Molodetskikh
9cb89ff26c
wiki: Update default hotkeys list
2024-09-14 10:17:27 +03:00
Ivan Molodetskikh
4e5f392c50
wiki: Document always-center-focused-column
2024-09-14 09:48:59 +03:00
Ivan Molodetskikh
e35d9e760b
default-config: Uncomment BracketLeft/BracketRight
...
These are fairly useful.
2024-09-13 21:51:56 +03:00
Ivan Molodetskikh
22fee7b003
Add NIRI_DISABLE_SYSTEM_MANAGER_NOTIFY env
...
Useful for UWSM I guess.
2024-09-13 15:45:30 +03:00
Ivan Molodetskikh
e95d28e148
README: Remove NVIDIA note
2024-09-13 15:10:25 +03:00
Ivan Molodetskikh
7a65a0b79f
wiki: Delete unstable JSON output note
2024-09-13 15:06:20 +03:00
Ivan Molodetskikh
ca30315deb
Set rust-version in Cargo.toml
2024-09-13 15:05:41 +03:00
Ivan Molodetskikh
9538e8f916
Upgrade dependencies
2024-09-13 15:05:33 +03:00
Ivan Molodetskikh
8b3715eabf
Update Smithay
2024-09-13 14:59:32 +03:00
Ivan Molodetskikh
d0f2b9abd0
Fix formatting
2024-09-12 20:54:44 +03:00
Ivan Molodetskikh
43578e21b1
Always clamp non-auto window height with >1 windows in column
2024-09-12 19:31:47 +03:00
Ivan Molodetskikh
55a798bd8b
Prevent unintended focus-follows-mouse during workspace switch
2024-09-12 16:48:29 +03:00
Ivan Molodetskikh
cdcd5a2835
Update comments
2024-09-12 13:36:08 +03:00
Ivan Molodetskikh
737e99ec69
Add preset window heights to wiki & default config
2024-09-12 02:32:44 -07:00