WIdgets in Niri #324
-
Just like AwesomeWM, I wanted to make basic widgets for stuff like volume, brightness etc, and I have noticed that niri has some widgets like this in the form of the hotkey menu and the quit confirmation box. I am not sure if that's niri or a different program. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, these two are indeed in niri, but they are essentially 100% "hardcoded". In order to keep things simple, I didn't want to add a whole GUI toolkit to niri, so these dialogs are all manually laid out and drawn with Cairo, with quite a bit of boilerplate. You can find the code here: https://github.com/YaLTeR/niri/tree/main/src/ui |
Beta Was this translation helpful? Give feedback.
Hey, these two are indeed in niri, but they are essentially 100% "hardcoded". In order to keep things simple, I didn't want to add a whole GUI toolkit to niri, so these dialogs are all manually laid out and drawn with Cairo, with quite a bit of boilerplate. You can find the code here: https://github.com/YaLTeR/niri/tree/main/src/ui