Updated my scripts.
This commit is contained in:
parent
7c981ce281
commit
272fb806ef
17 changed files with 128 additions and 82 deletions
13
dmenu-link-handler
Executable file
13
dmenu-link-handler
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Feed this script a link or it will get it from your clipboard and it will give dmenu
|
||||
# with some choice of programs to open the link with.
|
||||
|
||||
[ -z "$@" ] && link=$(xclip -o) || link="$@"
|
||||
|
||||
case "$(printf "mpv\\nbrowser\\ncopy url\\nw3m" | dmenu -p "Open link with what program?")" in
|
||||
mpv) "$VIDEO" "$link" ;;
|
||||
browser) "$BROWSER" "$link" > /dev/null;;
|
||||
"copy url") echo "$link" | xclip -selection clipboard ;;
|
||||
w3m) readable "$link" | w3m -T text/html ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue