blob: 82979d56e21706c3149f46eb01f1d9efa88371c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#!/bin/sh
set -e
[ -n "$DEBUG" ] && set -x
arg0=bemenu
prompt=${MENU_PROMPT:-">"}
main_color="#4E4371"
idx=0
while test $# -gt $idx; do
case "$1" in
-run)
arg0=bemenu-run; prompt=bin
prompt="run"
shift
;;
-drun)
# arg0=$HOME/devel/upstream/github.com/Cloudef/bemenu/bemenu-drun; prompt=bin
arg0=bemenu-drun; prompt=bin
prompt="drun"
main_color="#DB4D60"
shift
;;
-p)
shift
prompt="$1"
shift
;;
esac
idx=$((idx+1))
done
# HACK: https://github.com/Cloudef/bemenu/issues/5
# fb='#221E1D'
# ff='#fffefe'
# [ -n "${MENU_PASSWORD}" ] && ff=$fb
# TODO submit https://github.com/robertgzr/bemenu/tree/passwd
passwd_arg=
[ -n "${MENU_PASSWORD}" ] && passwd_arg=--password
# make sure there we are the only running menu
pgrep "${arg0}" && pkill "${arg0}"
# --monitor=1 \
exec "${arg0}" \
--no-overlap \
--ignorecase \
--list=10 \
--prompt="${prompt}" \
--fn 'Iosevka SS14 Extended 11' \
--nb '#221E1D' --nf '#fffefe' \
--tb "$main_color" --tf '#fffefe' \
--fb '#221E1D' --ff '#fffefe' \
--sb '#FAD689' \
--sf '#221E1D' \
--hb "$main_color" \
--hf '#FCFAF2' \
--scb '#221E1D' --scf '#fffefe' \
${passwd_arg} \
"$@"
|