Add hibernation to the power-off menu
This commit is contained in:
parent
f8f9ba11ec
commit
c403d9edd5
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ listopts() {
|
|||
echo "⏼ Shut down"
|
||||
echo "⟲ Reboot"
|
||||
echo "🚪 Log out"
|
||||
echo "💤 Hibernate"
|
||||
}
|
||||
|
||||
option=$(listopts | fuzzel --dmenu)
|
||||
|
|
@ -15,4 +16,6 @@ case "${option}" in
|
|||
systemctl reboot;;
|
||||
"🚪 Log out")
|
||||
swaymsg exit;;
|
||||
"💤 Hibernate")
|
||||
systemctl hibernate;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue