shutdown usw.
This commit is contained in:
parent
1212fc44fb
commit
e673b6a1b2
2 changed files with 5 additions and 4 deletions
|
@ -246,3 +246,4 @@ alias suspend="~/dotfiles/scripts/pwr.sh -sd"
|
||||||
alias hibernate="~/dotfiles/scripts/pwr.sh -hb"
|
alias hibernate="~/dotfiles/scripts/pwr.sh -hb"
|
||||||
alias restart="~/dotfiles/scripts/pwr.sh -r"
|
alias restart="~/dotfiles/scripts/pwr.sh -r"
|
||||||
alias shutdown="~/dotfiles/scripts/pwr.sh -s"
|
alias shutdown="~/dotfiles/scripts/pwr.sh -s"
|
||||||
|
alias reboot="~/dotfiles/scripts/pwr.sh -r"
|
||||||
|
|
|
@ -46,23 +46,23 @@ function display_off {
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--reboot | -r)
|
--reboot | -r)
|
||||||
sleep 3
|
|
||||||
dunstify -u critical "reboot"
|
dunstify -u critical "reboot"
|
||||||
|
sleep 3
|
||||||
reboot
|
reboot
|
||||||
;;
|
;;
|
||||||
--shutdown | -s)
|
--shutdown | -s)
|
||||||
sleep 3
|
|
||||||
dunstify -u critical "shutdown"
|
dunstify -u critical "shutdown"
|
||||||
|
sleep 3
|
||||||
shutdown
|
shutdown
|
||||||
;;
|
;;
|
||||||
--suspend | -sd)
|
--suspend | -sd)
|
||||||
sleep 3
|
|
||||||
dunstify -u critical "suspend"
|
dunstify -u critical "suspend"
|
||||||
|
sleep 3
|
||||||
suspend
|
suspend
|
||||||
;;
|
;;
|
||||||
--hibernate | -hb)
|
--hibernate | -hb)
|
||||||
sleep 3
|
|
||||||
dunstify -u critical "hibernate"
|
dunstify -u critical "hibernate"
|
||||||
|
sleep 3
|
||||||
hibernate
|
hibernate
|
||||||
;;
|
;;
|
||||||
--help | -h)
|
--help | -h)
|
||||||
|
|
Loading…
Reference in a new issue