From abb5ef182bc8049599dce38ee7f58346c9d6f9d4 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 14 Mar 2021 09:47:10 +0100 Subject: [PATCH] use original bookmark path --- config.def.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index 575fb99..0230bda 100644 --- a/config.def.h +++ b/config.def.h @@ -77,7 +77,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | #define SETPROP(r, s, p) { \ .v = (const char *[]){ "/bin/sh", "-c", \ "prop=\"$(printf '%b' \"$(xprop -id $1 $2 " \ - "| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\" && cat ~/suckless/surf/bookmarks)\" " \ + "| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\" && cat ~/.surf/bookmarks)\" " \ "| dmenu -l 10 -p \"$4\" -w $1)\" && " \ "xprop -id $1 -f $3 8s -set $3 \"$prop\"", \ "surf-setprop", winid, r, s, p, NULL \ @@ -114,9 +114,9 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | #define BM_ADD(r) {\ .v = (const char *[]){ "/bin/sh", "-c", \ "(echo $(xprop -id $0 $1) | cut -d '\"' -f2 " \ - "| sed 's/.*https*:\\/\\/\\(www\\.\\)\\?//' && cat ~/suckless/surf/bookmarks) " \ - "| awk '!seen[$0]++' > ~/suckless/surf/bookmarks.tmp && " \ - "mv ~/suckless/surf/bookmarks.tmp ~/suckless/surf/bookmarks", \ + "| sed 's/.*https*:\\/\\/\\(www\\.\\)\\?//' && cat ~/.surf/bookmarks) " \ + "| awk '!seen[$0]++' > ~/.surf/bookmarks.tmp && " \ + "mv ~/.surf/bookmarks.tmp ~/.surf/bookmarks", \ winid, r, NULL \ } \ }