mirror of
https://github.com/notwa/rc
synced 2024-07-01 03:07:13 -07:00
use single brackets and stuff here too
This commit is contained in:
parent
20a25d7e37
commit
51e0ddc46f
|
@ -34,16 +34,16 @@ earphones() {
|
||||||
_M_PROCESS="lowpass=8000:p=1,$_M_KILL,alimiter=level_out=0.707"
|
_M_PROCESS="lowpass=8000:p=1,$_M_KILL,alimiter=level_out=0.707"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$_nn" == spectre ]]; then
|
if [ "$_nn" = spectre ]; then
|
||||||
_M_PROCESS="$_M_KILL,alimiter=level_out=0.7071"
|
_M_PROCESS="$_M_KILL,alimiter=level_out=0.7071"
|
||||||
fi
|
fi
|
||||||
if [[ "$_nn" == neobanshee ]]; then
|
if [ "$_nn" = neobanshee ]; then
|
||||||
speakers() {
|
speakers() {
|
||||||
_M_PROCESS="highpass=311,$_M_KILL,$_M_NEO,alimiter=level_in=2"
|
_M_PROCESS="highpass=311,$_M_KILL,$_M_NEO,alimiter=level_in=2"
|
||||||
}
|
}
|
||||||
speakers
|
speakers
|
||||||
fi
|
fi
|
||||||
if [[ "$_nn" == banshee ]]; then
|
if [ "$_nn" = banshee ]; then
|
||||||
getladspa crap_eq_const_T420
|
getladspa crap_eq_const_T420
|
||||||
_M_SPEAKERS="$REPLY"
|
_M_SPEAKERS="$REPLY"
|
||||||
speakers() {
|
speakers() {
|
||||||
|
@ -91,9 +91,7 @@ yt() { ### @-
|
||||||
###
|
###
|
||||||
### there exist several variants for more specific use cases.
|
### there exist several variants for more specific use cases.
|
||||||
local vid="$1"; shift
|
local vid="$1"; shift
|
||||||
if [[ ! -e "$vid" && "$(expr substr "$vid" 1 4)" != "http" ]]; then
|
[ -e "$vid" ] || [ "$vid" != "${vid#http}" ] || vid="ytdl://$vid"
|
||||||
vid="ytdl://$vid"
|
|
||||||
fi
|
|
||||||
mpv_watch "$vid" "$@"
|
mpv_watch "$vid" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user