This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-27 02:31:42 +00:00
|
|
|
#!/bin/sh
|
2020-03-29 19:16:35 +00:00
|
|
|
|
2020-08-28 16:11:06 +00:00
|
|
|
chosen="$(printf "Apagar\\nReiniciar\\nSuspender\\nBloquear\\nSalir" | dmenu -w 150 -i -p "⏻ ")"
|
2020-03-29 19:16:35 +00:00
|
|
|
case $chosen in
|
2020-06-18 01:38:39 +00:00
|
|
|
"Apagar") loginctl poweroff;;
|
|
|
|
"Reiniciar") loginctl reboot;;
|
|
|
|
"Suspender") loginctl suspend;;
|
2020-08-19 17:30:47 +00:00
|
|
|
"Bloquear") xset s activate;;
|
2020-06-18 01:38:39 +00:00
|
|
|
"Salir") loginctl terminate-user "$(id -u "$USER")";;
|
2020-05-27 02:31:42 +00:00
|
|
|
*) exit 0;;
|
2020-03-29 19:16:35 +00:00
|
|
|
esac
|