diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-25 20:05:26 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-25 20:05:26 +0200 |
commit | 231e683fe8ebb5e1de3cfdc343c8d6ac896cb93d (patch) | |
tree | 6e74ae4d96858b0fba560279a1102fcc8bd61e9b | |
parent | a575b510fa46505aeef8828baa8ccbaec6d62e84 (diff) |
added folder2cd script and set default keyboard profile to us-intl
-rw-r--r-- | .config/fcitx5/profile | 2 | ||||
-rwxr-xr-x | .local/share/bin/folder2cd | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/.config/fcitx5/profile b/.config/fcitx5/profile index a3e35fe..055cb90 100644 --- a/.config/fcitx5/profile +++ b/.config/fcitx5/profile @@ -4,7 +4,7 @@ Name=Default # Layout Default Layout=us # Default Input Method -DefaultIM=mozc +DefaultIM=keyboard-us-intl [Groups/0/Items/0] # Name diff --git a/.local/share/bin/folder2cd b/.local/share/bin/folder2cd new file mode 100755 index 0000000..558c6ab --- /dev/null +++ b/.local/share/bin/folder2cd @@ -0,0 +1,23 @@ +#!/bin/sh + +FILEEXT="flac" +set -e + +convert() { + wav="${1%.flac}-cd.wav" + echo "ffmpeg -loglevel warning -y -i \"$1\" -sample_fmt s16 -ar 44100 \"$wav\"" + ffmpeg -loglevel warning -y -i "$1" -sample_fmt s16 -ar 44100 "$wav" +} + +export -f convert +parallel -j4 convert ::: *.$FILEEXT + +FILES=`find . -name '*-cd.wav' -printf '%f\n' | sort -n` +echo "$FILES" | xargs -d"\n" -t wodim -sao -audio -pad speed=20 + +echo "wodim -eject" +wodim -eject + +echo "rm -f *-cd.wav" +rm -f *-cd.wav + |