aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-10 19:18:24 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-10 19:18:24 +0300
commit292f756d4463c8596d1f0b70bf2f455484c33670 (patch)
treed0aae6fb33bb683d241681261d43271ed943bfc0 /dotfiles/.local/bin
parentd76ec5f5eb0feb3bc483556e8872de2c5deba044 (diff)
downloadswayrice-292f756d4463c8596d1f0b70bf2f455484c33670.tar.gz
swayrice-292f756d4463c8596d1f0b70bf2f455484c33670.zip
Open ebooks from the web with zathura
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-xdotfiles/.local/bin/bookurl7
1 files changed, 7 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/bookurl b/dotfiles/.local/bin/bookurl
new file mode 100755
index 0000000..c97b039
--- /dev/null
+++ b/dotfiles/.local/bin/bookurl
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+[ -z "$1" ] && exit
+
+setsid curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && zathura "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 &
+
+