use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu
This commit is contained in:
parent
088fd0b593
commit
a9ac024fe9
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue