mirror of
https://github.com/notwa/rc
synced 2024-06-30 19:07:11 -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
|
unset $x
|
||||||
done
|
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
|
# PuTTY over serial
|
||||||
[[ "$TERM" == vt102 ]] && export TERM="xterm"
|
[[ "$TERM" == vt102 ]] && export TERM="xterm"
|
||||||
|
@ -104,18 +104,22 @@ function trash() {
|
||||||
|
|
||||||
. ~/sh/z/z.sh
|
. ~/sh/z/z.sh
|
||||||
|
|
||||||
export MPV_STREAM_FLAGS="--quiet --no-sub"
|
MPV_STREAM_FLAGS="--quiet --no-sub"
|
||||||
|
LIVESTREAMER_FLAGS=""
|
||||||
if [[ "$(uname -n)" != "banshee" ]]; then
|
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
|
fi
|
||||||
|
|
||||||
twitch(){
|
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}"
|
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# hitbox uses rtmp but mpv doesnt support rtmp dump parameters
|
# hitbox uses rtmp but mpv doesnt support rtmp dump parameters
|
||||||
hitbox(){
|
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}"
|
"$MPV_STREAM_FLAGS ${2:+--autofit=}${2:-} {filename}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[default]
|
[default]
|
||||||
volume=50
|
volume=70
|
||||||
#af=drc
|
#af=drc
|
||||||
msg-level=all=info
|
msg-level=all=info
|
||||||
osd-level=1
|
osd-level=1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
local now=$(date +%F_%H-%M-%S)
|
local now=$(date +%F_%H-%M-%S)
|
||||||
scrot ~/$now.png -e "optipng -quiet \$f" \
|
scrot ~/$now.png -e "optipng -quiet \$f" "$@" \
|
||||||
&& mv ~/$now.png ~/Dropbox/Public/screenshots/
|
&& mv ~/$now.png ~/Dropbox/Public/screenshots/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user