dot

packages and services management
Log | Files | Refs | README

commit 3f757db56a10c1abde794158d049543729bcbdb8
parent a43eb893b617ee074806c5f9c553963687244da3
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 20 Feb 2018 23:33:49 +0100

ffmpeg -> libav for much more sanity :)

Diffstat:
Mbin/piano | 11++++++-----
Mbin/xdg-open | 4++--
Dpack/ffmpeg/tar | 1-
Rpack/ffmpeg/build -> pack/libav/build | 0
Apack/libav/tar | 1+
5 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/bin/piano b/bin/piano @@ -56,7 +56,7 @@ # |______|______|______|_______________________________|______|_____|_____| BEGIN { - SPEAKER_TEST = "speaker-test -t sine" + CMD = "sh -c './sine %d | tr a-z0-9 0 | aucat -i - & sleep 0.4; kill $!' &" qwerty = "zsxdcvgbhnjm,l.;/" "q2w3er5t6y7ui9o0p[=]"; QWERTY = "ZSXDCVGBHNJM<L>:/" "Q@W#ER%T^Y&UI(O)P{+}"; @@ -113,10 +113,11 @@ BEGIN { if (key == "\003") break - if (note = frequencies[index(layout, key)]) - system(SPEAKER_TEST " -f " note " 1>&2 > /dev/null &" \ - "(sleep 0.5 && kill -9 $!) &"); + if (note = frequencies[index(layout, key)]) { + printf(CMD"\r\n", 1 / note * 300000); + system(sprintf(CMD, 1 / note * 300000)); + } } system("stty -raw echo"); -}' +} diff --git a/bin/xdg-open b/bin/xdg-open @@ -197,12 +197,12 @@ esac exec mplayer -loop 0 "$1" ;; (*.webm|*.mp4|*.mkv|*.ogv|*.avi|*.opus|*.mp3|*.flac|*.ogg) - exec ffplay "$1" + exec avplay "$1" ;; (*/music/*) find "$1" -type f | sort | while IFS='' read -r song do - ffplay "$song" + avplay "$song" done exit ;; diff --git a/pack/ffmpeg/tar b/pack/ffmpeg/tar @@ -1 +0,0 @@ -https://github.com/FFmpeg/FFmpeg/archive/master.tar.gz diff --git a/pack/ffmpeg/build b/pack/libav/build diff --git a/pack/libav/tar b/pack/libav/tar @@ -0,0 +1 @@ +https://libav.org/releases/libav-12.3.tar.xz