summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2023-11-20 17:34:51 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2023-11-20 17:34:51 -0600
commit04835ea0d9665bc005a8ce6b2ab8406ba866da04 (patch)
treecfc47ec1e72e925e981754032cb9d4672a7b4f84
parent7e702328744b294bd35d4377c09c15270059ebea (diff)
downloadscripts-04835ea0d9665bc005a8ce6b2ab8406ba866da04.tar.xz
scripts-04835ea0d9665bc005a8ce6b2ab8406ba866da04.zip
change shutdown prompt to use printf to avoid newline issue w/ echo
-rwxr-xr-xkeyboard/shutdownprompt2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboard/shutdownprompt b/keyboard/shutdownprompt
index db65489..ce187a8 100755
--- a/keyboard/shutdownprompt
+++ b/keyboard/shutdownprompt
@@ -1,6 +1,6 @@
#!/bin/sh
dmenucolors='-nb #AA0000 -nf #FFF -sb #FF0000 -sf #FFF'
-[ -n "$1" ] && option="$1" || option=$(echo "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " $dmenucolors || exit)
+[ -n "$1" ] && option="$1" || option=$(printf "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " $dmenucolors || exit)
warn_process_names="ffmpeg obs dvgrab dnf xbps-install xbps-remove emerge apt pacman"