diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-09-15 21:46:41 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-09-15 21:46:41 -0400 |
| commit | 16a7c6daa6c99192e3c0fd7165bf368177029c93 (patch) | |
| tree | eb3ea21e2ba6f2b01a32e1eb5de733e614f661a0 /.scripts/linkhandler | |
| parent | fcda49524d89b8f32075c421fd074b7b3759e11f (diff) | |
| download | eibhear-16a7c6daa6c99192e3c0fd7165bf368177029c93.tar.gz eibhear-16a7c6daa6c99192e3c0fd7165bf368177029c93.tar.zst eibhear-16a7c6daa6c99192e3c0fd7165bf368177029c93.zip | |
TRUEBROWSER var not necessary in main i3 conf
Diffstat (limited to '.scripts/linkhandler')
| -rwxr-xr-x | .scripts/linkhandler | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.scripts/linkhandler b/.scripts/linkhandler index 50209ac..77db7b6 100755 --- a/.scripts/linkhandler +++ b/.scripts/linkhandler @@ -9,7 +9,8 @@ # Sci-Hub's domain occasionally changes due to shutdowns: scihub="http://sci-hub.tw/" -# setsid nohup +# If no url given. Opens browser. For using script as $BROWSER. +[ -z "$1" ] && "$TRUEBROWSER" ; exit case "$1" in *mkv|*webm|*mp4|*gif|*youtube.com*|*hooktube.com*) |
