My personal config files (2018-03-26)

$ pacaur -S neofetch downgrade grml-zsh-config ttf-droid-min ttf-roboto --force

$ downgrade noto-fonts-emoji # 20170519-1

PingFang-TC.txz

~/.config/fontconfig/fonts.conf

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <alias binding="strong">
    <family>sans-serif</family>
    <prefer>
      <family>Roboto</family>
      <family>.PingFang TC</family>
    </prefer>
  </alias>
  <alias binding="strong">
    <family>tahoma</family>
    <prefer>
      <family>Roboto</family>
      <family>.PingFang TC</family>
    </prefer>
  </alias>
  <alias binding="strong">
    <family>monospace</family>
    <prefer>
      <family>Droid Sans Mono</family>
    </prefer>
  </alias>

  <alias binding="strong">
    <family>emoji</family>
    <default>
      <family>Noto Color Emoji</family>
    </default>
  </alias>

  <alias binding="strong">
    <family>Apple Color Emoji</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>
  <alias binding="strong">
    <family>Segoe UI Emoji</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>

  <match target="font">
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
    </edit>
  </match>
</fontconfig>

/etc/profile.d/alias.sh

alias sta='sudo systemctl start'
alias sto='sudo systemctl stop'
alias stt='sudo systemctl status'
alias rst='sudo systemctl restart'
alias enb='sudo systemctl enable'
alias dsb='sudo systemctl disable'

alias pacaur='pacaur --color=always'
alias s='pacaur -S'
alias i='pacaur -S'
alias r='sudo pacman -R'
alias rmud='sudo pacman -Rsn $(pacman -Qdtq)'
alias rmop='sudo pacman -Rns $(pacman -Qtdq)'

alias aur='pac'

alias scr='screen'

alias sudo='sudo '

alias ls='ls -l -h --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'

## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

## Create parent directories on demand
alias mkdir='mkdir -pv'

alias now='date +"%T"'

alias sna='sudo nano'
alias iotop='sudo iotop'
alias iftop='sudo iftop'

# do not delete / or prompt if deleting more than 3 files at a time #
alias rm='rm -I --preserve-root'

# confirmation #
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'

# Parenting changing perms on / #
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'

# become root #
alias root='sudo -i'
alias su='sudo su - -s /bin/zsh'

## this one saved by butt so many times ##
alias wget='wget -c'

alias runnow='sh sh/runnow.sh'

alias iown='sudo chown -R $(whoami)'

alias drld='sudo systemctl daemon-reload'

alias htop='htop -d 5'
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
alias yolo='pacaur -Suy --noconfirm && pacaur -Suya --noconfirm'
alias linux-ck='sudo pacman-key -r 5EE46C4C && sudo pacman-key --lsign-key 5EE46C4C && yolo'
alias download='aria2c -s 16 -j 16 -x 16 -k 1M '

alias open='xdg-open'

alias night='pacmd load-module module-ladspa-sink sink_name=ladspa_sink master=alsa_output.pci-0000_00_1b.0.analog-stereo plugin=dyson_compress_1403 label=dysonCompress control=0,1,0.5,0.99 && pacmd load-module module-ladspa-sink sink_name=ladspa_normalized master=ladspa_sink plugin=fast_lookahead_limiter_1913 label=fastLookaheadLimiter control=10,0,0.8'
alias wine32='WINEPREFIX=~/.wine32 WINEARCH=win32 wine'
alias turbo-on='sudo cpupower frequency-set -g performance'
alias turbo-off='sudo cpupower frequency-set -g powersave'
alias waifu2x='waifu2x-converter-cpp --disable-gpu --block_size 1024'

~/.zshrc

function drop { if [ $(du -m $1 | awk '{print $1}') -ge "100" ]; then echo File too large.; else curl https://drop.wtako.net/upload --progress-bar -F file=@"$1" | sed "s/[\"\{\}]//g" | sed "s/,/\n/g" | sed "s/:/: https:\/\/drop.wtako.net/g"; fi }
function slowdown { sudo schedtool -D $(ps -eLf | grep $1 | grep -v grep | awk '{print $4}') }
alias viutv='mpv "https://viu.wtako.net/stream/Stream(04)/index.m3u8" --audio-file "https://viu.wtako.net/stream/Stream(06)/index.m3u8"'
function bright { sudo ddccontrol -r 0x10 -w $1 dev:/dev/i2c-4 }
alias lb='bright 0'
alias mb='bright 50'
alias hb='bright 100'
alias slience-beep='schedtool -F -p 99 -e sudo bash -c "while true; do echo -e '"'"'\a'"'"' > /dev/console; done"'
alias rccp='rclone copy --checkers 16 --transfers 16 --stats 1s -v '
source /etc/profile.d/alias.sh
zstyle ':prompt:grml:*:items:user' pre '[%F{yellow}'
zstyle ':prompt:grml:*:items:percent' pre ']'
export EDITOR=nano
export VISUAL=nano
export AURDEST=/tmp/pacaurtmp-$USER/aurdest
export PYTHONPATH=$PYTHONPATH:`pwd`:/home/saren/文件/learn-ml/models-master/research/slim
# (wal -r &)
clear
neofetch

~/.config/mpv/mpv.conf

vd-lavc-threads=72
# x11-bypass-compositor=never
input-ipc-server=/tmp/mpvsocket
screenshot-format=png
vd-lavc-dr=yes
opengl-pbo
opengl-waitvsync

[fav]
profile=slow
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
scale-antiring=0.8
cscale-antiring=0.9
opengl-shaders=~/.config/mpv/superxbr-native.hook
deband=yes

[nn]
profile=fav
opengl-shaders=~/.config/mpv/nnedi3-nns32-win8x4.hook

[noshaders]
profile=fav
opengl-shaders=

[slow]
profile=opengl-hq

[slower]
vo=opengl

[hdr]
tone-mapping=reinhard
tone-mapping-param=0.25
tone-mapping-desaturate=1.0
hdr-compute-peak=yes

# [extension.mp4]
# profile=fav

/etc/neofetch/config

Recommendations

Last modified: 2018-03-25 16:23:50
Powered by Simple Blog