summaryrefslogtreecommitdiffstats
path: root/bin/db_gain.sh
blob: a3cfe112d79a0eed99d2c488509ae96313a7e54d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if ls *.mp3 &>/dev/null; 
then echo "replaygaining mp3s" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800; /home/carnager/bin/rgain.sh && echo "mp3s replaygained"| dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800
#
elif ls *.flac &>/dev/null; 
then echo "replaygaining flacs" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800 && metaflac --add-replay-gain *.flac && echo "flacs replaygained" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800
#
elif ls *.ogg &>/dev/null; 
then echo "replaygaining oggs" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800 && vorbisgain -a *.ogg && echo "oggs replaygained" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800
#
else echo "No supported Filetype" | dzen2 -fn 'Envy Code R:pixelsize=13' -p 4 -y 1070 -w 250 -ta c -sa c -x 800
fi
#
#
#if ls *.mp3 &>/dev/null;
#then notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "Replaygaining mp3s"; /home/carnager/bin/rgain.sh && notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "Mp3s replaygained"

#elif ls *.flac &>/dev/null;
#then notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "Replaygaining flacs" && metaflac --add-replay-gain *.flac && notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "Flacs replaygained"

#elif ls *.ogg &>/dev/null;
#then notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "Replaygaining oggs" && vorbisgain -a *.ogg && notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "Oggs replaygained"

#else notify-send --hint=int:transient:1 -t 2000 "Deadbeef" "No supported Filetype"
#fi