Commits
2025-05-09
refactor(main): eliminate a `mut` from config load code in mainJames Sully · 7a10f71
refactor(main): eliminate a `mut` from config load code in main I think this makes for marginally better readability, since you don't have to wonder whether config_errored is set anywhere else. It's also slightly terser.
fix: don't try to create a default config at path that existsJames Sully · ea7add3
fix: don't try to create a default config at path that exists Currently this bug has no actual consequences, we just continue silently on AlreadyExists in main() (this line: https://github.com/YaLTeR/niri/blob/e9c6f08906143c3fec1ad1301d538bef4cbc1978/src/main.rs#L151). This commit just eliminates the redundant attempt.
2025-03-12
main: Log to stderr instead of stdoutJon Heinritz · e88dfae
main: Log to stderr instead of stdout Currently we can't use logging in paths like niri msg that have meaningful stdout. Logging to stderr makes that possible. Even if we don't want to log anything in niri msg code paths, it's easy to have something accidentally log.
2025-03-10
Add Shell completions (#1226)Jon Heinritz · Unverified87b6c12
Add Shell completions (#1226) * feat(cli): add subcommand to generate shell completions * Update src/cli.rs Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-02-16
Enable fancy miette errors for the main binaryIvan Molodetskikh · 108e88e
Enable fancy miette errors for the main binary Seems there's not much dependency/binary size impact now, compared to when I first made the KDL config.
2025-02-12
Parse the config on the file watcher threadIvan Molodetskikh · ef80bcc
Parse the config on the file watcher thread It takes a while, so let's not block the main thread.
2025-02-05
2025-01-27
2025-01-12
Support `WAYLAND_SOCKET` in winit backendbbb651 · c523c80
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`
2024-12-20
Add a Headless backend for testsIvan Molodetskikh · fbb0054
Add a Headless backend for tests Rendering and stuff is unimplemented.
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-02
2024-09-13
Add NIRI_DISABLE_SYSTEM_MANAGER_NOTIFY envIvan Molodetskikh · 22fee7b
Add NIRI_DISABLE_SYSTEM_MANAGER_NOTIFY env Useful for UWSM I guess.
2024-09-04
2024-09-02
2024-05-26
2024-05-23
Increase RLIMIT_NOFILE to maximumIvan Molodetskikh · bcca03c
Increase RLIMIT_NOFILE to maximum Fixes Xwayland + RustRover crashing. See similar changes: * https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2235 * https://github.com/swaywm/sway/pull/6629
2024-05-09
2024-04-21
2024-03-06
Add dinit support (#246)metent · Unverified431f070
Add dinit support (#246) * Add dinit support - Add --notify-fd cli flag for ready notifications - Set dinit activation environment when "dinit" feature flag is enabled * Make systemd and dinit environment activation additive * Use NOTIFY_FD env variable instead of --notify-fd cli flag for sending ready notifications * Format with rustfmt
2024-02-24
2024-02-22
2024-02-21
2024-02-20
Upgrade logs about removing env vars to warn!Ivan Molodetskikh · 5b3bfd9
Upgrade logs about removing env vars to warn! These are more visible now with the --session flag.
Set XDG_CURRENT_DESKTOP and XDG_SESSION_TYPE from niri itselfIvan Molodetskikh · 9f1b4eeBrowse files
Add --session CLI flag instead of detection based on systemd serviceIvan Molodetskikh · f0a5e9c
Add --session CLI flag instead of detection based on systemd service Allows running without systemd.
2024-02-19
utils/spawn: Put processes into systemd scopesIvan Molodetskikh · 6ba24e3
utils/spawn: Put processes into systemd scopes This separates them from the niri scope for the purposes of e.g. the OOM killer only killing the app and not the compositor.
2024-02-12
2024-02-10
2024-02-07
2024-02-05
Add lib.rs, become a mixed lib-bin crateIvan Molodetskikh · 3789d85
Add lib.rs, become a mixed lib-bin crate Will be used for visual tests.
2024-02-01
2024-01-29
Implement wlr-foreign-toplevel-managementIvan Molodetskikh · 59ff331
Implement wlr-foreign-toplevel-management The parent event isn't sent but whatever.
2024-01-28
Mark Msg as pubIvan Molodetskikh · 367e495
Mark Msg as pub Seems to break the build on 1.72.0 otherwise.
2024-01-19
2024-01-18
Add a config parse error notificationIvan Molodetskikh · fa9b3ed
Add a config parse error notification We can't rely on a notification daemon being available, especially during initial niri setup. So, render our own.