22 lines
745 B
Bash
Executable file
22 lines
745 B
Bash
Executable file
#!/bin/sh
|
|
|
|
RET=$(printf "Apagar\nReiniciar\nBloquear\nSuspender\nHibernar\nCancelar" | dmenu)
|
|
|
|
case $RET in
|
|
"Apagar")
|
|
urxvtc -pe '-tabbedalt' -T 'warning' -geometry '50x1-1-710' -imfont 'hacknerdfont:pixelsize=8' -e su - root -c 'shutdown -h now'
|
|
;;
|
|
"Reiniciar")
|
|
urxvtc -pe '-tabbedalt' -T 'warning' -geometry '50x1-1-710' -imfont 'hacknerdfont:pixelsize=8' -e su - root -c 'shutdown -r now'
|
|
;;
|
|
"Bloquear")
|
|
slock
|
|
;;
|
|
"Suspender")
|
|
urxvtc -pe '-tabbedalt' -T 'warning' -geometry '50x1-1-710' -imfont 'hacknerdfontd:pixelsize=8' -e su - root -c 'zzz && slock'
|
|
;;
|
|
"Hibernar")
|
|
urxvtc -pe '-tabbedalt' -T 'warning' -geometry '50x1-1-710' -imfont 'hacknerdfont:pixelsize=8' -e su - root -c 'ZZZ && slock'
|
|
;;
|
|
*) ;;
|
|
esac
|