shutdown usw.

This commit is contained in:
Michael Grote 2022-07-21 15:23:37 +02:00
parent 1212fc44fb
commit e673b6a1b2
2 changed files with 5 additions and 4 deletions

View File

@ -246,3 +246,4 @@ alias suspend="~/dotfiles/scripts/pwr.sh -sd"
alias hibernate="~/dotfiles/scripts/pwr.sh -hb"
alias restart="~/dotfiles/scripts/pwr.sh -r"
alias shutdown="~/dotfiles/scripts/pwr.sh -s"
alias reboot="~/dotfiles/scripts/pwr.sh -r"

View File

@ -46,23 +46,23 @@ function display_off {
if [[ -n "$1" ]]; then
case "$1" in
--reboot | -r)
sleep 3
dunstify -u critical "reboot"
sleep 3
reboot
;;
--shutdown | -s)
sleep 3
dunstify -u critical "shutdown"
sleep 3
shutdown
;;
--suspend | -sd)
sleep 3
dunstify -u critical "suspend"
sleep 3
suspend
;;
--hibernate | -hb)
sleep 3
dunstify -u critical "hibernate"
sleep 3
hibernate
;;
--help | -h)