From 0598cceace0c8cff642d6e82aa6b7239e454e155 Mon Sep 17 00:00:00 2001 From: Carolyn Saunders Date: Thu, 3 May 2018 19:49:14 -0700 Subject: [PATCH] Updated rofi, sxhkd, and vim configs --- .config/sxhkd/sxhkdrc | 28 +++- .config/wal/templates/colors-rofi-dark.rasi | 161 ++++++++++++++++++++ .vimrc | 57 +++++-- 3 files changed, 228 insertions(+), 18 deletions(-) create mode 100644 .config/wal/templates/colors-rofi-dark.rasi diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 2e31066..0b2aa1f 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,10 +1,14 @@ +# +# ______ __ __ __ __ __ __ _____ ______ ______ +# /\ ___\ /\_\_\_\ /\ \_\ \ /\ \/ / /\ __-. /\ == \ /\ ___\ +# \ \___ \ \/_/\_\/_ \ \ __ \ \ \ _"-. \ \ \/\ \ \ \ __< \ \ \____ +# \/\_____\ /\_\/\_\ \ \_\ \_\ \ \_\ \_\ \ \____- \ \_\ \_\ \ \_____\ +# \/_____/ \/_/\/_/ \/_/\/_/ \/_/\/_/ \/____/ \/_/ /_/ \/_____/ + + # increase / decrease volume XF86Audio{Raise,Lower}Volume - amixer -q sset Master {2%+,2%-} unmute - -# Mute volume -XF86AudioMute - amixer -q sset Master toggle + mixerctl outputs.master={+10\,+10,-10\,-10} # brightness XF86MonBrightness{Up,Down} @@ -13,6 +17,9 @@ XF86MonBrightness{Up,Down} super + r rofi -show run +super + w + rofi -show window + super + Return urxvtc @@ -20,4 +27,13 @@ super + p rofi-pass super + control + q - pkill xwait + pkill xinit + +super + shift + s + slock + +super + s + rofi -show ssh + +super + o + ~/.scripts/youtube-rofi diff --git a/.config/wal/templates/colors-rofi-dark.rasi b/.config/wal/templates/colors-rofi-dark.rasi new file mode 100644 index 0000000..40633b1 --- /dev/null +++ b/.config/wal/templates/colors-rofi-dark.rasi @@ -0,0 +1,161 @@ +* {{ + active-background: {color2}; + active-foreground: @foreground; + normal-background: @background; + normal-foreground: @foreground; + urgent-background: {color1}; + urgent-foreground: @foreground; + + alternate-active-background: @background; + alternate-active-foreground: @foreground; + alternate-normal-background: @background; + alternate-normal-foreground: @foreground; + alternate-urgent-background: @background; + alternate-urgent-foreground: @foreground; + + selected-active-background: {color1}; + selected-active-foreground: @background; + selected-normal-background: {color2}; + selected-normal-foreground: @background; + selected-urgent-background: {color3}; + selected-urgent-foreground: @background; + + background-color: @background; + background: {background}; + foreground: {foreground}; + border-color: @background; + spacing: 2; +}} + +#window {{ + background-color: @background; + border: 0; + padding: 2.5ch; +}} + +#mainbox {{ + border: 0; + padding: 0; +}} + +#message {{ + border: 2px 0px 0px; + border-color: @border-color; + padding: 1px; +}} + +#textbox {{ + text-color: @foreground; +}} + +inputbar {{ + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +}} + +textbox-prompt-colon {{ + expand: false; + str: ":"; + margin: 0px 0.3em 0em 0em; + text-color: @normal-foreground; +}} + +#listview {{ + fixed-height: 0; + border: 2px 0px 0px; + border-color: @border-color; + spacing: 2px; + scrollbar: true; + padding: 2px 0px 0px; +}} + +#element {{ + border: 0; + padding: 1px; +}} + +#element.normal.normal {{ + background-color: @normal-background; + text-color: @normal-foreground; +}} + +#element.normal.urgent {{ + background-color: @urgent-background; + text-color: @urgent-foreground; +}} + +#element.normal.active {{ + background-color: @active-background; + text-color: @active-foreground; +}} + +#element.selected.normal {{ + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +}} + +#element.selected.urgent {{ + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +}} + +#element.selected.active {{ + background-color: @selected-active-background; + text-color: @selected-active-foreground; +}} + +#element.alternate.normal {{ + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; +}} + +#element.alternate.urgent {{ + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; +}} + +#element.alternate.active {{ + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; +}} + +#scrollbar {{ + width: 4px; + border: 0; + handle-width: 8px; + padding: 0; +}} + +#sidebar {{ + border: 2px 0px 0px; + border-color: @border-color; +}} + +#button {{ + text-color: @normal-foreground; +}} + +#button.selected {{ + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +}} + +#inputbar {{ + spacing: 0; + text-color: @normal-foreground; + padding: 1px; +}} + +#case-indicator {{ + spacing: 0; + text-color: @normal-foreground; +}} + +#entry {{ + spacing: 0; + text-color: @normal-foreground; +}} + +#prompt {{ + spacing: 0; + text-color: @normal-foreground; +}} diff --git a/.vimrc b/.vimrc index 9c53e3c..f0cfa83 100644 --- a/.vimrc +++ b/.vimrc @@ -1,17 +1,24 @@ +" __ __ __ __ __ ______ ______ +" /\ \ / / /\ \ /\ "-./ \ /\ == \ /\ ___\ +" \ \ \'/ \ \ \ \ \ \-./\ \ \ \ __< \ \ \____ +" \ \__| \ \_\ \ \_\ \ \_\ \ \_\ \_\ \ \_____\ +" \/_/ \/_/ \/_/ \/_/ \/_/ /_/ \/_____/ + call plug#begin('~/.vim/plugged') Plug 'tpope/vim-sensible' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-vinegar' -Plug 'lervag/vimtex' Plug 'Shougo/deoplete.nvim' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' Plug 'w0rp/ale' -Plug 'lervag/vimtex' +Plug 'lervag/vimtex', { 'for' : 'tex' } Plug 'ervandew/supertab' Plug 'dylanaraps/wal.vim' Plug 'airblade/vim-gitgutter' +Plug '~/.fzf' +Plug 'junegunn/fzf.vim' call plug#end() @@ -115,17 +122,43 @@ hi User9 ctermfg=007 """" LaTeX -let g:vimtex_complete_enabled = 1 -if !exists('g:deoplete#omni#input_patterns') - let g:deoplete#omni#input_patterns = {} -endif -let g:deoplete#omni#input_patterns.tex = g:vimtex#re#deoplete -let g:vimtex_compiler_latexmk = { - \ 'callback': 0, - \ 'backend' : 'jobs' - \} -nmap lw :VimtexCountWords +autocmd FileType tex call s:latex_config() +function! s:latex_config() + let g:tex_fast = "cMmprs" + let g:tex_flavor = "latex" + let g:tex_fold_enabled = 0 + let g:tex_comment_nospell = 1 + setlocal nocursorline + let g:tex_conceal = "" + let g:vimtex_complete_enabled = 1 + let g:vimtex_view_automatic = 1 + let g:vimtex_compiler_progname = 'latexmk' + let g:vimtex_view_method = 'zathura' + if !exists('g:deoplete#omni#input_patterns') + let g:deoplete#omni#input_patterns = {} + endif + let g:deoplete#omni#input_patterns.tex = g:vimtex#re#deoplete + let g:vimtex_compiler_latexmk = { + \ 'callback': 1, + \ 'backend' : 'jobs' + \} + nmap lw :VimtexCountWords +endfunction """" Colors colorscheme wal highlight SignColumn ctermbg=black + +"""" fzf +command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'rg --column --line-number --no-heading --color=always '.shellescape(), 1, + \ 0 ? fzf#vim#with_preview('up:60%') + \ : fzf#vim#with_preview('right:50%:hidden', '?'), + \ 0) + +"""" Splits +nnoremap +nnoremap +nnoremap +nnoremap