Updated rofi, sxhkd, and vim configs

This commit is contained in:
Carolyn Saunders 2018-05-03 19:49:14 -07:00
parent c2b0b6e56f
commit 0598cceace
No known key found for this signature in database
GPG key ID: 2B055CCC80E7F438
3 changed files with 228 additions and 18 deletions

View file

@ -1,10 +1,14 @@
#
# ______ __ __ __ __ __ __ _____ ______ ______
# /\ ___\ /\_\_\_\ /\ \_\ \ /\ \/ / /\ __-. /\ == \ /\ ___\
# \ \___ \ \/_/\_\/_ \ \ __ \ \ \ _"-. \ \ \/\ \ \ \ __< \ \ \____
# \/\_____\ /\_\/\_\ \ \_\ \_\ \ \_\ \_\ \ \____- \ \_\ \_\ \ \_____\
# \/_____/ \/_/\/_/ \/_/\/_/ \/_/\/_/ \/____/ \/_/ /_/ \/_____/
# increase / decrease volume # increase / decrease volume
XF86Audio{Raise,Lower}Volume XF86Audio{Raise,Lower}Volume
amixer -q sset Master {2%+,2%-} unmute mixerctl outputs.master={+10\,+10,-10\,-10}
# Mute volume
XF86AudioMute
amixer -q sset Master toggle
# brightness # brightness
XF86MonBrightness{Up,Down} XF86MonBrightness{Up,Down}
@ -13,6 +17,9 @@ XF86MonBrightness{Up,Down}
super + r super + r
rofi -show run rofi -show run
super + w
rofi -show window
super + Return super + Return
urxvtc urxvtc
@ -20,4 +27,13 @@ super + p
rofi-pass rofi-pass
super + control + q super + control + q
pkill xwait pkill xinit
super + shift + s
slock
super + s
rofi -show ssh
super + o
~/.scripts/youtube-rofi

View file

@ -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;
}}

51
.vimrc
View file

@ -1,17 +1,24 @@
" __ __ __ __ __ ______ ______
" /\ \ / / /\ \ /\ "-./ \ /\ == \ /\ ___\
" \ \ \'/ \ \ \ \ \ \-./\ \ \ \ __< \ \ \____
" \ \__| \ \_\ \ \_\ \ \_\ \ \_\ \_\ \ \_____\
" \/_/ \/_/ \/_/ \/_/ \/_/ /_/ \/_____/
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible' Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-vinegar' Plug 'tpope/vim-vinegar'
Plug 'lervag/vimtex'
Plug 'Shougo/deoplete.nvim' Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp' Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc' Plug 'roxma/vim-hug-neovim-rpc'
Plug 'w0rp/ale' Plug 'w0rp/ale'
Plug 'lervag/vimtex' Plug 'lervag/vimtex', { 'for' : 'tex' }
Plug 'ervandew/supertab' Plug 'ervandew/supertab'
Plug 'dylanaraps/wal.vim' Plug 'dylanaraps/wal.vim'
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug '~/.fzf'
Plug 'junegunn/fzf.vim'
call plug#end() call plug#end()
@ -115,17 +122,43 @@ hi User9 ctermfg=007
"""" LaTeX """" LaTeX
let g:vimtex_complete_enabled = 1 autocmd FileType tex call s:latex_config()
if !exists('g:deoplete#omni#input_patterns') 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 = {} let g:deoplete#omni#input_patterns = {}
endif endif
let g:deoplete#omni#input_patterns.tex = g:vimtex#re#deoplete let g:deoplete#omni#input_patterns.tex = g:vimtex#re#deoplete
let g:vimtex_compiler_latexmk = { let g:vimtex_compiler_latexmk = {
\ 'callback': 0, \ 'callback': 1,
\ 'backend' : 'jobs' \ 'backend' : 'jobs'
\} \}
nmap <leader>lw :VimtexCountWords<CR> nmap <leader>lw :VimtexCountWords<CR>
endfunction
"""" Colors """" Colors
colorscheme wal colorscheme wal
highlight SignColumn ctermbg=black highlight SignColumn ctermbg=black
"""" fzf
command! -bang -nargs=* Rg
\ call fzf#vim#grep(
\ 'rg --column --line-number --no-heading --color=always '.shellescape(<q-args>), 1,
\ <bang>0 ? fzf#vim#with_preview('up:60%')
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ <bang>0)
"""" Splits
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>