mirror of https://gitlab.com/dabruh/dotfiles.git
Use alerting colors in demu.
This commit is contained in:
parent
b0605fa018
commit
f657438112
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue