From 8a098d0edf56fcbcd680ce68329afb1f707f2243 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 5 Aug 2019 11:17:28 +0200 Subject: [PATCH] flacfix script, cpm completion update, newsboat urls, new install_clean patch --- clean/.local/bin/install_clean.sh | 90 +++++++++++++++--------------- newsboat/.config/newsboat/urls | 1 + shell/.bash_completion.d/cpm | 1 + shell/.local/bin/flacfix | 20 +++++++ vim/.vim/spell/en.utf-8.add | 1 + vim/.vim/spell/en.utf-8.add.spl | Bin 250 -> 0 bytes 6 files changed, 67 insertions(+), 46 deletions(-) create mode 100755 shell/.local/bin/flacfix delete mode 100644 vim/.vim/spell/en.utf-8.add.spl diff --git a/clean/.local/bin/install_clean.sh b/clean/.local/bin/install_clean.sh index 0bcd7f3..7b4617e 100755 --- a/clean/.local/bin/install_clean.sh +++ b/clean/.local/bin/install_clean.sh @@ -75,53 +75,51 @@ patch /opt/clean/lib/StdEnv/StdGeneric.icl <&2 + exit 1 +fi + +while [ "$#" -ge 1 ]; +do + samplerate="$(metaflac --show-sample-rate "$1")" + bitdepth="$(metaflac --show-bps "$1")" + if ! [ "$samplerate" = 44100 -o "$samplerate" = 4800 -a $bitdepth = 16 ] + then + tfile="$(mktemp --tmpdir --suffix=.flac)" + sox "$1" -r 44100 -b 16 "$tfile" + mv -v "$tfile" "$1" + fi + shift +done diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add index 87c9e57..867005b 100644 --- a/vim/.vim/spell/en.utf-8.add +++ b/vim/.vim/spell/en.utf-8.add @@ -13,3 +13,4 @@ backends iTasks mTask IOT +preinstalled diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl deleted file mode 100644 index 91310c54018a0b7d40a3220852a28cfd8b255f84..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 250 zcmX|+I}QRd3`9K^1r0TvgF_%uAW;^}+AN9Ip`hb3oD;?oqRRO5W}M@8XQfYR z{SlG({1Uo2PF8V7zHGGZbgnuR-O8YD7gH=bjzPJTvV