From 73b087ef662445cd4dc2f3addcd2e1bb3b7d27fb Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sat, 1 Jun 2019 18:18:40 +0200 Subject: Added option to hybernate. --- systemControl.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'systemControl.sh') diff --git a/systemControl.sh b/systemControl.sh index 4654e98..00621ee 100755 --- a/systemControl.sh +++ b/systemControl.sh @@ -1,13 +1,14 @@ #!/bin/bash # A dmenu prompt script to control system functions. -options="lock\nreboot\nshutdown\nexit i3" +options="lock\nreboot\nshutdown\nhibernate\nexit i3" chosen=$(echo -e "$options" | dmenu -p ">_") case "$chosen" in lock) i3lock.sh ;; - reboot) ~/scripts/prompt.sh Reboot? reboot ;; - shutdown) ~/scripts/prompt.sh Shutdown? "shutdown now" ;; + reboot) ~/scripts/prompt.sh Reboot? "systemctl reboot" ;; + shutdown) ~/scripts/prompt.sh Shutdown? "systemctl poweroff" ;; + hibernate) ~/scripts/prompt.sh Hibernate? "systemctl hibernate" ;; "exit i3") ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;; esac -- cgit v1.2.1