1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-25 16:57:12 -07:00

more laptop stuff

This commit is contained in:
Connor Olding 2015-04-13 18:03:56 -07:00
parent c05fffdbbe
commit 56515803bd
3 changed files with 11 additions and 7 deletions

View File

@ -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}"
}

View File

@ -1,5 +1,5 @@
[default]
volume=50
volume=70
#af=drc
msg-level=all=info
osd-level=1

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
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/