configuration de base avec awesomeWM minimal et modularise, polybar et rofi
This commit is contained in:
21
polybar/scripts/powermenu.sh
Executable file
21
polybar/scripts/powermenu.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user