From f657438112239049f08a5876dd6869ade7249c7e Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Wed, 8 Jun 2022 21:25:56 +0200 Subject: [PATCH] Use alerting colors in demu. --- .local/bin/i3hwlock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/i3hwlock b/.local/bin/i3hwlock index 69c22ca..0b4dc9e 100755 --- a/.local/bin/i3hwlock +++ b/.local/bin/i3hwlock @@ -16,6 +16,7 @@ TRIGGER_FILE="$DMENU_FILE.trigger" ABORT_FILE="$DMENU_FILE.abort" CONTINUE_FILE="$DMENU_FILE.continue" LOCKING_FILE="$DMENU_FILE.locking" +DMENU_ARGS="-i -nb #e74c3c -nf #303030 -sb #c0392b -sf #ecf0f1" function check_prerequisites() { [ -e "$ABORT_FILE" ] && rm "$ABORT_FILE" @@ -27,7 +28,8 @@ function check_prerequisites() { } 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 file="$DMENU_FILE.${selection,,}" echo "INFO: Touching $file"