#Niri 25.08 comes with a new `spawn-sh` command. I’m using it to handle the monitor brightness on a log scale (way more useful than a linear one, especially by night):

XF86MonBrightnessUp {
spawn-sh "brightnessctl s $(($(brightnessctl g) * 2))";
}
XF86MonBrightnessDown {
spawn-sh "brightnessctl s $((($(brightnessctl g) + 1) / 2))";
}

(Look, ’Ma ! No temp files !)

https://github.com/YaLTeR/niri/releases/tag/v25.08

#tilingWM #UnixPorn #brightnessctl

Release v25.08 · YaLTeR/niri

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. A month ago, o...

GitHub
@fabi1cazenave xorg porn
@usul Wayland porn, actually.