Adding my scripts.

This commit is contained in:
CronyAkatsuki 2021-03-13 18:09:41 +01:00
parent 6f51cebd29
commit 9e3b9cc441
7 changed files with 78 additions and 0 deletions

11
dmenulinkhandler Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
# Feed this script a link and it will give dmenu
# some choice programs to use to open it.
case "$(printf "mpv\\nbrowser\\ncopy url\\nw3m" | dmenu -p "Open link with what program?")" in
mpv) mpv -quiet "$1" ;;
browser) "$BROWSER" "$1" > /dev/null;;
"copy url") echo "$1" | xclip -selection clipboard ;;
w3m) w3m "$1";;
esac