-Remove absolute directory ~/lib to make it portable.
-
-
Add apeinfo, flacinfo, ogginfo like id3info.py.
#! /bin/sh
-PATH=$HOME/lib/audio:$PATH
+. "`dirname \"$0\"`"/../set-path
umask 022
[ "$1" ] && cd "$1" || exit 1 # or just do it in current directory
exit 2
fi
-PATH=$HOME/lib/audio/mp3:$PATH
+. "`dirname \"$0\"`"/../set-path
umask 022
recode-tags.sh . $direction || exit 1
exit 1
fi
-PATH=$HOME/lib/audio/mp3:$PATH
+. "`dirname \"$0\"`"/../set-path
umask 022
if [ "$2" ]; then
cd "$1" || exit 1
-PATH=$HOME/lib/audio/mp3:$PATH
+. "`dirname \"$0\"`"/../set-path
umask 022
if [ "$direction" = "koi2win" ]; then
exit 1
fi
-PATH=$HOME/lib/audio/ogg:$PATH
+. "`dirname \"$0\"`"/../set-path
umask 022
playlist="$1"
#! /bin/sh
-"$HOME"/lib/audio/pa-kill
+"`dirname \"$0\"`"/pa-kill
sleep 1
pulseaudio -L "module-bluetooth-device address="$1" sink_name=btheadset profile=a2dp" -D &&
#! /bin/sh
-exec "$HOME"/lib/audio/pa-bt 00:23:78:11:D6:4B
+exec "`dirname \"$0\"`"/pa-bt 00:23:78:11:D6:4B
#! /bin/sh
-exec "$HOME"/lib/audio/pa-bt 00:1C:EF:7C:81:D6
+exec "`dirname \"$0\"`"/pa-bt 00:1C:EF:7C:81:D6
default_sink=`cat "$HOME"/.pulse/default`
-"$HOME"/lib/audio/pa-kill
+"`dirname \"$0\"`"/pa-kill
sleep 1
pulseaudio -D &&
echo "\
RETURN=$?
if [[ $RETURN -eq 0 ]]
then
- "$HOME"/lib/audio/pa-volume unmute
+ "`dirname \"$0\"`"/pa-volume unmute
echo "0" > ~/.pulse/mute
exit
fi
if [[ $RETURN -eq 1 ]]
then
- "$HOME"/lib/audio/pa-volume mute
+ "`dirname \"$0\"`"/pa-volume mute
echo "1" > ~/.pulse/mute
exit
fi
#! /bin/sh
-PATH=$HOME/lib/audio:$PATH
+. "`dirname \"$0\"`"/../set-path
umask 022
if [ "$1" ]; then
mkdir cdrip && cd cdrip || exit 1
cdparanoia -d "$device" -B &&
-exec $HOME/lib/audio/mjack "$device" "$@"
+exec "`dirname \"$0\"`"/mjack "$device" "$@"
#! /bin/sh
if pulseaudio --check; then
- exec "$HOME"/lib/audio/pa-toggle-mute
+ exec "`dirname \"$0\"`"/pa-toggle-mute
else
- exec "$HOME"/lib/audio/amixer-toggle-mute
+ exec "`dirname \"$0\"`"/amixer-toggle-mute
fi
#! /bin/sh
+. "`dirname \"$0\"`"/../set-path
+
if pulseaudio --check; then
if [ "$1" = increase ]; then
vol=increase
vol=decrease
elif [ "$1" = INCREASE ]; then
vol=increase
- "$HOME"/lib/audio/pa-volume "$vol"
+ pa-volume "$vol"
elif [ "$1" = DECREASE ]; then
vol=decrease
- "$HOME"/lib/audio/pa-volume "$vol"
+ pa-volume "$vol"
else
echo "Usage: $0 [increase|decrease|INCREASE|DECREASE]" >&2
exit 1
fi
- exec "$HOME"/lib/audio/pa-volume "$vol"
+ exec pa-volume "$vol"
else
- exec "$HOME"/lib/audio/amixer-volume "$@"
+ exec amixer-volume "$@"
fi
-if echo "$PATH" | grep -vq "phd/lib/cdr-dvdrw-tools"; then
- PATH="$HOME/lib/cdr-dvdrw-tools:$PATH"
-fi
+. "`dirname \"$0\"`"/../set-path
cd_image_iso="$HOME/tmp/cd-image.iso"
source_dir="$HOME/tmp/cdrw"
fi
if [ $setattrs = YES ]; then
- "$HOME"/lib/audio/setattrs.sh "$source_dir"
+ setattrs.sh "$source_dir"
fi
if [ -z "$label" ]; then
--- /dev/null
+CWD="`pwd`"
+if echo "$PATH" | grep -vq "\(^\|:\)$CWD\(:\|$\)"; then
+ PATH="$CWD:$PATH"
+fi
+++ /dev/null
-if echo "$PATH" | grep -vq "video"; then
- PATH=$HOME/lib/video:$PATH
-
-else
-
- echo "video config has already been installed"
-fi