use normal mode by default, but insert mode in spmenu_run
This commit is contained in:
parent
3f089ce416
commit
a0ab4aed96
|
@ -64,6 +64,6 @@ spmenu.imagesize: 86
|
|||
spmenu.imagegaps: 0
|
||||
spmenu.imageposition: 0
|
||||
spmenu.generatecache: 0
|
||||
spmenu.mode: 1
|
||||
spmenu.mode: 0
|
||||
spmenu.normtext: Normal
|
||||
spmenu.instext: Insert
|
||||
|
|
|
@ -22,7 +22,7 @@ static int imageposition = 0; /* Image position (0: Top, 1: Bottom
|
|||
static int generatecache = 0; /* Generate image cache by default */
|
||||
|
||||
/* Mode options */
|
||||
static int mode = 1; /* Mode to start speedwm in (0: Normal mode, 1: Insert mode) */
|
||||
static int mode = 0; /* Mode to start speedwm in (0: Normal mode, 1: Insert mode) */
|
||||
static char normtext[] = "Normal"; /* Text to display for normal mode */
|
||||
static char instext[] = "Insert"; /* Text to display for insert mode */
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ PATH() {
|
|||
|
||||
# Run spmenu and parse it
|
||||
PARSE() {
|
||||
DOUT="$(PATH | spmenu -H "${XDG_CACHE_HOME:-$HOME/.cache/}/spmenu_run.hist" "$@")"
|
||||
DOUT="$(PATH | spmenu -im -H "${XDG_CACHE_HOME:-$HOME/.cache/}/spmenu_run.hist" "$@")"
|
||||
|
||||
[ "$(printf '%c' "$DOUT")" = "#" ] && RUN_ARG="$TERMINAL" || RUN_ARG="$SHELL"
|
||||
[ "$RUN_ARG" != "$TERMINAL" ] && printf "%s" "$DOUT" | sed "s/#//g" | ${SHELL:-"/bin/sh"} &
|
||||
|
|
Loading…
Reference in a new issue