~mil/sxmo-utils

a9ac024fe9fa5e035cf3c26fa9e7e632af9e3177 — Maarten van Gompel 2 months ago 088fd0b
use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu
M scripts/appscripts/sxmo_rss.sh => scripts/appscripts/sxmo_rss.sh +1 -1
@@ 101,7 101,7 @@ rssreadmenu() {
	DMENUIDX=1
	while true; do
		# Show list of items
		PICKED="$(printf %b "$CHOICES" | sxmo_dmenu.sh -ix $DMENUIDX -p "RSS ($TIMESPANABBR)" -fn Terminus-15)"
		PICKED="$(printf %b "$CHOICES" | sxmo_dmenu.sh --index $DMENUIDX -p "RSS ($TIMESPANABBR)" -fn Terminus-15)"
		DMENUIDX="$(echo "$CHOICES" | grep -m1 -F -n "$PICKED" | cut -d ':' -f1)"
		if [ "$PICKED" = "Close Menu" ]; then
			die Closed Menu

M scripts/core/sxmo_gpsutil.sh => scripts/core/sxmo_gpsutil.sh +1 -1
@@ 223,7 223,7 @@ menumaptype() {
		CHOICE="$(
			echo "$CHOICES" |
			awk -F^ '{ print $1 }' |
			dmenu -ix "$IDX" -p "Map Type" |
			dmenu --index "$IDX" -p "Map Type" |
			awk '{$1=$1};1'
		)"
		echo "$CHOICE" | grep "Close Menu" && exit 0

M scripts/modem/sxmo_modemcall.sh => scripts/modem/sxmo_modemcall.sh +1 -1
@@ 187,7 187,7 @@ incallmenuloop() {
		cut -d'^' -f1 |
		sed '/^[[:space:]]*$/d' |
		awk '{$1=$1};1' | #this cryptic statement trims leading/trailing whitespace from a string
		dmenu -idx $DMENUIDX "$([ "$WINDOWIFIED" = 0 ] && echo "" || echo "-wm")" -p "$NUMBER" |
		dmenu --index $DMENUIDX "$([ "$WINDOWIFIED" = 0 ] && echo "" || echo "-wm")" -p "$NUMBER" |
		(
			PICKED="$(cat)";
			echo "sxmo_modemcall: Picked is $PICKED">&2