~andrewzah/dotfiles

b97f1e72a7c866ed8e41423a137c3ea08cffdc47 — Andrew Zah 6 years ago c2552b6
Add new firefox tab page, lock, new confs
M .config/.kitty/kitty.conf => .config/.kitty/kitty.conf +2 -5
@@ 182,7 182,7 @@ window_border_width 1
window_margin_width 0

# The window padding (in pts) (blank area between the text and the window border)
window_padding_width 0
window_padding_width 1

# The color for the border of the active window
active_border_color #00ff00


@@ 234,7 234,7 @@ selection_foreground #000000
# The background for selections
selection_background #FFFACD

background #1d1f21
background #282828
background_opacity 1.0

color0 #282c34


@@ 318,7 318,6 @@ map ctrl+shift+page_up   scroll_page_up
map ctrl+shift+page_down scroll_page_down
map ctrl+shift+home      scroll_home
map ctrl+shift+end       scroll_end
map ctrl+shift+h         ibus engine hangul
# }}}

# Window management {{{


@@ 388,8 387,6 @@ map ctrl+shift+backspace restore_font_size
# map ctrl+shift+f7     set_font_size 20.5
# }}}

map ctrl+shift+alt ibus engine hangul

# Miscellaneous {{{
map ctrl+shift+f11      toggle_fullscreen
map ctrl+shift+u        input_unicode_character

M .i3/config => .i3/config +11 -2
@@ 18,7 18,7 @@ workspace $work1 output DVI-I-1
workspace $work2 output HDMI-0

# startup applications
exec_always feh --bg-scale ~/Pictures/Wallpapers/flower-right.jpg ~/Pictures/Wallpapers/flower-left.jpg
exec_always feh --bg-scale ~/Pictures/Wallpapers/deoksugung2_right.jpg ~/Pictures/Wallpapers/deoksugung2_left.jpg

## i3 Opts
hide_edge_borders both


@@ 62,7 62,12 @@ assign [class="Thunderbird"] $work3
# splits
bindsym $mod+h split h
bindsym $mod+v split v

# toggling view types
bindsym $mod+s layout stacking
bindsym $mod+l layout toggle split
bindsym $mod+f fullscreen toggle
bindsym $mod+g floating toggle


## i3 Session keys


@@ 72,9 77,13 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu

# General
bindsym $mod+Return exec termite
bindsym $mod+d exec dmenu_run
bindsym $mod+d exec rofi -show run -config /home/andrei/.config/rofi/config
bindsym $mod+w exec rofi -show window -config /home/andrei/.config/rofi/config
bindsym $mod+Shift+w kill

# Floating windows
for_window [class="Peek"] floating enable

