Initial commit zsh, mpv and whipper

This commit is contained in:
odrling 2018-02-01 23:34:24 +01:00
commit fa1eeb7597
5 changed files with 196 additions and 0 deletions

110
.config/mpv/mpv.conf Normal file
View file

@ -0,0 +1,110 @@
screenshot-template="/media/amoelib/Pictures/mpv Screenshots/%F (%ws) %n"
ontop
osd-fractions
msg-color
save-position-on-quit
hwdec=vaapi
ytdl-format=bestvideo[height<=?1080]+bestaudio/best
x11-bypass-compositor=no
fullscreen=yes
video-sync=display-resample
#scale=lanczos
############
# Profiles #
############
[twitch]
no-resume-playback
#########
# Cache #
#########
cache=yes
cache-default=800000 # size in KB
cache-backbuffer=25000 # size in KB
cache-initial=0 # start playback when your cache is filled up with x kB
cache-secs=10 # how many seconds of audio/video to prefetch
# if the cache is active
#############
# OSD / OSC #
#############
osd-level=1 # enable osd and display --osd-status-msg on interaction
osd-duration=2500 # hide the osd after x ms
osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?vo-drop-frame-count:${!vo-drop-frame-count==0: Dropped: ${vo-drop-frame-count}}}\n${?chapter:Chapter: ${chapter}}'
osd-font='Source Sans Pro'
osd-font-size=32
osd-color='#CCFFFFFF' # ARGB format
osd-border-color='#DD322640' # ARGB format
#osd-shadow-offset=1 # pixel width for osd text and progress bar
osd-bar-align-y=0 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
osd-border-size=2 # size for osd text and progress bar
osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
osd-bar-w=60 # width of " " "
########
# Subs #
########
demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
embeddedfonts=yes
# the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
sub-font="Source Sans Pro Semibold"
sub-font-size=36
sub-color="#FFFFFFFF"
sub-border-color="#FF262626"
sub-border-size=3.2
sub-shadow-offset=1
sub-shadow-color="#33000000"
sub-spacing=0.5
#############
# Languages #
#############
slang=enm,en,eng,fr,fra # automatically select these subtitles (decreasing priority)
alang=ja,jp,jpn,en,eng,fr,fra # automatically select these
# audio tracks (decreasing priority)
#########
# Audio #
#########
audio-pitch-correction=yes # automatically insert scaletempo
# when playing with higher speed
###################################
# Protocol Specific Configuration #
###################################
[protocol.https]
cache=yes
cache-default=100000
cache-backbuffer=50000
cache-secs=25
[protocol.http]
#cache=yes
#cache-default=500000 # size in KB
#cache-backbuffer=250000 # size in KB
cache-secs=25 # how many seconds of audio/video to prefetch
[extension.gif]
cache=no
no-pause
loop-file=yes
[extension.webm]
cache=yes
#no-pause
#loop-file=yes

View file

@ -0,0 +1,7 @@
[drive:ASUS%20%20%20%20%3ASDRW-08D2S-U%20%20%20%20%3AB901]
vendor = ASUS
model = SDRW-08D2S-U
release = B901
defeats_cache = True
read_offset = 6

3
.gitconfig Normal file
View file

@ -0,0 +1,3 @@
[user]
email = odrling@gmail.com
name = odrling

28
.gitignore vendored Normal file
View file

@ -0,0 +1,28 @@
# ignore everything except the gitignore file
/*
!.gitignore
# ignore cache files
cache
Cache
# ignore log files
*log
# zsh config files
!/.zshrc
# git config file
!/.gitconfig
# only add selected config files
!/.config
/.config/*
# mpv config file
!/.config/mpv
/.config/mpv/*
!/.config/mpv/mpv.conf
# whipper config files
!/.config/whipper

48
.zshrc Normal file
View file

@ -0,0 +1,48 @@
ANTIGEN_DIR="~/.antigen"
mkdir -p $ANTIGEN_DIR
if [ ! -f $ANTIGEN_DIR/antigen.zsh ]; then
curl -Ls git.io/antigen > $ANTIGEN_DIR/antigen.zsh
fi
source $ANTIGEN_DIR/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle pip
antigen bundle command-not-found
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen theme gentoo
antigen apply
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**'
zstyle ':completion:*' max-errors 2
zstyle ':completion:*' menu select=1
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle :compinstall filename '/home/odrling/.zshrc'
zstyle ':completion:*' rehash true
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory autocd notify
unsetopt beep
bindkey -e
# End of lines configured by zsh-newuser-install
export PATH=~/.local/bin:$PATH
export EDITOR=vim
alias sshmoethyst="ssh -t amoethyst 'tmux attach -t default ;or tmux new -t default'"
alias venv="source ~/.venv"