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

This commit is contained in:
Maarten van Gompel 2021-08-24 23:11:58 +02:00
parent 088fd0b593
commit a9ac024fe9
3 changed files with 3 additions and 3 deletions

View file

@ -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