Cool project :) Would be nice to have a power management button.
On click the button would change to more buttons like power off, suspend, back, etc. (like clock button changes from time to date).
On click any of this buttons the corresponding action is be executed systemctl poweroff, systemctl suspend, etc.
As an additional idea, there could be an option to hide the idle_inhibitor module in the power management module. It is a very useful module, but I don't use it that often.
in the interim this is what i've been using:
"custom/power":{
"format":"",
"on-click":"swaynag -t warning -m 'Power Menu Options' -b 'Logout' 'swaymsg exit' -b 'Suspend' 'swaymsg exec systemctl suspend' -b 'shutdown' 'systemctl shutdown'"
},
updated to reflect some feedback from this post: https://old.reddit.com/r/swaywm/comments/d0uo7g/disable_swaynag_window_after_exiting_suspend/
I see an opportunity to have something more generic:
a button that when clicked gets replaced by multiple buttons (in a vertical menu?).
This way, user can customize power-off command (we don't hardcode the logic for systemd or else)
This gets even better if buttons and their actions can be generated by a script:
we then get easy-to-build wifi-managers, clipboard-managers, application-launchers-menus (and powerbuttons).
I know I'm not entitled to a gift-wish-list to santa though...
keyboard layout also* #66
... and I just saw #676 : is it what you're building, @Alexays?
Most helpful comment
in the interim this is what i've been using:
"custom/power":{ "format":"", "on-click":"swaynag -t warning -m 'Power Menu Options' -b 'Logout' 'swaymsg exit' -b 'Suspend' 'swaymsg exec systemctl suspend' -b 'shutdown' 'systemctl shutdown'" },updated to reflect some feedback from this post: https://old.reddit.com/r/swaywm/comments/d0uo7g/disable_swaynag_window_after_exiting_suspend/