Adding my scripts.
This commit is contained in:
parent
6f51cebd29
commit
9e3b9cc441
7 changed files with 78 additions and 0 deletions
11
dmenulinkhandler
Executable file
11
dmenulinkhandler
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue