all repos — dotfiles @ 93a777fae32530c3c0068d0840b648a0064e50d5

my *nix dotfiles

A whole lotta junk

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Fri, 20 Sep 2019 23:22:52 +0530
commit

93a777fae32530c3c0068d0840b648a0064e50d5

parent

a8add29401610bae4a5012c8917368419824adf5

M .Xresources.Xresources

@@ -54,7 +54,7 @@

! Urxvt config !--------------------- -URxvt.font: xft:SF Mono:Semibold:size=12 +URxvt.font: xft:SF Mono:Semibold:size=13 URxvt.scrollBar: false URxvt.cursorBlink: true URxvt.internalBorder: 30
M bin/lock.shbin/lock.sh

@@ -1,9 +1,24 @@

#!/usr/bin/env bash -image_file=/tmp/screen_lock.png -import -window root "$image_file" -resolution=$(xdpyinfo | grep dimensions | awk '{print $2}') -filters="gblur=sigma=15,hue=s=0,eq=brightness=-0.09" -ffmpeg -y -loglevel 0 -s "$resolution" -f x11grab -i $DISPLAY -vframes 1 \ --vf "$filters" "$image_file" -i3lock -i $image_file -l '#ffffff' -o '#99C794' -w '#EC5f67' +import -window root /tmp/lock.png +convert /tmp/lock.png /tmp/lock.jpg +file=/tmp/lock.jpg + +# stolen from xero +function datamosh() { + fileSize=$(wc -c < "$file") + headerSize=10 + skip=$(shuf -i "$headerSize"-"$fileSize" -n 1) + count=$(shuf -i 1-10 -n 1) + for i in $(seq 1 $count);do byteStr=$byteStr'\x'$(shuf -i 0-255 -n 1); done; + printf $byteStr | dd of="$file" bs=1 seek=$skip count=$count conv=notrunc >/dev/null 2>&1 +} + +steps=$(shuf -i 20-30 -n 1) +for i in $(seq 1 $steps);do datamosh "$file"; done + +convert /tmp/lock.jpg /tmp/lock.png >/dev/null 2>&1 +rm /tmp/lock.jpg +file=/tmp/lock.png + +i3lock -u -i "$file"
M config/nvim/init.vimconfig/nvim/init.vim

@@ -9,6 +9,7 @@ call plug#begin()

Plug 'jiangmiao/auto-pairs' Plug 'airblade/vim-gitgutter' Plug 'NerdyPepper/vim-colors-plain', { 'branch': 'duotone' } +Plug 'dag/vim-fish', " plugins for writing {{{ Plug 'reedes/vim-pencil', { 'for': ['text', 'markdown'] } Plug 'reedes/vim-wordy', { 'for': ['text', 'markdown'] }

@@ -80,9 +81,6 @@ set wildignore+=*.eot,*.otf,*.ttf,*.woff

set wildignore+=*.doc,*.pdf,*.cbr,*.cbz set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb set wildignore+=*.swp,.lock,.DS_Store,._* - -" deoplete -let g:deoplete#enable_at_startup = 1 " colorscheme colorscheme plain

@@ -197,10 +195,6 @@ let g:vim_markdown_yaml_fromtmatter=1

let g:vim_markdown_folding_disabled=1 let g:vim_markdown_conceal=0 -" deoplete-jedi -let g:python_host_prog = '/home/icy/.pynvim2/bin/python' -let g:python3_host_prog = '/home/icy/.pynvim3/bin/python' - " keysound let g:keysound_enable = 1 let g:keysound_volume = 1000

@@ -215,10 +209,3 @@ autocmd FileType textile call textobj#quote#init({'educate': 1})

autocmd FileType text call textobj#quote#init({'educate': 1}) augroup END -" litecorrect -augroup litecorrect - autocmd! - autocmd FileType markdown,mkd call litecorrect#init() - autocmd FileType textile call litecorrect#init() -augroup END -
M config/polybar/barconfig/polybar/bar

@@ -29,7 +29,7 @@

background = ${colors.bg} foreground = ${colors.fg} -font-0 = SF Mono:size=12:weight=semibold;3 +font-0 = SF Mono:size=13:weight=semibold;3 modules-left = date time volume battery music modules-center =

@@ -72,7 +72,7 @@

format = <label-state> label-active = × -label-active-foreground = ${xrdb:color6} +label-active-foreground = ${colors.fg} label-active-background = ${colors.bg} label-active-padding = 1
M weechat/weechat.confweechat/weechat.conf

@@ -35,6 +35,7 @@ buffer_search_force_default = off

buffer_search_regex = off buffer_search_where = prefix_message buffer_time_format = "" +buffer_time_same = "" color_basic_force_bold = off color_inactive_buffer = on color_inactive_message = on

@@ -111,6 +112,7 @@ prefix_join = " · "

prefix_network = " ⋆ " prefix_quit = " · " prefix_same_nick = " " +prefix_same_nick_middle = "" prefix_suffix = "" quote_nick_prefix = "<" quote_nick_suffix = ">"

@@ -384,12 +386,7 @@ title.type = window

