diff options
-rwxr-xr-x | surf-menu | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -93,13 +93,14 @@ done # If XID is given then as first one add current uri if [ -n "$XID" ]; then - ADDCH="$(xprop -id "$XID" _SURF_URI | sed 's/.*= "\(.*\)"/\1/')" + ADDCH="$(xprop -id "$XID" _SURF_URI | sed -n 's/.*(STRING) = "\(.*\)"/\1/p')" + DMENU_ARGS="-w $XID -p Go:" fi # Note: Bookmarks starts with '* ' CHOOSE="$ADDCH $(sed -n 's/\* //p' "$BOOKMARDS")" -echo "$CHOOSE" | sed '/^\s*$/d' | dmenu -p 'surf' | while read L; do +echo "$CHOOSE" | sed '/^\s*$/d' | dmenu -p 'surf' $DMENU_ARGS | while read L; do run "$L" done |