dotfiles/.local/bin/leave

21 lines
381 B
Bash
Executable file

#! /usr/bin/sh
listopts() {
echo "⏼ Shut down"
echo "⟲ Reboot"
echo "🚪 Log out"
echo "💤 Hibernate"
}
option=$(listopts | fuzzel --dmenu)
case "${option}" in
"⏼ Shut down")
systemctl poweroff;;
"⟲ Reboot")
systemctl reboot;;
"🚪 Log out")
swaymsg exit;;
"💤 Hibernate")
systemctl hibernate;;
esac