[layout] default.buffer = "core;weechat;1" -default.buffer = "irc;server.rizon;1" -default.buffer = "irc;rizon.#rice;2" -default.buffer = "irc;rizon.#homescreen;3" -default.buffer = "irc;rizon.#avpd;4" -default.buffer = "irc;rizon.#linux;5" -default.window = "1;0;0;0;irc;rizon.#rice" +default.window = "1;0;0;0;core;weechat" default.current = on [notify]

@@ -427,6 +424,8 @@ ctrl-X = "/input switch_active_buffer"

ctrl-Y = "/input clipboard_paste" meta-meta-OP = "/bar scroll buflist * b" meta-meta-OQ = "/bar scroll buflist * e" +meta-meta2-11~ = "/bar scroll buflist * b" +meta-meta2-12~ = "/bar scroll buflist * e" meta-meta2-1~ = "/window scroll_top" meta-meta2-23~ = "/bar scroll nicklist * yb" meta-meta2-24~ = "/bar scroll nicklist * ye"

@@ -464,6 +463,10 @@ meta-Oa = "/input history_global_previous"

meta-Ob = "/input history_global_next" meta-Oc = "/input move_next_word" meta-Od = "/input move_previous_word" +meta2-11^ = "/bar scroll buflist * -100%" +meta2-11~ = "/bar scroll buflist * -100%" +meta2-12^ = "/bar scroll buflist * +100%" +meta2-12~ = "/bar scroll buflist * +100%" meta2-15~ = "/buffer -1" meta2-17~ = "/buffer +1" meta2-18~ = "/window -1"

@@ -472,8 +475,12 @@ meta2-1;3A = "/buffer -1"

meta2-1;3B = "/buffer +1" meta2-1;3C = "/buffer +1" meta2-1;3D = "/buffer -1" +meta2-1;3P = "/bar scroll buflist * b" +meta2-1;3Q = "/bar scroll buflist * e" meta2-1;5A = "/input history_global_previous" meta2-1;5B = "/input history_global_next" +meta2-1;5P = "/bar scroll buflist * -100%" +meta2-1;5Q = "/bar scroll buflist * +100%" meta2-1~ = "/input move_beginning_of_line" meta2-20~ = "/bar scroll title * x-50%" meta2-21~ = "/bar scroll title * x+50%"
M x/.xinitrcx/.xinitrc

@@ -8,10 +8,7 @@ #(_)_/\_\_|_| |_|_|\__|_| \___|

# setxkbmap -option compose:caps -dbus-update-activation-environment --systemd DISPLAY -eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) -export SSH_AUTH_SOCK urxvtd & source ~/.fehbg libinput-gestures-setup start -exec i3 +exec i3
M zsh/.aliaseszsh/.aliases

@@ -1,4 +1,4 @@

-#!/usr/bin/zsh +#!/usr/bin/env bash alias gah='sudo $(fc -ln -1)' alias nvime="nvim ~/.config/nvim/init.vim"

@@ -27,3 +27,22 @@

function vpn { ~/bin/vpnon.sh } + +function f() { + fff "$@" + cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")" +} + +function git_branch() { + local git_status="$(git status 2> /dev/null)" + local on_branch="On branch ([^${IFS}]*)" + local on_commit="HEAD detached at ([^${IFS}]*)" + + if [[ $git_status =~ $on_branch ]]; then + local branch=${BASH_REMATCH[1]} + echo -ne "───${grn} $branch ${rst}" + elif [[ $git_status =~ $on_commit ]]; then + local commit=${BASH_REMATCH[1]} + echo -ne "───${ylw} $commit ${rst}" + fi +}
M zsh/.zshrczsh/.zshrc

@@ -20,8 +20,7 @@ export PATH=$PATH:/usr/local/go/bin

# zsh setup autoload -Uz compinit colors add-zsh-hook history-search-end -colors -compinit +#colors zstyle ':completion:*' list-colors "di=34" zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' export ZLE_REMOVE_SUFFIX_CHARS=''

@@ -56,13 +55,13 @@

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # base16-shell -BASE16_SHELL="$HOME/.config/base16-shell/" -[ -n "$PS1" ] && \ - [ -s "$BASE16_SHELL/profile_helper.sh" ] && \ - eval "$("$BASE16_SHELL/profile_helper.sh")" +#BASE16_SHELL="$HOME/.config/base16-shell/" +#[ -n "$PS1" ] && \ +# [ -s "$BASE16_SHELL/profile_helper.sh" ] && \ +# eval "$("$BASE16_SHELL/profile_helper.sh")" # fpath -fpath=($HOME/.zsh/zsh-completions/src $fpath) +#fpath=($HOME/.zsh/zsh-completions/src $fpath) # sourced scripts source $HOME/.aliases

@@ -73,6 +72,11 @@ # autojump

[[ -s /home/icy/.autojump/etc/profile.d/autojump.sh ]] && source /home/icy/.autojump/etc/profile.d/autojump.sh autoload -U compinit && compinit -u +# fff +f() { + fff "$@" + cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")" +} # emacsy binds bindkey -e

@@ -80,4 +84,3 @@ # end and home keys

bindkey "^[[1~" beginning-of-line bindkey "^[[4~" end-of-line -