use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu

master
Maarten van Gompel 3 years ago
parent 088fd0b593
commit a9ac024fe9
  1. 2
      scripts/appscripts/sxmo_rss.sh
  2. 2
      scripts/core/sxmo_gpsutil.sh
  3. 2
      scripts/modem/sxmo_modemcall.sh

@ -101,7 +101,7 @@ rssreadmenu() {
DMENUIDX=1 DMENUIDX=1
while true; do while true; do
# Show list of items # 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)" DMENUIDX="$(echo "$CHOICES" | grep -m1 -F -n "$PICKED" | cut -d ':' -f1)"
if [ "$PICKED" = "Close Menu" ]; then if [ "$PICKED" = "Close Menu" ]; then
die Closed Menu die Closed Menu

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

@ -187,7 +187,7 @@ incallmenuloop() {
cut -d'^' -f1 | cut -d'^' -f1 |
sed '/^[[:space:]]*$/d' | sed '/^[[:space:]]*$/d' |
awk '{$1=$1};1' | #this cryptic statement trims leading/trailing whitespace from a string 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)"; PICKED="$(cat)";
echo "sxmo_modemcall: Picked is $PICKED">&2 echo "sxmo_modemcall: Picked is $PICKED">&2

Loading…
Cancel
Save