Compare commits

...

7 Commits

Author SHA1 Message Date
Connor Olding 64d9b36cee regenerate readme 2022-04-12 04:15:21 -07:00
Connor Olding 11aca3f544 don't use tmux on spectre at all 2022-04-12 04:15:15 -07:00
Connor Olding 5264b1a037 refine laptop audio compressor 2022-04-12 04:13:11 -07:00
Connor Olding a5fb64d762 remove ancient db alias and known_hosts exclusion 2022-04-12 03:29:33 -07:00
Connor Olding 27e221803a regenerate readme 2022-04-12 12:28:48 +02:00
Connor Olding ba45b4f10f more laptop speaker fudgery
this still sucks but i'm working on it
2022-04-12 12:28:20 +02:00
Connor Olding fb6fc670b4 restore ytdl-format flags that i forgot 2022-04-12 12:27:58 +02:00
5 changed files with 78 additions and 72 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@ sh/WIP
sh/unmaintained
ssh/*
!ssh/known_hosts
!ssh/crawl
vim/.*

130
README.md
View File

@ -708,19 +708,19 @@ asses
invoke mpv with some extra flags suited for streamed sources.
### [mpv_watch (sh/streamcrap)](/sh/streamcrap#L85)
### [mpv_watch (sh/streamcrap)](/sh/streamcrap#L94)
play some media in mpv with a bunch of unnecessary filters.
### [mpv_stream (sh/streamcrap)](/sh/streamcrap#L113)
### [mpv_stream (sh/streamcrap)](/sh/streamcrap#L122)
watch a stream in mpv with a bunch of unnecessary filters.
### [twitch (sh/streamcrap)](/sh/streamcrap#L122)
### [twitch (sh/streamcrap)](/sh/streamcrap#L131)
watch a twitch stream in mpv with a bunch of unnecessary filters.
### [yt (sh/streamcrap)](/sh/streamcrap#L129)
### [yt (sh/streamcrap)](/sh/streamcrap#L138)
watch a youtube video in mpv with a bunch of unnecessary filters.
this can be given a full URL or just a video ID.
@ -730,7 +730,7 @@ there exist several variants for more specific use cases.
**NOTE:** there also exists a yt(1) program provided by
the *python3-yt* package that i don't use.
### [ytll (sh/streamcrap)](/sh/streamcrap#L151)
### [ytll (sh/streamcrap)](/sh/streamcrap#L159)
watch a stream from youtube in mpv, etcetera etcetera.
this is the low latency version that does not support seeking.
@ -843,55 +843,55 @@ $ xxp ~/rc/install | head -n2
## miscellaneous
### [dummy (zshrc)](/home/zshrc#L77)
### [dummy (zshrc)](/home/zshrc#L78)
return 0, ignoring arguments.
### [dirprev (zshrc)](/home/zshrc#L82)
### [dirprev (zshrc)](/home/zshrc#L83)
rotate and change to the previous directory in the directory stack
without consuming the prompt.
### [dirnext (zshrc)](/home/zshrc#L89)
### [dirnext (zshrc)](/home/zshrc#L90)
rotate and change to the next directory in the directory stack
without consuming the prompt.
### [dirup (zshrc)](/home/zshrc#L96)
### [dirup (zshrc)](/home/zshrc#L97)
change to the parent directory of the current working directory
without consuming the prompt.
### [dirview (zshrc)](/home/zshrc#L103)
### [dirview (zshrc)](/home/zshrc#L104)
use a fuzzy finder to select a recent directory in the directory stack
and change to it without consuming the prompt.
### [OMFG (zshrc)](/home/zshrc#L201)
### [OMFG (zshrc)](/home/zshrc#L202)
silence stdout.
### [STFU (zshrc)](/home/zshrc#L202)
### [STFU (zshrc)](/home/zshrc#L203)
silence stderr.
### [WHOA (zshrc)](/home/zshrc#L203)
### [WHOA (zshrc)](/home/zshrc#L204)
expand to several C/C++ flags to ease development.
### [WHEE (zshrc)](/home/zshrc#L204)
### [WHEE (zshrc)](/home/zshrc#L205)
WHOA but for C++ (specifically g++) only.
### [WELP (zshrc)](/home/zshrc#L205)
### [WELP (zshrc)](/home/zshrc#L206)
expand to C++ flags to enable a C++-as-C facade.
### [tw (zshrc)](/home/zshrc#L210)
### [tw (zshrc)](/home/zshrc#L211)
invoke `twitch` as a job with both stdout and stderr silenced.
### [reload (zshrc)](/home/zshrc#L254)
### [reload (zshrc)](/home/zshrc#L255)
reload zsh by wiping temp files, recompiling rc files,
and replacing the current process with a new zsh process.
@ -908,211 +908,211 @@ return 0, ignoring arguments.
append a directory to `$PATH` if it isn't already present.
### [fils (shrc)](/home/shrc#L85)
### [fils (shrc)](/home/shrc#L84)
(GNU du) display human-friendly filesizes for the files in a directory.
### [lsa (shrc)](/home/shrc#L86)
### [lsa (shrc)](/home/shrc#L85)
(GNU ls) list files with directories and dotfiles ordered first.
### [perlu (shrc)](/home/shrc#L87)
### [perlu (shrc)](/home/shrc#L86)
invoke perl expecting files with UTF-8 encoding.
### [rgn (shrc)](/home/shrc#L88)
### [rgn (shrc)](/home/shrc#L87)
invoke ripgrep without respecting `.gitignore` files.
### [cms (shrc)](/home/shrc#L89)
### [cms (shrc)](/home/shrc#L88)
invoke cryptominisat5 with less noise.
### [curls (shrc)](/home/shrc#L90)
### [curls (shrc)](/home/shrc#L89)
invoke curl with less noise.
### [get (shrc)](/home/shrc#L95)
### [get (shrc)](/home/shrc#L94)
retrieve the most recent files from the default branch of a git repository, and not much else.
### [gs (shrc)](/home/shrc#L96)
### [gs (shrc)](/home/shrc#L95)
invoke git's status subcommand.
**TODO:** consider renaming because gs(1) already exists.
### [gd (shrc)](/home/shrc#L98)
### [gd (shrc)](/home/shrc#L97)
invoke git's diff subcommand with fewer lines of context.
### [gds (shrc)](/home/shrc#L99)
### [gds (shrc)](/home/shrc#L98)
display difference stats from git.
### [gl (shrc)](/home/shrc#L100)
### [gl (shrc)](/home/shrc#L99)
invoke git's log subcommand with a single line per commit.
**TODO:** consider renaming because [gl(1)](https://github.com/gitless-vcs/gitless) already exists.
### [glo (shrc)](/home/shrc#L102)
### [glo (shrc)](/home/shrc#L101)
navigate git's commit tree succinctly.
### [g1 (shrc)](/home/shrc#L103)
### [g1 (shrc)](/home/shrc#L102)
display the most recent git commit.
### [gr (shrc)](/home/shrc#L105)
### [gr (shrc)](/home/shrc#L104)
display remote git repositories verbosely.
### [gb (shrc)](/home/shrc#L106)
### [gb (shrc)](/home/shrc#L105)
display the current git branch.
**NOTE:** there also exists a gb(1) program provided by
the *gb* package that i don't use.
### [gdp (shrc)](/home/shrc#L109)
### [gdp (shrc)](/home/shrc#L108)
invoke `gd` to diff a commit from its parent. the commit defaults to "HEAD".
### [revend (shrc)](/home/shrc#L120)
### [revend (shrc)](/home/shrc#L119)
reverse the 4-byte endianness of a single file. *this is an in-place operation!*
### [clone (shrc)](/home/shrc#L121)
### [clone (shrc)](/home/shrc#L120)
invoke rsync suitably for creating virtually indistinguishable copies of files.
### [aligntabs (shrc)](/home/shrc#L122)
### [aligntabs (shrc)](/home/shrc#L121)
align tab-delimited fields in stdin.
### [crawla (shrc)](/home/shrc#L123)
### [crawla (shrc)](/home/shrc#L122)
play Dungeon Crawl: Stone Soup through ssh on the akrasiac server.
### [crawlz (shrc)](/home/shrc#L124)
### [crawlz (shrc)](/home/shrc#L123)
play Dungeon Crawl: Stone Soup through ssh on the develz server.
### [eahead (shrc)](/home/shrc#L126)
### [eahead (shrc)](/home/shrc#L125)
deprecated name for [`ea head`.](#ea)
### [eaget (shrc)](/home/shrc#L127)
### [eaget (shrc)](/home/shrc#L126)
deprecated name for [`ea get`.](#ea)
### [eaput (shrc)](/home/shrc#L128)
### [eaput (shrc)](/home/shrc#L127)
deprecated name for [`ea put`.](#ea)
### [eamove (shrc)](/home/shrc#L129)
### [eamove (shrc)](/home/shrc#L128)
deprecated name for [`ea move`.](#ea)
### [eacopy (shrc)](/home/shrc#L130)
### [eacopy (shrc)](/home/shrc#L129)
deprecated name for [`ea copy`.](#ea)
### [eadelete (shrc)](/home/shrc#L131)
### [eadelete (shrc)](/home/shrc#L130)
deprecated name for [`ea delete`.](#ea)
### [eamv (shrc)](/home/shrc#L132)
### [eamv (shrc)](/home/shrc#L131)
invoke [`ea move`.](#ea)
### [eacp (shrc)](/home/shrc#L133)
### [eacp (shrc)](/home/shrc#L132)
invoke [`ea copy`.](#ea)
### [earm (shrc)](/home/shrc#L134)
### [earm (shrc)](/home/shrc#L133)
invoke [`ea delete`.](#ea)
### [ll (shrc)](/home/shrc#L136)
### [ll (shrc)](/home/shrc#L135)
list files verbosely, fancily, ordered, but not recursively.
### [diff (shrc)](/home/shrc#L145)
### [diff (shrc)](/home/shrc#L144)
use git's diff subcommand for general diffing.
### [gc (shrc)](/home/shrc#L146)
### [gc (shrc)](/home/shrc#L145)
columnize text by using git's column subcommand.
**TODO:** consider renaming because gc(1) already exists.
### [counts (shrc)](/home/shrc#L148)
### [counts (shrc)](/home/shrc#L147)
count files in the current directory, including files found recursively.
### [exts (shrc)](/home/shrc#L149)
### [exts (shrc)](/home/shrc#L148)
count and sort file extensions in the current directory, including files found recursively.
### [nocom (shrc)](/home/shrc#L150)
### [nocom (shrc)](/home/shrc#L149)
strip single-line C-like and shell-like comments.
### [jrep (shrc)](/home/shrc#L151)
### [jrep (shrc)](/home/shrc#L150)
extract strings comprised of basic ASCII or Japanese codepoints.
### [bomb (shrc)](/home/shrc#L152)
### [bomb (shrc)](/home/shrc#L151)
add a Byte-Order Mark to a file.
### [cleanse (shrc)](/home/shrc#L153)
### [cleanse (shrc)](/home/shrc#L152)
strip unprintable and non-ASCII characters.
### [unwrap (shrc)](/home/shrc#L154)
### [unwrap (shrc)](/home/shrc#L153)
join paragraphs into one line each.
### [double (shrc)](/home/shrc#L155)
### [double (shrc)](/home/shrc#L154)
print every line twice. <br/> print every line twice.
**NOTE:** there also exists a double(1) program provided by
the *plotutils* package that i don't use.
### [join2 (shrc)](/home/shrc#L158)
### [join2 (shrc)](/home/shrc#L157)
join every other line.
### [katagana (shrc)](/home/shrc#L159)
### [katagana (shrc)](/home/shrc#L158)
convert katakana codepoints to their equivalent hiragana.
this is occasionally useful when translating [debug text from ancient games.](https://tcrf.net/)
### [picky (shrc)](/home/shrc#L161)
### [picky (shrc)](/home/shrc#L160)
list pacman packages that were manually installed and are not in some common package groups.
this list can be used to assist later reinstalls.
### [unused (shrc)](/home/shrc#L164)
### [unused (shrc)](/home/shrc#L163)
list pacman packages that weren't installed explicitly and don't satisfy any dependencies.
this list can be used to free up some disk space.
### [makepkgf (shrc)](/home/shrc#L167)
### [makepkgf (shrc)](/home/shrc#L166)
make the freakin' package!
### [rakef (shrc)](/home/shrc#L168)
### [rakef (shrc)](/home/shrc#L167)
make the freakin' gem!
### [pl (shrc)](/home/shrc#L170)
### [pl (shrc)](/home/shrc#L169)
print each argument on its own line.

View File

@ -81,7 +81,6 @@ fi
# just flags {{{2
export LESS='-SRQc'
alias db="dropbox_uploader"
alias fils="du -bahd1" ### @- (GNU du) display human-friendly filesizes for the files in a directory.
alias lsa="ls -A --group-directories-first" ### @- (GNU ls) list files with directories and dotfiles ordered first.
alias perlu='perl -Mopen=locale -Mutf8' ### @- invoke perl expecting files with UTF-8 encoding.

View File

@ -36,6 +36,7 @@ unsetopt flow_control # Disable start/stop characters in shell editor.
function {
if [ "$SHLVL" -le 1 ] \
&& [ "${(L)HOST}" != spectre ] \
&& [ "${TERM#screen}" = "$TERM" ] \
&& [ "${TERM#tmux}" = "$TERM" ] \
&& [ -z "$ALACRITTY_LOG" ] \

View File

@ -42,11 +42,20 @@ _M_PRE_EMPH='equalizer=f=50:g=-10:width_type=o:w=4,equalizer=f=5000:g=+5:width_t
_M_POST_EMPH='equalizer=f=50:g=+10:width_type=o:w=4,equalizer=f=5000:g=-5:width_type=o:w=4'
_M_COMPRESS="acompressor=threshold=0.0032:ratio=1.414:attack=17:release=640:makeup=5.5:knee=8:mix=0.8"
_M_KILL="$_M_PRE_EMPH,$_M_COMPRESS,$_M_POST_EMPH"
_M_PRE_EMPH2="lowshelf=f=100:g=-20:t=o:w=3.0,equalizer=f=1400:g=4:t=o:w=2.5,highshelf=f=5000:g=-8:t=o:w=2.0"
_M_POST_EMPH2="lowshelf=f=100:g=20:t=o:w=3.0,equalizer=f=1400:g=-4:t=o:w=2.5,highshelf=f=5000:g=8:t=o:w=2.0"
_M_COMPRESS2="acompressor=threshold=0.00316:ratio=5:attack=30:release=600:makeup=16:knee=8:mix=0.4988"
_M_COMPRESS3="acompressor=threshold=0.316:ratio=20:attack=2:release=100:makeup=1.6:knee=2:mix=0.9369:detection=peak"
_M_KILL2="$_M_PRE_EMPH2,$_M_COMPRESS2,$_M_COMPRESS3,$_M_POST_EMPH2"
_M_MULTI="volume=10,mcompand=0.256\,2.56 9 -90/-90\,-44/-44\,0/-26.4\,20/0 80 0 -44 0 | 0.128\,1.28 9 -90/-90\,-36/-36\,0/-18\,20/0 160 0 -36 0 | 0.064\,0.64 9 -90/-90\,-37/-37\,0/-18.5\,20/0 320 0 -37 0 | 0.032\,0.32 9 -90/-90\,-38/-38\,0/-19\,20/0 640 0 -38 0 | 0.016\,0.16 9 -90/-90\,-40/-40\,0/-20\,20/0 1280 0 -40 0 | 0.008\,0.08 9 -90/-90\,-41/-41\,0/-20.5\,20/0 2560 0 -41 0 | 0.004\,0.04 9 -90/-90\,-44/-44\,0/-22\,20/0 5120 0 -44 0 | 0.002\,0.02 9 -90/-90\,-52/-52\,0/-26\,20/0 10240 0 -52 0 | 0.001\,0.01 9 -90/-90\,-60/-60\,0/-36\,20/0 20480 0 -60 0"
_M_MULTI2="volume=10,mcompand=0.256\,5.12 9 -90/-90\,-46/-46\,0/-18.9\,20/0 62.9 0 -46 0 | 0.128\,2.56 9 -90/-90\,-34/-34\,0/-9.7\,20/0 141.1 0 -34 0 | 0.064\,1.28 9 -90/-90\,-37/-37\,0/-10.6\,20/0 316.8 0 -37 0 | 0.032\,0.64 9 -90/-90\,-39/-39\,0/-11.1\,20/0 711.2 0 -39 0 | 0.016\,0.32 9 -90/-90\,-41/-41\,0/-11.7\,20/0 1596 0 -41 0 | 0.008\,0.16 9 -90/-90\,-46/-46\,0/-13.1\,20/0 3584 0 -46 0 | 0.004\,0.08 9 -90/-90\,-49/-49\,0/-14\,20/0 8046 0 -49 0 | 0.002\,0.04 9 -90/-90\,-58/-58\,0/-23.9\,20/0 18062 0 -58 0"
_M_INSANE="$_M_PRE_EMPH,acompressor=threshold=0.001:ratio=2:attack=1000:release=9000:makeup=3:knee=6:mix=0.5,acompressor=threshold=0.002:ratio=2:attack=320:release=2880:makeup=3:knee=6:mix=0.5,acompressor=threshold=0.004:ratio=2:attack=100:release=900:makeup=3:knee=6:mix=0.5,acompressor=threshold=0.008:ratio=2:attack=32:release=288:makeup=3:knee=6:mix=0.5,acompressor=threshold=0.016:ratio=2:attack=10:release=90:makeup=3:knee=6:mix=0.5,$_M_POST_EMPH,alimiter"
_M_LESS_INSANE="$_M_PRE_EMPH,acompressor=threshold=0.0020:ratio=1.41:attack=1000:release=9000:makeup=2.2:knee=6:mix=0.6,acompressor=threshold=0.0028:ratio=1.41:attack=320:release=2880:makeup=2.2:knee=6:mix=0.6,acompressor=threshold=0.0040:ratio=1.41:attack=100:release=900:makeup=2.2:knee=6:mix=0.6,acompressor=threshold=0.0057:ratio=1.41:attack=32:release=288:makeup=2.2:knee=6:mix=0.6,acompressor=threshold=0.0080:ratio=1.41:attack=10:release=90:makeup=2.2:knee=6:mix=0.6,$_M_POST_EMPH,alimiter=level_in=2.2:level_out=0.45"
_M_NEO="firequalizer=wfunc=hamming:fft2=on:min_phase=on:gain_entry='entry(78.5\,-11.7);entry(103\,2.28);entry(158\,4);entry(241\,4.94);entry(334\,7.44);entry(398\,1.42);entry(486\,-2.74);entry(627\,-5.93);entry(741\,-7.65);entry(860\,-5.93);entry(939\,-6.96);entry(1010\,-8.85);entry(1110\,-11.8);entry(1230\,-3.18);entry(1460\,0.43);entry(1720\,4.21);entry(1890\,-0.43);entry(2240\,1.33);entry(2570\,7.82);entry(2990\,10.4);entry(3320\,8.04);entry(3920\,7.61);entry(4280\,4.73);entry(4710\,-1.46);entry(5670\,6.51);entry(6290\,8.85);entry(6690\,4.21);entry(7240\,9.03);entry(8120\,9.03);entry(10000\,11.8);entry(11800\,8.91);entry(20200\,-9.09)'"
_M_NEO2="$_M_NEO,equalizer=1100:o:1.0:-2,equalizer=2300:o:1.0:2,equalizer=5625:o:0.2:-3,equalizer=7800:o:0.6:-6,alimiter=level_in=1.5"
_M_DANNY="$_M_PRE_EMPH,alimiter,dynaudnorm=f=400:g=5:p=1:m=32:r=0.1:c=1:s=9:t=0.0003,$_M_POST_EMPH,alimiter=level_in=2.6:level_out=0.91"
_M_LEVEL="$(getladspa crap_level)"
@ -63,7 +72,7 @@ case "$(uname -n | tr A-Z a-z)" in
neobanshee)
speakers() {
argc $# -eq 0 "$0" || return
_M_PROCESS="highpass=100,$_M_KILL,$_M_NEO,alimiter=level_in=1"
_M_PROCESS="highpass=100,$_M_KILL2,$_M_NEO2"
}
speakers
;;
@ -144,8 +153,7 @@ ytg() { # @-
# watch a youtube video. like `yt`, but with a preference for different formats.
argc $# -ge 1 "$0" || return
local vid="$1"; shift
# --ytdl-format=22/95/300/best
yt "$vid" "$@"
yt "$vid" "$@" --ytdl-format=22/95/300/best
}
ytll() { ### @-
@ -171,7 +179,6 @@ ai() { # @-
asmr() { # @-
# for your aural pleasure.
argc $# -ge 1 "$0" || return
# --ytdl-format=251/300/best
_M_PROCESS="acompressor=threshold=0.001:ratio=1.33:attack=900:release=6000:makeup=6:knee=8:mix=0.9,alimiter" \
yt "$@" --volume=90
yt "$@" --volume=90 --ytdl-format=251/300/best
}