stuff
This commit is contained in:
parent
164c9d2cd7
commit
d14a68c938
|
|
@ -41,7 +41,7 @@ cmd extract ${{
|
||||||
printf "%s\n\t" "$fx"
|
printf "%s\n\t" "$fx"
|
||||||
printf "extract?[y/N]"
|
printf "extract?[y/N]"
|
||||||
read ans
|
read ans
|
||||||
[ $ans = "y" ] && aunpack $fx
|
[ $ans = "y" ] && ext $fx
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd delete ${{
|
cmd delete ${{
|
||||||
|
|
@ -75,7 +75,7 @@ cmd copyto ${{
|
||||||
notify-send "📋 File(s) copied." "File(s) copies to $dest."
|
notify-send "📋 File(s) copied." "File(s) copies to $dest."
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd setbg "$1"
|
cmd genwall "$1"
|
||||||
cmd bulkrename $vidir
|
cmd bulkrename $vidir
|
||||||
|
|
||||||
# Bindings
|
# Bindings
|
||||||
|
|
@ -102,7 +102,7 @@ map I push A<c-a> # at the very beginning
|
||||||
map i push A<a-b><a-b><a-f> # before extension
|
map i push A<a-b><a-b><a-f> # before extension
|
||||||
map a push A<a-b> # after extension
|
map a push A<a-b> # after extension
|
||||||
map B bulkrename
|
map B bulkrename
|
||||||
map b $setbg $f
|
map b $genwall $f
|
||||||
|
|
||||||
map <c-e> down
|
map <c-e> down
|
||||||
map <c-y> up
|
map <c-y> up
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Feed script a url or file location.
|
|
||||||
# If an image, it will view in sxiv,
|
|
||||||
# if a video or gif, it will view in mpv
|
|
||||||
# if a music file or pdf, it will download,
|
|
||||||
# otherwise it opens link in browser.
|
|
||||||
|
|
||||||
# If no url given. Opens browser. For using script as $BROWSER.
|
|
||||||
[ -z "$1" ] && { "$BROWSER"; exit; }
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
|
||||||
setsid -f mpv -quiet "$1" >/dev/null 2>&1 ;;
|
|
||||||
*png|*jpg|*jpe|*jpeg|*gif)
|
|
||||||
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
|
||||||
*pdf|*cbz|*cbr)
|
|
||||||
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
|
||||||
*mp3|*flac|*opus|*mp3?source*)
|
|
||||||
qndl "$1" 'curl -LO' >/dev/null 2>&1 ;;
|
|
||||||
*)
|
|
||||||
[ -f "$1" ] && setsid -f "$TERMINAL" -e "$EDITOR" "$1" >/dev/null 2>&1 || setsid -f "$BROWSER" "$1" >/dev/null 2>&1
|
|
||||||
esac
|
|
||||||
Loading…
Reference in New Issue