about summary refs log tree commit diff stats
path: root/bin/lh
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2021-09-16 17:37:41 -0700
committerensa <psii@riseup.net>2021-09-16 17:37:41 -0700
commitebae3707b36e9a83014ef08271d75bd9826bb999 (patch)
tree9a9a0b3d9a7c6a4475a5394f2bd25848ebadb552 /bin/lh
parent3f4e930385675a4613db5f12b19557b126c29559 (diff)
downloadcfg-ebae3707b36e9a83014ef08271d75bd9826bb999.tar.gz
organization and replacements, fixes
bin/
	bother, mbsync-cron, rsschk: notify-send switched to notif
	catgirl-open.sh: simplified
	comm-sel: removed cordless
	kbsetup: sets up keyboard stuff
	lh: cleanup
		added mov and wav support
		audio files now create a terminal mpv
	notif: sends notification to xnotify
config/
	X11/
		xprofile: replaced keyboard lines with kbsetup
			replaced dunst with xnotify/tiramisu
			added a line for cleaning up catgirl-open.sh
		xresources: xnotify resources
	betteresc: xmodmap file for easy-to-access hyper key
	color/colors.sh: cleaned up
	dunst/dunstrc: removed
	lf/lfrc: fixed prompt
		replaced notify-send with notif
	shrc: moved MEDNAFEN_HOME to $HOME_EXT
	vis/visrc.lua: add ctags, fix hyper|esc issue
Diffstat (limited to 'bin/lh')
-rwxr-xr-xbin/lh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/lh b/bin/lh
index 331b358..71bc747 100755
--- a/bin/lh
+++ b/bin/lh
@@ -39,7 +39,7 @@ findredir() {
 			# return caught line
 			echo "$line"
 			# reset catch variable
-			unset -- catch
+			unset catch
 		fi
 		# set catch if the current line is location
 		if echo "$line"|grep -Fq 'ocation:'
@@ -61,7 +61,7 @@ URL=$(echo "$1"|findredir|tail -1|tr -d '[:cntrl:]')
 case "$URL" in
 	gemini://*|gopher://*)
 		$TERMINAL -e bombadillo "$URL" ;;
-	*.mkv*|*.webm*|*.mp4*)
+	*.mov*|*.mkv*|*.webm*|*.mp4*)
 		mpv --no-terminal "$URL" & ;;
 	*invidio.us/watch*|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*twitch.tv/videos/*|*twitch.tv/*/v/*)
 		mpv --no-terminal --ytdl "$URL" & ;;
@@ -73,8 +73,8 @@ case "$URL" in
 	*.png*|*.jpg*|*.jpe*|*.jpeg*|*.gif*)
 		IMGPATH="/tmp/$(lstrip "$URL" "*/")"
 		curl -sL "$URL" >"$IMGPATH"&&sxiv -pqa "$IMGPATH" & ;;
-	*.mp3*|*.m4a*|*.flac*|*.aiff*|*.opus*|*.ogg*|*.mp3?source*)
-		mpv --no-terminal "$URL"& ;;
+	*.mp3*|*.m4a*|*.flac*|*.aiff*|*.opus*|*.ogg*|*.mp3?source*|*.wav*)
+		$TERMINAL -e mpv "$URL"& ;;
 	*.epub*|*.pdf*|*.djvu*)
 		BOOKPATH="/tmp/$(lstrip "$URL" "*/")"
 		if [ -n "$READER" ]; then