dot

packages and services management
Log | Files | Refs | README

commit 03f9ed2126fedc1308bd0927019bf40597ca45ca
parent aed08323f3fa2a5bf72844d1da5ff83cadef1614
Author: josuah <mail@josuah.net>
Date:   Sun, 11 Dec 2016 11:07:09 +0100

Updated retawq receipe.

Diffstat:
M.config/build/retawq | 7+++++++
M.local/bin/adagio | 5+++--
M.local/bin/piano | 18+++++++-----------
M.mailrc | 1+
M.profile | 2+-
5 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/.config/build/retawq b/.config/build/retawq @@ -1,3 +1,10 @@ # Small text-based web browser tar=http://prdownloads.sourceforge.net/retawq/retawq-0.2.6c.tar.gz + +build() +{ + ./configure + make + cp retawq $PREFIX/bin/retawq +} diff --git a/.local/bin/adagio b/.local/bin/adagio @@ -235,8 +235,9 @@ main() for note in $n do read duration - printf '%s %s\n' "$note" "$((duration * tempo))" - busybox beep -f $note -l $(($duration * $tempo)) + kill -9 "$pid" + speaker-test -t sine -f $note & pid="$!" + sleep "$(busybox dc "$duration" 10 / f)" done } diff --git a/.local/bin/piano b/.local/bin/piano @@ -4,7 +4,7 @@ # | | ,--| | | | | # ' ' `--` ' ' `--' 2016-10-08 #------------------------------------------------------------------------------- -# Console "beep" piano +# Console speaker-test piano BEGIN { @@ -103,17 +103,16 @@ BEGIN { |______|____|____|____|____|____|____|____|____|____|____|____|____|____|\n\ |Shift |C |D |E |F |G |A |B |C |D |E |Shift |\n\ |_______|____|____|____|____|____|____|____|____|____|____|_____________|\n\ - |Ctrl |Super |Alt |Space (increase duration) |Alt Gr|Opt |Ctrl |\n\ + |Ctrl |Super |Alt |Space |Alt Gr|Opt |Ctrl |\n\ |______|______|______|_______________________________|______|_____|_____|\n" - row1 = C2 Cd2 D2 Dd2 E2 F2 Fd2 G2 Gd2 A2 Ad2 B2 C3 Cd3 D3 Dd3 E3; - row2 = C3 Cd3 D3 Dd3 E3 F3 Fd3 G3 Gd3 A3 Ad3 B3 C4 Cd4 D4 Dd4 E4 F4 Fd4 G4; - ROW1 = row1; - ROW2 = C4 Cd4 D4 Dd4 E4 F4 Fd4 G4 Gd4 A4 Ad4 B4 C5 Cd5 D5 Dd5 E5 F5 Fd5 G5; + + row1 = C3 Cd3 D3 Dd3 E3 F3 Fd3 G3 Gd3 A3 Ad3 B3 C4 Cd4 D4 Dd4 E4; + row2 = C4 Cd4 D4 Dd4 E4 F4 Fd4 G4 Gd4 A4 Ad4 B4 C5 Cd5 D5 Dd5 E5 F5 Fd5 G5; # algorythm - split(row1 row2 ROW1 ROW2, frequencies, " "); + split(row1 row2, frequencies, " "); while (1) { cmd = "dd bs=1 count=1 if=/dev/tty 2>/dev/null" @@ -124,11 +123,8 @@ BEGIN { if (key == "") { exit; - } else if (key == " ") { - duration = duration * 2; } else if (note = frequencies[index(layout, key)]) { - system("beep -l " duration * 70 " -f " note " &"); - duration = 1; + system("speaker-test -t sine -f " note "& pid=$! && sleep 0.5 && kill -9 $pid &"); } } } diff --git a/.mailrc b/.mailrc @@ -184,4 +184,5 @@ define filter { move (from "ouigo") ~/Mail/transports move (from "ouibus") ~/Mail/transports move (from "keolis.com") ~/Mail/transports + move (from "BlaBlaCar") ~/Mail/transports } diff --git a/.profile b/.profile @@ -211,7 +211,7 @@ main() { if [ "$TERM" = 'linux' ] then - io-tty-theme coal + io-tty-theme solarized-light setfont ~/.local/share/consolefonts/tamzen-16.psf fi }