#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 !)