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
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

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

57
.vimrc
View File

@ -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 <leader>lw :VimtexCountWords<CR>
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 <leader>lw :VimtexCountWords<CR>
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(<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>