commit 0edfa9c1b3c7a056aceeddc1180d98992f19cd15 parent 4a6057eb53126aa6fbcd36b33da155633ee54d79 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 6 Jun 2019 20:30:02 +0200 Fix keybinds and surf-open script Diffstat:
M | .config/sxhkd/sxhkdrc | | | 2 | +- |
M | .local/bin/surf-open.sh | | | 8 | +++----- |
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -1,5 +1,5 @@ # utils -super + shift + q +super + q kill -9 `xdotool getwindowfocus getwindowpid` super + space ducksearch diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh #prefix="" #prefix="torsocks" @@ -12,13 +12,11 @@ command -v surf-clean-cookies >/dev/null 2>&1 && (surf-clean-cookies || :) runtabbed() { echo "starting tabbed" - tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null & - disown + nohup tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null & sleep 0.1 } opensurf() { - $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & - disown + nohup $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & } [ ! -r "$xidfile" ] && runtabbed