dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 3794a08c86a4b0c996d9f7f5d1251f50b60b908c
parent f76b5199f8334cea5597264cc6ad4c3fab4b7fe2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 10 Nov 2020 18:52:28 +0100

surf-open.sh: allow extra surf options via the SURFFLAGS env var

Diffstat:
M.local/bin/surf-open.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -26,7 +26,7 @@ opensurf() { if [ "$(screen_resolution)" -gt 3000 ]; then zoomlevel="2.5" fi - nohup $prefix surf -z "$zoomlevel" -e "$xid" -u 'Mozilla/5.0 (X11; OpenBSD amd64; rv:76.0) Gecko/20100101 Firefox/76.0' "$uri" >/dev/null 2>&1 & + nohup $prefix surf $SURFFLAGS -z "$zoomlevel" -e "$xid" -u 'Mozilla/5.0 (X11; OpenBSD amd64; rv:76.0) Gecko/20100101 Firefox/76.0' "$uri" >/dev/null 2>&1 & } [ ! -r "$xidfile" ] && runtabbed @@ -40,5 +40,5 @@ xid=$(cat "$xidfile") if ! xprop -id "$xid" >/dev/null 2>&1; then runtabbed fi -printf '%s: %s\n' "$xidfile" "$xid" +#printf '%s: %s\n' "$xidfile" "$xid" opensurf