dmenu: add DMENU_OPTS

(like BEMENU_OPTS to set height, etc.)

Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Peter John Hartman
2022-10-05 11:06:02 -05:00
committed by Anjandev Momi
parent 7df6cb64eb
commit c05ec048a3

View File

@@ -63,11 +63,11 @@ if [ -n "$DISPLAY" ]; then
# TODO: kill dmenu?
if sxmo_keyboard.sh isopen; then
exec dmenu -l "$(sxmo_rotate.sh isrotated > /dev/null && \
exec dmenu $SXMO_DMENU_OPTS -l "$(sxmo_rotate.sh isrotated > /dev/null && \
printf %s "${SXMO_DMENU_WITH_KB_LANDSCAPE_LINES:-5}" || \
printf %s "${SXMO_DMENU_WITH_KB_PORTRAIT_LINES:-12}")" "$@"
else
exec dmenu -l "$(sxmo_rotate.sh isrotated > /dev/null && \
exec dmenu $SXMO_DMENU_OPTS -l "$(sxmo_rotate.sh isrotated > /dev/null && \
printf %s "${SXMO_DMENU_LANDSCAPE_LINES:-7}" || \
printf %s "${SXMO_DMENU_PORTRAIT_LINES:-15}")" "$@"
fi