mirror of
https://github.com/notwa/rc
synced 2024-06-25 16:57:12 -07:00
more laptop stuff
This commit is contained in:
parent
c05fffdbbe
commit
56515803bd
14
home/-shrc
14
home/-shrc
|
@ -32,7 +32,7 @@ for x in AR CC CPP CXX CFLAGS CPPFLAGS CXXFLAGS LDFLAGS RANLIB RC WINDRES; do
|
|||
unset $x
|
||||
done
|
||||
|
||||
[ "$LANG" != "en_US.UTF-8" ] && echo "Warning: LANG is $LANG"
|
||||
[ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ] && echo "Warning: LANG is $LANG"
|
||||
|
||||
# PuTTY over serial
|
||||
[[ "$TERM" == vt102 ]] && export TERM="xterm"
|
||||
|
@ -104,18 +104,22 @@ function trash() {
|
|||
|
||||
. ~/sh/z/z.sh
|
||||
|
||||
export MPV_STREAM_FLAGS="--quiet --no-sub"
|
||||
MPV_STREAM_FLAGS="--quiet --no-sub"
|
||||
LIVESTREAMER_FLAGS=""
|
||||
if [[ "$(uname -n)" != "banshee" ]]; then
|
||||
export MPV_STREAM_FLAGS="$MPV_STREAM_FLAGS --vo=opengl:swapinterval=0"
|
||||
MPV_STREAM_FLAGS="$MPV_STREAM_FLAGS --vo=opengl:swapinterval=0"
|
||||
else
|
||||
_COMPAND="$(~/sh/compandy 1 140 -30 10 6 18 1)"
|
||||
MPV_STREAM_FLAGS="$MPV_STREAM_FLAGS "'--af=lavfi=\"aformat=channel_layouts=stereo,'"$_COMPAND"',lowpass=f=1000:p=1,lowpass=f=4000:p=2\"'
|
||||
fi
|
||||
|
||||
twitch(){
|
||||
livestreamer "twitch.tv/$1" best -p mpv -a \
|
||||
livestreamer "twitch.tv/$1" best -p mpv $LIVESTREAMER_FLAGS -a \
|
||||
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}"
|
||||
}
|
||||
|
||||
# hitbox uses rtmp but mpv doesnt support rtmp dump parameters
|
||||
hitbox(){
|
||||
livestreamer "hitbox.tv/$1" best -p mpv -a \
|
||||
livestreamer "hitbox.tv/$1" best -p mpv $LIVESTREAMER_FLAGS -a \
|
||||
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[default]
|
||||
volume=50
|
||||
volume=70
|
||||
#af=drc
|
||||
msg-level=all=info
|
||||
osd-level=1
|
||||
|
|
Loading…
Reference in New Issue
Block a user