bar {
  output DVI-I-1
  tray_output DVI-I-1

M .nvimrc => .nvimrc +9 -3
@@ 12,7 12,9 @@ Plug 'bhurlow/vim-parinfer', {'for': 'clojure' }
Plug 'c-brenn/phoenix.vim', { 'for': ['elixir'] }
Plug 'cespare/vim-toml', { 'for': 'toml' }
Plug 'chrisbra/NrrwRgn'
Plug 'chrisbra/csv.vim'
Plug 'elixir-editors/vim-elixir', { 'for': ['elixir'] }
Plug 'elorest/vim-slang', { 'for': 'slang' }
Plug 'fisadev/FixedTaskList.vim'
Plug 'gcmt/wildfire.vim'
Plug 'gerw/vim-HiLinkTrace'


@@ 185,7 187,7 @@ nnoremap <C-e> 3<C-e>
nnoremap <C-y> 3<C-y>

" clear search highlight
nnoremap <Leader>cl :nohl<CR><C-l>
nnoremap <Leader>co :nohl<CR><C-l>

vnoremap <Tab> >gv
vnoremap <S-Tab> <gv


@@ 226,13 228,14 @@ nnoremap <leader>pr :HLT!<cr>

""" Syntaxes """

" Autoset slang -> slim syntax highlighting
au BufRead,BufNewFile *.slang set filetype=slim
" Autoset slang syntax highlighting
au BufRead,BufNewFile *.slang set filetype=slang

" Autoset ecr -> erb syntax highlighting
au BufRead,BufNewFile *.ecr set filetype=erb



" Automatically make the dir if it doesn't exist on the machine.
silent !mkdir -p ~/.nvim/tmp >/dev/null 2>&1



@@ 243,6 246,9 @@ autocmd! FocusGained,BufEnter * checktime
" Clojure
" au Filetype clojure nmap <c-c><c-k> :Require<cr>  

" Formats a ledger entry. Untabs a visual selection, runs :Tab /<space><space>, and re-tabs
let @l = '�kB:tab�kb�kb�kbTab  /�kb�kb�kb /  
gv	:w
'

" ================ Persistent Undo ==================
" Keep undo history across sessions, by storing in file.
" Only works all the time.

A browser/new_tab.html => browser/new_tab.html +25 -0
@@ 0,0 1,25 @@
<h2> General </h2>
<ul>
  <li> <a href="https://lobste.rs"> Lobste.rs </a> </li>
  <li> <a href="https://news.ycombinator.com"> Hacker News </a> </li>
  <li> <a href="https://niu.moe"> Niu.moe </a> </li>
</ul>

<h2> Reddit </h2>
<ul>
  <li> <a href="https://reddit.com/r/korea"> /r/korea </a> </li>
  <li> <a href="https://reddit.com/r/korean"> /r/korean </a> </li>
  <li> <a href="https://reddit.com/r/tf2"> /r/tf2 </a> </li>
</ul>

<h2> Music </h2>
<ul>
  <li> <a href="https://open.spotify.com/view/gaming-releases"> Spotify VGM </a> </li>
</ul>

<h2> Slack </h2>
<ul>
  <li> <a href="https://elmlang.slack.com/messages/C192T0Q1E/"> ElmLang </a> </li>
  <li> <a href="https://catamorphiclabs.slack.com/messages"> Catamorphic Labs </a> </li>
  <li> <a href="https://peoplebest.slack.com/messages/C5DPYCDBM"> PeopleBest </a> </li>
</ul>

A gruvbox_palette.sh => gruvbox_palette.sh +119 -0
@@ 0,0 1,119 @@
#!/bin/sh

if [ "${TERM%%-*}" = "screen" ]; then
  if [ -n "$TMUX" ]; then
    printf "\033Ptmux;\033\033]4;236;rgb:32/30/2f\007\033\\"
    printf "\033Ptmux;\033\033]4;234;rgb:1d/20/21\007\033\\"

    printf "\033Ptmux;\033\033]4;235;rgb:28/28/28\007\033\\"
    printf "\033Ptmux;\033\033]4;237;rgb:3c/38/36\007\033\\"
    printf "\033Ptmux;\033\033]4;239;rgb:50/49/45\007\033\\"
    printf "\033Ptmux;\033\033]4;241;rgb:66/5c/54\007\033\\"
    printf "\033Ptmux;\033\033]4;243;rgb:7c/6f/64\007\033\\"

    printf "\033Ptmux;\033\033]4;244;rgb:92/83/74\007\033\\"
    printf "\033Ptmux;\033\033]4;245;rgb:92/83/74\007\033\\"

    printf "\033Ptmux;\033\033]4;228;rgb:f2/e5/bc\007\033\\"
    printf "\033Ptmux;\033\033]4;230;rgb:f9/f5/d7\007\033\\"

    printf "\033Ptmux;\033\033]4;229;rgb:fb/f1/c7\007\033\\"
    printf "\033Ptmux;\033\033]4;223;rgb:eb/db/b2\007\033\\"
    printf "\033Ptmux;\033\033]4;250;rgb:d5/c4/a1\007\033\\"
    printf "\033Ptmux;\033\033]4;248;rgb:bd/ae/93\007\033\\"
    printf "\033Ptmux;\033\033]4;246;rgb:a8/99/84\007\033\\"

    printf "\033Ptmux;\033\033]4;167;rgb:fb/49/34\007\033\\"
    printf "\033Ptmux;\033\033]4;142;rgb:b8/bb/26\007\033\\"
    printf "\033Ptmux;\033\033]4;214;rgb:fa/bd/2f\007\033\\"
    printf "\033Ptmux;\033\033]4;109;rgb:83/a5/98\007\033\\"
    printf "\033Ptmux;\033\033]4;175;rgb:d3/86/9b\007\033\\"
    printf "\033Ptmux;\033\033]4;108;rgb:8e/c0/7c\007\033\\"
    printf "\033Ptmux;\033\033]4;208;rgb:fe/80/19\007\033\\"

    printf "\033Ptmux;\033\033]4;88;rgb:9d/00/06\007\033\\"
    printf "\033Ptmux;\033\033]4;100;rgb:79/74/0e\007\033\\"
    printf "\033Ptmux;\033\033]4;136;rgb:b5/76/14\007\033\\"
    printf "\033Ptmux;\033\033]4;24;rgb:07/66/78\007\033\\"
    printf "\033Ptmux;\033\033]4;96;rgb:8f/3f/71\007\033\\"
    printf "\033Ptmux;\033\033]4;66;rgb:42/7b/58\007\033\\"
    printf "\033Ptmux;\033\033]4;130;rgb:af/3a/03\007\033\\"
  else
    printf "\033P\033]4;236;rgb:32/30/2f\007\033\\"
    printf "\033P\033]4;234;rgb:1d/20/21\007\033\\"

    printf "\033P\033]4;235;rgb:28/28/28\007\033\\"
    printf "\033P\033]4;237;rgb:3c/38/36\007\033\\"
    printf "\033P\033]4;239;rgb:50/49/45\007\033\\"
    printf "\033P\033]4;241;rgb:66/5c/54\007\033\\"
    printf "\033P\033]4;243;rgb:7c/6f/64\007\033\\"

    printf "\033P\033]4;244;rgb:92/83/74\007\033\\"
    printf "\033P\033]4;245;rgb:92/83/74\007\033\\"

    printf "\033P\033]4;228;rgb:f2/e5/bc\007\033\\"
    printf "\033P\033]4;230;rgb:f9/f5/d7\007\033\\"

    printf "\033P\033]4;229;rgb:fb/f1/c7\007\033\\"
    printf "\033P\033]4;223;rgb:eb/db/b2\007\033\\"
    printf "\033P\033]4;250;rgb:d5/c4/a1\007\033\\"
    printf "\033P\033]4;248;rgb:bd/ae/93\007\033\\"
    printf "\033P\033]4;246;rgb:a8/99/84\007\033\\"

    printf "\033P\033]4;167;rgb:fb/49/34\007\033\\"
    printf "\033P\033]4;142;rgb:b8/bb/26\007\033\\"
    printf "\033P\033]4;214;rgb:fa/bd/2f\007\033\\"
    printf "\033P\033]4;109;rgb:83/a5/98\007\033\\"
    printf "\033P\033]4;175;rgb:d3/86/9b\007\033\\"
    printf "\033P\033]4;108;rgb:8e/c0/7c\007\033\\"
    printf "\033P\033]4;208;rgb:fe/80/19\007\033\\"

    printf "\033P\033]4;88;rgb:9d/00/06\007\033\\"
    printf "\033P\033]4;100;rgb:79/74/0e\007\033\\"
    printf "\033P\033]4;136;rgb:b5/76/14\007\033\\"
    printf "\033P\033]4;24;rgb:07/66/78\007\033\\"
    printf "\033P\033]4;96;rgb:8f/3f/71\007\033\\"
    printf "\033P\033]4;66;rgb:42/7b/58\007\033\\"
    printf "\033P\033]4;130;rgb:af/3a/03\007\033\\"
  fi

elif [ "$TERM" != "linux" ] && [ "$TERM" != "vt100" ] && [ "$TERM" != "vt220" ]; then

  printf "\033]4;236;rgb:32/30/2f\033\\"
  printf "\033]4;234;rgb:1d/20/21\033\\"

  printf "\033]4;235;rgb:28/28/28\033\\"
  printf "\033]4;237;rgb:3c/38/36\033\\"
  printf "\033]4;239;rgb:50/49/45\033\\"
  printf "\033]4;241;rgb:66/5c/54\033\\"
  printf "\033]4;243;rgb:7c/6f/64\033\\"

  printf "\033]4;244;rgb:92/83/74\033\\"
  printf "\033]4;245;rgb:92/83/74\033\\"

  printf "\033]4;228;rgb:f2/e5/bc\033\\"
  printf "\033]4;230;rgb:f9/f5/d7\033\\"

  printf "\033]4;229;rgb:fb/f1/c7\033\\"
  printf "\033]4;223;rgb:eb/db/b2\033\\"
  printf "\033]4;250;rgb:d5/c4/a1\033\\"
  printf "\033]4;248;rgb:bd/ae/93\033\\"
  printf "\033]4;246;rgb:a8/99/84\033\\"

  printf "\033]4;167;rgb:fb/49/34\033\\"
  printf "\033]4;142;rgb:b8/bb/26\033\\"
  printf "\033]4;214;rgb:fa/bd/2f\033\\"
  printf "\033]4;109;rgb:83/a5/98\033\\"
  printf "\033]4;175;rgb:d3/86/9b\033\\"
  printf "\033]4;108;rgb:8e/c0/7c\033\\"
  printf "\033]4;208;rgb:fe/80/19\033\\"

  printf "\033]4;88;rgb:9d/00/06\033\\"
  printf "\033]4;100;rgb:79/74/0e\033\\"
  printf "\033]4;136;rgb:b5/76/14\033\\"
  printf "\033]4;24;rgb:07/66/78\033\\"
  printf "\033]4;96;rgb:8f/3f/71\033\\"
  printf "\033]4;66;rgb:42/7b/58\033\\"
  printf "\033]4;130;rgb:af/3a/03\033\\"
fi


M nvim/after/syntax/elm.vim => nvim/after/syntax/elm.vim +10 -10
@@ 27,24 27,24 @@
"   - 1.0.1  Update pipe operator symbol and add few extra operator overrides
"   - 1.0.0  Initial release - just override pipe operator
"
if exists('g:no_elm_conceal') || !has('conceal') || &enc != 'utf-8'
  finish
endif
"if exists('g:no_elm_conceal') || !has('conceal') || &enc != 'utf-8'
  "finish
"endif
"
" if !has('conceal')
"     finish
" endif

syntax match exNiceOperator "|>" conceal cchar=▷
"syntax match exNiceOperator "|>" conceal cchar=▷
" syntax match exNiceOperator "<-" conceal cchar=←
syntax match exNiceOperator "->" conceal cchar=→
"syntax match exNiceOperator "->" conceal cchar=→
" syntax match exNiceOperator "==" conceal cchar=≡
" syntax match exNiceOperator "!=" conceal cchar=≢
syntax match exNiceOperator "<=" conceal cchar=≤
syntax match exNiceOperator ">=" conceal cchar=≥
"syntax match exNiceOperator "<=" conceal cchar=≤
"syntax match exNiceOperator ">=" conceal cchar=≥

hi link exNiceOperator Operator
hi! link Conceal Operator
setlocal conceallevel=2
"hi link exNiceOperator Operator
"hi! link Conceal Operator
"setlocal conceallevel=2



M scripts/lock => scripts/lock +1 -1
@@ 1,4 1,4 @@
#!/bin/bash
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
i3lock -i /tmp/screenshotblur.png -fe
/home/andrei/.config/i3/i3lock-fancy-multimonitor/lock -n -p -b=0x5

M zsh/exports.zsh => zsh/exports.zsh +4 -0
@@ 3,6 3,10 @@
# ZSH 
export UPDATE_ZSH_DAYS=1

# MPW
MPW_FULLNAME="Andrew Zah"
MPW_FORMAT='none'

# Custom
########