summary refs log tree commit diff
path: root/home/.local/bin/open
diff options
context:
space:
mode:
Diffstat (limited to 'home/.local/bin/open')
-rwxr-xr-xhome/.local/bin/open5
1 files changed, 3 insertions, 2 deletions
diff --git a/home/.local/bin/open b/home/.local/bin/open
index 17cfb523..9439f07d 100755
--- a/home/.local/bin/open
+++ b/home/.local/bin/open
@@ -10,9 +10,10 @@ case "$1" in
 		curl -LSs "$1" | imv -
 		;;
 	(https://youtu.be/*|https://www.youtube.com/watch*|https://twitch.tv/*)
-		exec mpv "$1" >/dev/null 2>/dev/null
+		ulimit -c 0 # mpv segfaults on exit every time on OpenBSD...
+		exec mpv "$1" >/dev/null 2>&1
 		;;
 	(*)
-		exec xterm -e w3m "$1"
+		exec firefox -new-tab "$1" >/dev/null 2>&1
 		;;
 esac