summaryrefslogtreecommitdiffstats
path: root/.scripts/dmenuhandler
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-11-05 17:51:24 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-11-05 17:51:24 -0500
commit2f4c2a68a1cbebb0e06a5b3296e4bbb575c5fcb2 (patch)
tree4adda53569104861794d990ef99c85edc1ae2d8c /.scripts/dmenuhandler
parentcd667e6aa111c86b40b9e3104605953e9b341332 (diff)
downloadeibhear-2f4c2a68a1cbebb0e06a5b3296e4bbb575c5fcb2.tar.gz
eibhear-2f4c2a68a1cbebb0e06a5b3296e4bbb575c5fcb2.tar.zst
eibhear-2f4c2a68a1cbebb0e06a5b3296e4bbb575c5fcb2.zip
scripts sorted
Diffstat (limited to '.scripts/dmenuhandler')
-rwxr-xr-x.scripts/dmenuhandler14
1 files changed, 0 insertions, 14 deletions
diff --git a/.scripts/dmenuhandler b/.scripts/dmenuhandler
deleted file mode 100755
index 2a3bc0b..0000000
--- a/.scripts/dmenuhandler
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-# Feed this script a link and it will give dmenu
-# some choice programs to use to open it.
-
-x=$(printf "mpv\\nmpv (loop)\\nwget\\nfeh\\nbrowser\\nw3m\\nmpv (float)" | dmenu -i -p "Open link with what program?")
-case "$x" in
- mpv) setsid mpv -quiet "$1" >/dev/null 2>&1 & ;;
- "mpv (loop)") setsid mpv -quiet --loop "$1" >/dev/null 2>&1 & ;;
- wget) wget "$1" >/dev/null 2>&1 ;;
- browser) setsid "$TRUEBROWSER" "$1" & ;;
- feh) setsid feh "$1" >/dev/null 2>&1 & ;;
- w3m) w3m "$1" >/dev/null 2>&1 ;;
- "mpv (float)") setsid mpv --geometry=+0-0 --autofit=30% --title="mpvfloat" "$1" >/dev/null 2>&1 & ;;
-esac