Files
Laptop-Rice/polybar/scripts/powermenu.sh

22 lines
395 B
Bash
Executable File

#!/bin/bash
options="⏻ Éteindre\n Redémarrer\n Veille\n Déconnexion"
chosen=$(echo -e "$options" | rofi -dmenu -i -p "Power")
case "$chosen" in
*Éteindre)
systemctl poweroff
;;
*Redémarrer)
systemctl reboot
;;
*Veille)
systemctl suspend
;;
*Déconnexion)
awesome-client 'awesome.quit()'
;;
esac