Add hibernation to the power-off menu

This commit is contained in:
Ohad Livne 2025-07-02 17:34:42 +03:00
parent f8f9ba11ec
commit c403d9edd5
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -4,6 +4,7 @@ listopts() {
echo "⏼ Shut down" echo "⏼ Shut down"
echo "⟲ Reboot" echo "⟲ Reboot"
echo "🚪 Log out" echo "🚪 Log out"
echo "💤 Hibernate"
} }
option=$(listopts | fuzzel --dmenu) option=$(listopts | fuzzel --dmenu)
@ -15,4 +16,6 @@ case "${option}" in
systemctl reboot;; systemctl reboot;;
"🚪 Log out") "🚪 Log out")
swaymsg exit;; swaymsg exit;;
"💤 Hibernate")
systemctl hibernate;;
esac esac