Closed Serpentian closed 6 months ago
Since we don't use a configuration file, the visibility of each button would depend on passing the appropriate command as an argument, e.g.:
nwg-drawer -sleep 'systemctl suspend' -reboot 'systemctl reboot' -poweroff 'systemctl poweroff'
right?
Since we don't use a configuration file, the visibility of each button would depend on passing the appropriate command as an argument
Sounds great, I'm ok with such solution
I will try to add this feature soon.
They would look something like this (w/ all the power menu commands):
❯ go run . -h
Usage of /tmp/go-build946922029/b001/exe/nwg-drawer:
(...)
-pbexit string
command for the Exit power bar icon
-pblock string
command for the Lock power bar icon
-pbpoweroff string
command for the Poweroff power bar icon
-pbreboot string
command for the Reboot power bar icon
-pbsize int
power bar icon size (default 64)
-pbsleep string
command for the sleep power bar icon
(...)
Improved icons:
Thank you a lot, this was super fast!
Thank you for a good idea.
It would be great, if we had a way to configure power options, similar way it's done in kde's plasma drawer: