v0.1.2 #206
YaLTeR
announced in
Announcements
v0.1.2
#206
Replies: 2 comments 13 replies
-
Thanks for the release! Little bug founded:
|
Beta Was this translation helpful? Give feedback.
4 replies
-
I think it will be usefull info too.. Note: you can specify the Some window-rules, as example:
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks everyone for 1000 stars! 🥳
Niri is a scrollable-tiling Wayland compositor. Windows are arranged in columns on an infinite strip going to the right. Opening a new window never causes existing windows to resize.
Here are the improvements from the last release.
Note
Packagers: niri now requires libinput >= 1.21.
The new niri-visual-tests subcrate is development-only and should not be packaged. If you do
cargo test --workspace
, make sure to exclude it:cargo test --workspace --exclude niri-visual-tests
, as it brings extra native dependencies.Window opening animations
Windows now appear with an animation! Existing windows to the right move away, and the new window fades in, avoiding sudden visual jumps. All happening quickly enough to hopefully not be distracting.
niri-open-anims-release.mp4
More animations are coming, but they need time and work to implement right.
Animation settings
If you prefer reduced motion, or on the contrary if you want more animation, you can now set this up in a new
animations
config section. There's a flag to turn off, and a setting to adjust speed for all animations at once, as well as settings for every individual animation should you need it.These settings replace the now-removed
animation-slowdown
debug flag.Idle protocols
Niri now implements the ext-idle-notify and idle-inhibit pair of Wayland protocols. This allows tools like
swayidle
to work, and clients likempv
to pause them from working while you're watching videos.As a bonus, I also implemented the
org.freedesktop.ScreenSaver
D-Bus interface for idle inhibiting, used by xdg-desktop-portal-gtk. This was necessary to make Flatpak Firefox correctly inhibit the idle state, and in general covers more applications.Invoke actions via IPC
As the first expansion to the
niri msg
command, you can now invoke any bindable action withniri msg action do-something
. That is, if you can bind something likeMod+F { maximize-column; }
, then you can also call it programmatically withniri msg action maximize-column
.Turns out, one thing IPC actions are pretty convenient for is scripting video demos, like the one above!
Also, niri now has a way to report errors back to the IPC client, instead of leaving it in the dark for requests that don't otherwise need a response.
Window rules (the beginnings thereof)
You can now set some (at the moment, two) settings on a per-window basis. You can match or exclude windows from a rule with regular expressions on app-id and window title, similarly to other compositors. See the default config for a detailed explanation.
The settings you can currently set are
default-column-width
andopen-on-output
. Most notably, this lets you work around WezTerm's initial configure bug:More rules, including dynamically updating ones, are coming, after some refactors.
Better focus stealing prevention
To minimize your distraction, niri prevents new windows from taking focus while you're in a fullscreen application (I've had enough games ruined by a sudden Steam chat message). In this release, niri will additionally track when a newly opened window is a dialog from a particular existing window, and put that dialog to the immediate right from its parent window. The dialog will get focus only if the parent window was focused.
This change both prevents some random client from a different monitor/workspace from taking focus with a sudden dialog (looking at you, syncthing-gtk), and lets dialogs originating from fullscreen windows take focus as expected, bypassing the normal fullscreen focus stealing prevention.
Improved filtering in the hotkey overlay
The hotkey overlay shows a hardcoded set of binds that I deemed "most important". Included are the
spawn
actions, because binds like "spawn terminal" and "spawn application launcher" are definitely up there in the importance list.However, not all commands you might want to
spawn
are that important, and with a lot of binds, the list could get polluted with many entries like XF86AudioRaiseVolume. Filtering based on program name doesn't sound very robust, so, instead, now the hotkey overlay will only showspawn
binds withMod
orSuper
in the hotkey.Additionally, out of multiple
spawn
binds to the same command, only the first one will show up in the hotkey overlay, which is consistent with all other hotkeys.Other improvements
consume-or-expel-window-{left,right}
actions that either expel the focused window into its own column, or consume a singular focused window into a column. These act as an alternative to the existing consume and expel commands, and are not bound to any keys by default. Thanks @exoticorn for implementing them!dwtp
flag to touchpad settings for disable-when-trackpointing.trackpoint
input settings. Thanks @okvik for implementing them!quit
while skipping the "Are you sure you want to exit niri?" dialog:Mod+Shift+E { quit skip-confirmation=true; }
.Super+Q
not working (you had to spell it out asMod+Super+Q
).swaylock
bind fromMod+Alt+L
toSuper+Alt+L
to fix a collision with theMod+L
bind when running niri as a window (not sure how I missed this in testing). You don't usually want to "lock the screen" of a nested niri anyway.NIRI_SOCKET
environment variable is now exported into the systemd and D-Bus session, which lets systemd units runniri msg
. For example, this allows you to runswayidle
as a systemd service.border
using focus ring's default values instead of its own.layout
config section resulting ingaps 0
instead of the defaultgaps 16
.move-column-to-monitor-*
on an empty source monitor.This discussion was created from the release v0.1.2.
Beta Was this translation helpful? Give feedback.
All reactions