diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2023-11-20 17:34:51 -0600 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2023-11-20 17:34:51 -0600 |
commit | 04835ea0d9665bc005a8ce6b2ab8406ba866da04 (patch) | |
tree | cfc47ec1e72e925e981754032cb9d4672a7b4f84 /keyboard/shutdownprompt | |
parent | 7e702328744b294bd35d4377c09c15270059ebea (diff) | |
download | scripts-04835ea0d9665bc005a8ce6b2ab8406ba866da04.tar.xz scripts-04835ea0d9665bc005a8ce6b2ab8406ba866da04.zip |
change shutdown prompt to use printf to avoid newline issue w/ echo
Diffstat (limited to 'keyboard/shutdownprompt')
-rwxr-xr-x | keyboard/shutdownprompt | 2 |
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" |