From f832d43206035e4101472a1d07d261952dfdd85d Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sun, 31 Jul 2022 11:54:40 +0200 Subject: Swapped echo -e for printf in various scripts. --- systemControl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'systemControl.sh') diff --git a/systemControl.sh b/systemControl.sh index a751588..0426363 100755 --- a/systemControl.sh +++ b/systemControl.sh @@ -1,9 +1,9 @@ #!/bin/bash # A dmenu prompt script to control system functions. -options="lock\nreboot\nshutdown\nsuspend\nhibernate\nexit i3\nexit bspwm" +options="lock\nreboot\nshutdown\nsuspend\nhibernate\nexit bspwm\nexit i3" -chosen=$(echo -e "$options" | dmenu -p ">_") +chosen=$(printf "$options" | dmenu -c -bw 3 -l "$(printf "${options}\n" | wc -l)" -p ">_") case "$chosen" in "lock") i3lock.sh ;; @@ -11,6 +11,6 @@ case "$chosen" in "shutdown") ~/scripts/prompt.sh Shutdown? "systemctl poweroff" ;; "suspend") systemctl suspend ;; "hibernate") ~/scripts/prompt.sh Hibernate? "systemctl hibernate" ;; - "exit i3") ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;; "exit bspwm") ~/scripts/prompt.sh "Exit bspwm? (ends X session)" "bspc quit" ;; + "exit i3") ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;; esac -- cgit v1.2.1