Use alerting colors in demu.

This commit is contained in:
dabruh 2022-06-08 21:25:56 +02:00
parent b0605fa018
commit f657438112
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ TRIGGER_FILE="$DMENU_FILE.trigger"
ABORT_FILE="$DMENU_FILE.abort" ABORT_FILE="$DMENU_FILE.abort"
CONTINUE_FILE="$DMENU_FILE.continue" CONTINUE_FILE="$DMENU_FILE.continue"
LOCKING_FILE="$DMENU_FILE.locking" LOCKING_FILE="$DMENU_FILE.locking"
DMENU_ARGS="-i -nb #e74c3c -nf #303030 -sb #c0392b -sf #ecf0f1"
function check_prerequisites() { function check_prerequisites() {
[ -e "$ABORT_FILE" ] && rm "$ABORT_FILE" [ -e "$ABORT_FILE" ] && rm "$ABORT_FILE"
@ -27,7 +28,8 @@ function check_prerequisites() {
} }
function dmenu_selection() { function dmenu_selection() {
selection="$(xargs -n 1 <<<"Continue Abort" | dmenu -i -p "The screen is about to lock")" # shellcheck disable=SC2086
selection="$(xargs -n 1 <<<"Continue Abort" | dmenu $DMENU_ARGS -p "The screen is about to lock")"
[ -z "$selection" ] && return [ -z "$selection" ] && return
file="$DMENU_FILE.${selection,,}" file="$DMENU_FILE.${selection,,}"
echo "INFO: Touching $file" echo "INFO: Touching $file"