This repository has been archived on 2023-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/scripts/menu-apagar
diego castillo salazar 9a82d82fd6 Update dotfiles
2023-04-21 12:33:06 -05:00

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