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"