diff options
Diffstat (limited to 'bin/db_gain.sh')
-rwxr-xr-x | bin/db_gain.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bin/db_gain.sh b/bin/db_gain.sh new file mode 100755 index 0000000..a3cfe11 --- /dev/null +++ b/bin/db_gain.sh @@ -0,0 +1,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 |