diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..38092be --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,99 @@ +" randomuser's vimrc + +" sacred nnoremaps {{{ +nnoremap ; : +nnoremap : ; +" }}} +" misc settings {{{ +let mapleader=" " +set nocompatible wildmenu path+=** +syntax enable +filetype plugin on +if has('nvim') + nmap s ;source ~/.config/nvim/init.vim +else + nmap s ;source ~/.vimrc +endif +" }}} +" displays {{{ +set number +set numberwidth=3 +set statusline=%#PmenuSel#%y%m\ %.20f%<%=b%02n:l%03l:c%03c +" }}} +" netrw {{{ +let g:netrw_banner=0 +let g:netrw_liststyle=3 +let g:netrw_winsize=15 +let g:netrw_browse_split=1 +nmap oe :Vexplore +" }}} +" file opening {{{ +nmap ob ;edit ~/.bashrc +if has('nvim') + nmap ov ;edit ~/.config/nvim/init.vim +else + nmap ov ;edit ~/.vimrc +endif +nmap ow ;edit ~/.config/vimb/config +nmap os ;edit ~/.config/vimb/style.css +nmap oz ;edit ~/.config/zathura/zathurarc +nmap ot ;edit ~/.config/bspwm/bspwmrc +nmap ok ;edit ~/.config/sxhkd/sxhkdrc + +" helpfiles +nmap he ;help +" }}} +" file execution {{{ +" makefiles {{{ +nmap mm ;!make +nmap mc ;!make clean +nmap mf ;!make "%" +nmap mi ;!make install +" }}} +" shell script {{{ +nmap ss ;!sh "%" +nmap sb ;!bash "%" +nmap sz ;!zsh "%" +" }}} +" }}} +" tab & fold settings {{{ + +" hacky exemption thing +" make sure to not populate this too much +let exemptions = ["gophermap", "Makefile"] +let tmp = 0 +for exemption in exemptions + " does this match the current file name + if expand("%:t") != exemption + let tmp = tmp + 1 + endif +endfor +" does the file match? +if tmp != 0 + set expandtab + set tabstop=2 + set shiftwidth=2 + retab +endif +set list +set listchars=eol:`,tab:>-,trail:~,extends:<,precedes:> +set foldmethod=marker +" }}} +" buffers & tabs {{{ +nmap bn ;bn +nmap bp ;bp +nmap bc ;clo + +nmap tn ;tabnext +nmap tp ;tabprev +nmap t1 ;tabfirst +nmap tc ;tabc +nmap tt ;tabnew +" }}} +" information {{{ +nmap iw ;!curl -s http://wttr.in/?0qT +nmap id ;!date + +nmap se ;setlocal spell spelllang=en_us +nmap sd ;setlocal nospell +" }}} diff --git a/nvim/spell/en.utf-8.add b/nvim/spell/en.utf-8.add new file mode 100644 index 0000000..e3991ec --- /dev/null +++ b/nvim/spell/en.utf-8.add @@ -0,0 +1,16 @@ +Lexile +Macaluso +Mazzoni +ELA +Pixar +HDMI +repos +hax0ring +vimrc +SSN +da +api +urm +flappy +hundered +chromebook diff --git a/nvim/spell/en.utf-8.add.spl b/nvim/spell/en.utf-8.add.spl new file mode 100644 index 0000000..9fcce86 Binary files /dev/null and b/nvim/spell/en.utf-8.add.spl differ diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc new file mode 100644 index 0000000..8a6ffe9 --- /dev/null +++ b/sxhkd/sxhkdrc @@ -0,0 +1,33 @@ +# rndusr's sxhkdrc + +# program launching + sxhkd reload + +super + Return + st + +super + d + dmenu_run + +super + r + pkill -USR1 -x sxhkd + bspc wm -r + +super + w + wall + +# bspwm + +super + q + bspc node -c + +super + e + bspc quit 0 + +super + {_,shift + }{h,j,k,l} + bspc node -{f,s} {west,south,north,east} + +super + {_,shift + } {1-9,0} + bspc {desktop -f,node -d} '^{1-9,10}' + +super + {t,f,s} + bspc node -t {tiled,floating,fullscreen} diff --git a/vimb/config b/vimb/config new file mode 100644 index 0000000..26f7e4b --- /dev/null +++ b/vimb/config @@ -0,0 +1,71 @@ +# general settings +set cookie-accept=never +set header=DNT=1,User-Agent +set hint-keys=asdfhjkl +set hint-keys-same-length=true +set html5-database=false +set html5-local-storage=false +set offline-cache=false +set prevent-newwindow=true +set plugins=false +set media-playback-requires-user-gesture=true +set geolocation=never +set hardware-acceleration-policy=always +set scripts=false +set webinspector=true +set xss-auditor=true +set strict-ssl=off +set incsearch=true +set javascript-can-access-clipboard=false +set javascript-can-open-windows-automatically=false +set stylesheet=true +set input-autohide=true + +# keybinds +nnoremap : ; +nnoremap ; : + +nmap je ;set scripts=on +nmap jd ;set scripts=off +nmap jt ;set scripts! + +nmap se ;source ~/.config/vimb/school +nmap sd ;source ~/.config/vimb/config + +# browser themeing +set status-css=color: #ccbc8e; background-color: #161510; font: Fantasque Sans Mono; font-size: 14px; +set status-ssl-css=color: #727a18; background-color: #161510; font: Fantasque Sans Mono; font-size: 14px; +set status-ssl-invalid-css=color: #8e8463; background-color: #161510; font: Fantasque Sans Mono; font-size: 14px; + +set input-css=color: #ccbc8e; background-color: #161510; font: Fantasque Sans Mono; font-size: 14px; +set input-error-css=color: #8e8463; background-color: #161510; font: Fantasque Sans Mono; font-size: 14px; + +set completion-css=color: #ccbc8e; background-color: #161510; font: Fantasque Sans Mono; font-size: 14px; +set completion-selected-css=color: #161510; background-color: #ccbc8e; font: Fantasque Sans Mono; font-size: 14px; +set completion-hover-css=color: #161510; background-color: #ccbc8e; font: Fantasque Sans Mono; font-size: 14px; + +# webpage css and stuff (monospace, monospace everywhere!) +set dark-mode=true +set default-font=Fantasque Sans Mono +set font-size=14 + +set monospace-font=Fantasque Sans Mono +set monospace-font-size=14 + +set sans-serif-font=Fantasque Sans Mono +set serif-font=Fantasque Sans Mono + +# autocommands +aug tilde + au LoadCommitted http{s,}://tildegit.org/*,http{s,}://tilde.zone/* set html5-database=true|set html5-local-storage=true|set scripts=true|set cookie-accept=always +aug end +aug site + au LoadCommitted http{s,}://{www.,}vultr.com/*,http{s,}://{www.,}namecheap.com/* set html5-database=true|set html5-local-storage=false|set scripts=true|set cookie-accept=always +aug end + +# automatic gemini/gopher -> http handling +# be forewarned: veyr hacky + +aug underground + au LoadStarting {gemini,gopher}://* :shellcmd! urlhandle $VIMB_URI +aug end diff --git a/vimb/school b/vimb/school new file mode 100644 index 0000000..75ea8ba --- /dev/null +++ b/vimb/school @@ -0,0 +1,13 @@ +# general settings +set cookie-accept=always +set html5-database=true +set html5-local-storage=true +set plugins=true +set geolocation=ask +set scripts=true +set javascript-can-access-clipboard=true + +# browser themeing +set status-css=color: #ccbc8e; background-color: #cc3214; font: Fantasque Sans Mono; font-size: 14px; +set status-ssl-css=color: #727a18; background-color: #cc3214; font: Fantasque Sans Mono; font-size: 14px; +set status-ssl-invalid-css=color: #8e8463; background-color: #cc3214; font: Fantasque Sans Mono; font-size: 14px; diff --git a/zathura/zathurarc b/zathura/zathurarc new file mode 100644 index 0000000..2606052 --- /dev/null +++ b/zathura/zathurarc @@ -0,0 +1,12 @@ +set adjust-open "best-fit" +set pages-per-row 1 + +set scroll-page-aware "true" +set zoom-min 10 + +set font "Fantasque Sans Mono 11" + +set recolor "true" +set recolor-reverse-video "true" +set recolor-lightcolor "#161510" +set recolor-darkcolor "#ccbc8e"