diff --git a/scripts/appscripts/sxmo_files.sh b/scripts/appscripts/sxmo_files.sh index 144b338..d4f426a 100755 --- a/scripts/appscripts/sxmo_files.sh +++ b/scripts/appscripts/sxmo_files.sh @@ -6,9 +6,9 @@ cd "$DIR" || exit 1 handlefiles() { if echo "$1" | grep -iE ".(webm|ogg|mp4|mov|avi)$"; then - st -e mpv "$@" + st -e mpv -ao=alsa "$@" elif echo "$1" | grep -iE ".(wav|opus|m4a|flac|mp3)$"; then - st -e mpv --vid=no -v "$@" + st -e mpv -ao=alsa --vid=no -v "$@" elif echo "$1" | grep -iE ".(jpg|png|gif)$"; then st -e sxiv "$@" else diff --git a/scripts/appscripts/sxmo_record.sh b/scripts/appscripts/sxmo_record.sh index df7ce76..956d016 100755 --- a/scripts/appscripts/sxmo_record.sh +++ b/scripts/appscripts/sxmo_record.sh @@ -41,7 +41,7 @@ recordconfirm() { dmenu -p "$DUR" -fn Terminus-18 -c -l 10 )" if echo "$PICK" | grep "Playback"; then - st -e mpv -v "$FILE" + st -e mpv -ao=alsa -v "$FILE" elif echo "$PICK" | grep "Delete Recording"; then rm "$FILE" echo "File deleted." | dmenu -fn Terminus-18 -c -l 10 diff --git a/scripts/appscripts/sxmo_youtube.sh b/scripts/appscripts/sxmo_youtube.sh index b1eb780..8d8b323 100755 --- a/scripts/appscripts/sxmo_youtube.sh +++ b/scripts/appscripts/sxmo_youtube.sh @@ -29,12 +29,12 @@ menu() { video() { menu - st -e mpv -v --ytdl-format='[height<420]' "$URL" + st -e mpv -ao=alsa -v --ytdl-format='[height<420]' "$URL" } audio() { menu - st -e mpv -v --no-video "$URL" + st -e mpv -ao=alsa -v --no-video "$URL" } $1 diff --git a/scripts/core/sxmo_urlhandler.sh b/scripts/core/sxmo_urlhandler.sh index f909cd6..d6ded8e 100755 --- a/scripts/core/sxmo_urlhandler.sh +++ b/scripts/core/sxmo_urlhandler.sh @@ -24,13 +24,13 @@ fi COMMAND=$( echo " w3m URL - mpv -v URL - mpv -v --ytdl-format='[height<420]' URL + mpv -ao=alsa -v URL + mpv -ao=alsa -v --ytdl-format='[height<420]' URL firefox -new-window URL netsurf URL surf URL echo URL | xsel -i - youtube-dl -o- URL | mpv -v - + youtube-dl -o- URL | mpv -ao=alsa -v - youtube-dl URL curl URL | vis - wget URL