Howto: VLC and Smplayer (mode audio)

Share your own howto's etc. Not for support questions!
Post Reply
Message
Author
User avatar
bester69
Posts: 1895
Joined: 2015-04-02 13:15
Been thanked: 1 time

Howto: VLC and Smplayer (mode audio)

#1 Post by bester69 »

Two scripts.:

savlc.sh

Code: Select all

#!/bin/bash
#
vlc --no-video "$@" 2> /dev/null &
samplayer.sh

Code: Select all

#!/bin/bash
#
SMPATH="$HOME/.config/smplayer"
SAPATH="$HOME/.altconfiglocal/smplayer"
smsource="$SMPATH/smplayer.ini"
smtarget="$SAPATH/smplayer.ini"
mkdir -p "$SMPATH" "$SAPATH"

rsync -av --delete --link-dest="$SMPATH/" "$SMPATH/" "$SAPATH/"
rm "$smtarget"
sed 's!mplayer_additional_options="--hwdec-codecs=all"!mplayer_additional_options="--hwdec-codecs=all --no-video"!' $smsource > $smtarget

XDG_CONFIG_HOME=$HOME/.altconfiglocal smplayer "$@" 2> /dev/null &
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

Post Reply