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 "⏼ 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue