las modificaciones de siempre y acomodar un par de cosas
This commit is contained in:
parent
b09dabd179
commit
980b988fb5
|
@ -7,5 +7,6 @@ dunst -conf ~/.config/dunst/dunstrc &
|
|||
sleep 1s
|
||||
mpd &
|
||||
unclutter &
|
||||
xss-lock -- exeflock4 &
|
||||
#xss-lock -- exeflock4 &
|
||||
xfce4-power-manager &
|
||||
urxvtd -q -o -f
|
||||
|
|
|
@ -69,13 +69,14 @@ bspc rule -a Nm-connection-editor state=floating
|
|||
bspc rule -a Godot state=floating
|
||||
bspc rule -a Pinentry state=floating
|
||||
bspc rule -a URxvt:flota state=floating
|
||||
bspc rule -a System-config-printer.py state=floating
|
||||
|
||||
# Otros
|
||||
bspc rule -a Zathura state=tiled
|
||||
bspc rule -a Oblogout state=fullscreen, layer=above
|
||||
|
||||
bspc config external_rules_command "$HOME/.config/bspwm/external_rules.sh"
|
||||
rbspwm &
|
||||
2bspwm &
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "$HOME/.config/bspwm/autostart"
|
||||
|
|
|
@ -1,14 +1,27 @@
|
|||
backend = "xrender";
|
||||
backend = "glx";
|
||||
#backend = "xrender";
|
||||
paint-on-overlay = true;
|
||||
vsync = "opengl";
|
||||
vsync = "none";
|
||||
#vsync = "opengl";
|
||||
refresh-rate = 0;
|
||||
glx-copy-from-front = false;
|
||||
glx-swap-method = "undefined";
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
inactive-opacity-override = false;
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = false;
|
||||
unredir-if-possible = true;
|
||||
use-ewmh-active-win = true;
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
dbe = false;
|
||||
shadow-ignore-shaped = false;
|
||||
|
||||
shadow = true;
|
||||
shadow-radius = 0;
|
||||
shadow-offset-x = 2;
|
||||
shadow-offset-y = 2;
|
||||
shadow-offset-x = 2.5;
|
||||
shadow-offset-y = 2.5;
|
||||
shadow-opacity = 1;
|
||||
no-dock-shadow = true;
|
||||
no-dnd-shadow = true;
|
||||
|
@ -21,26 +34,16 @@ inactive-opacity = 0.85;
|
|||
inactive-dim = 0.2;
|
||||
alpha-step = 0.06;
|
||||
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
inactive-opacity-override = false;
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = true;
|
||||
use-ewmh-active-win = true;
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
dbe = false;
|
||||
shadow-ignore-shaped = false;
|
||||
|
||||
fading = true;
|
||||
fading = false;
|
||||
fade-delta = 15;
|
||||
fade-in-step = 0.3;
|
||||
fade-out-step = 0.3;
|
||||
|
||||
blur-background = true;
|
||||
blur-background-frame = false;
|
||||
blur-background-fixed = false;
|
||||
blur-kern = "3x3box";
|
||||
blur-background-frame = true;
|
||||
blur-background-fixed = true;
|
||||
blur-method = "kawase"
|
||||
#blur-kern = "3x3box";
|
||||
|
||||
opacity-rule = [
|
||||
"20:class_g = 'Bspwm' && class_i = 'presel_feedback'",
|
||||
|
@ -74,6 +77,7 @@ opacity-exclude = [
|
|||
"! name~=''",
|
||||
"class_g ?= 'Xfce4-power-manager'",
|
||||
"class_g = 'slop'",
|
||||
"class_g = 'Rofi'",
|
||||
"class_g = 'maim'",
|
||||
];
|
||||
|
||||
|
@ -82,7 +86,7 @@ blur-background-exclude = [
|
|||
"class_g = 'maim'",
|
||||
"class_g = 'Rofi'",
|
||||
# "class_g = 'Termite'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
# "_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
blur-background-frame-exclude = [
|
||||
|
|
|
@ -7,3 +7,5 @@ highlight clear SpellRare
|
|||
highlight SpellRare term=underline cterm=underline
|
||||
highlight clear SpellLocal
|
||||
highlight SpellLocal term=underline cterm=underline
|
||||
|
||||
let b:ale_linters = ['proselint']
|
||||
|
|
|
@ -23,11 +23,13 @@ function! Prose()
|
|||
iabbrev <buffer> >> »
|
||||
endfunction
|
||||
|
||||
augroup pystuff
|
||||
augroup mdownstuff
|
||||
autocmd!
|
||||
autocmd BufEnter call Prose()
|
||||
autocmd BufNewFile *.md call Prose()
|
||||
augroup END
|
||||
|
||||
let b:ale_linters = ['proselint']
|
||||
|
||||
set statusline=%<%f\ %h%m%r%w\ \ %{PencilMode()}\ %=\ col\ %c%V\ \ line\ %l\,%L\ %P
|
||||
set rulerformat=%-12.(%l,%c%V%)%{PencilMode()}\ %P
|
|
@ -20,15 +20,13 @@ augroup pystuff
|
|||
augroup END
|
||||
|
||||
nnoremap <buffer> <localleader>y :0,$!yapf<Cr>
|
||||
nnoremap <buffer> <LocalLeader>i :!isort %<CR><CR>
|
||||
nnoremap <buffer> <silent> <LocalLeader>= :ALEFix<CR>
|
||||
nnoremap <buffer> <localleader>c I#<esc>
|
||||
|
||||
let g:LanguageClient_autoStart = 1
|
||||
|
||||
let g:ale_sign_column_always = 1
|
||||
let g:ale_set_loclist = 0
|
||||
let g:ale_set_quickfix = 1
|
||||
let g:ale_sign_error = '✖︎ '
|
||||
let g:ale_sign_warning = '> '
|
||||
let g:ale_python_mypy_options = "--ignore-missing-imports"
|
||||
let g:ale_python_pylint_options = "--disable=C"
|
||||
let g:ale_python_flake8_options = "--ignore=E221"
|
||||
|
@ -39,8 +37,14 @@ let g:ale_lint_on_enter = 1
|
|||
let g:ale_lint_on_save = 1
|
||||
|
||||
" Check Python files with flake8 and pylint.
|
||||
let b:ale_linters = ['flake8', 'pylint']
|
||||
let b:ale_linters = ['pyls', 'flake8', 'pylint']
|
||||
" Fix Python files with autopep8 and yapf.
|
||||
let b:ale_fixers = ['autopep8', 'yapf']
|
||||
let b:ale_fixers = [
|
||||
\ 'autopep8',
|
||||
\ 'remove_trailing_lines',
|
||||
\ 'isort',
|
||||
"\ 'ale#fixers#generic_python#BreakUpLongLines',
|
||||
\ 'yapf',
|
||||
\]
|
||||
" Disable warnings about trailing whitespace for Python files.
|
||||
let b:ale_warn_about_trailing_whitespace = 0
|
|
@ -30,70 +30,17 @@ let g:vimtex_view_method = 'zathura'
|
|||
let g:vimtex_quickfix_mode = 0 " do not open the quickfix window automatically
|
||||
|
||||
" deoplete completion for LaTeX
|
||||
"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
|
||||
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
|
||||
|
||||
augroup texsave
|
||||
autocmd!
|
||||
autocmd CursorHold,CursorHoldI * silent! wall
|
||||
augroup END
|
||||
|
||||
au InsertEnter call ncm2#enable_for_buffer()
|
||||
au Filetype tex call ncm2#register_source({
|
||||
\ 'name' : 'vimtex-cmds',
|
||||
\ 'priority': 8,
|
||||
\ 'complete_length': -1,
|
||||
\ 'scope': ['tex'],
|
||||
\ 'matcher': {'name': 'prefix', 'key': 'word'},
|
||||
\ 'word_pattern': '\w+',
|
||||
\ 'complete_pattern': g:vimtex#re#ncm2#cmds,
|
||||
\ 'on_complete': ['ncm2#on_complete#omni', 'vimtex#complete#omnifunc'],
|
||||
\ })
|
||||
au Filetype tex call ncm2#register_source({
|
||||
\ 'name' : 'vimtex-labels',
|
||||
\ 'priority': 8,
|
||||
\ 'complete_length': -1,
|
||||
\ 'scope': ['tex'],
|
||||
\ 'matcher': {'name': 'combine',
|
||||
\ 'matchers': [
|
||||
\ {'name': 'substr', 'key': 'word'},
|
||||
\ {'name': 'substr', 'key': 'menu'},
|
||||
\ ]},
|
||||
\ 'word_pattern': '\w+',
|
||||
\ 'complete_pattern': g:vimtex#re#ncm2#labels,
|
||||
\ 'on_complete': ['ncm2#on_complete#omni', 'vimtex#complete#omnifunc'],
|
||||
\ })
|
||||
au Filetype tex call ncm2#register_source({
|
||||
\ 'name' : 'vimtex-files',
|
||||
\ 'priority': 8,
|
||||
\ 'complete_length': -1,
|
||||
\ 'scope': ['tex'],
|
||||
\ 'matcher': {'name': 'combine',
|
||||
\ 'matchers': [
|
||||
\ {'name': 'abbrfuzzy', 'key': 'word'},
|
||||
\ {'name': 'abbrfuzzy', 'key': 'abbr'},
|
||||
\ ]},
|
||||
\ 'word_pattern': '\w+',
|
||||
\ 'complete_pattern': g:vimtex#re#ncm2#files,
|
||||
\ 'on_complete': ['ncm2#on_complete#omni', 'vimtex#complete#omnifunc'],
|
||||
\ })
|
||||
au Filetype tex call ncm2#register_source({
|
||||
\ 'name' : 'bibtex',
|
||||
\ 'priority': 8,
|
||||
\ 'complete_length': -1,
|
||||
\ 'scope': ['tex'],
|
||||
\ 'matcher': {'name': 'combine',
|
||||
\ 'matchers': [
|
||||
\ {'name': 'prefix', 'key': 'word'},
|
||||
\ {'name': 'abbrfuzzy', 'key': 'abbr'},
|
||||
\ {'name': 'abbrfuzzy', 'key': 'menu'},
|
||||
\ ]},
|
||||
\ 'word_pattern': '\w+',
|
||||
\ 'complete_pattern': g:vimtex#re#ncm2#bibtex,
|
||||
\ 'on_complete': ['ncm2#on_complete#omni', 'vimtex#complete#omnifunc'],
|
||||
\ })
|
||||
let b:ale_linters = ['chktex', 'proselint']
|
||||
|
||||
"command Compile normal! :52 split <cr><c-w>j:terminal latexmk %<CR>G
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ setl sw=4
|
|||
setl noet
|
||||
setl tw=90
|
||||
|
||||
let b:ale_linters = ['shell']
|
||||
|
||||
if !exists("b:sh_indent_options")
|
||||
let b:sh_indent_options = {}
|
||||
endif
|
||||
|
|
|
@ -25,6 +25,10 @@ endif
|
|||
" Plugins {{{
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
Plug 'junegunn/vim-plug'
|
||||
" UI
|
||||
Plug 'NLKNguyen/papercolor-theme'
|
||||
Plug 'zefei/vim-wintabs'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
" Languages
|
||||
Plug 'lervag/vimtex', { 'for': 'tex' }
|
||||
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
|
||||
|
@ -43,19 +47,15 @@ Plug 'junegunn/fzf.vim'
|
|||
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
|
||||
Plug 'reedes/vim-pencil', { 'for': ['tex', 'markdown', 'text'] }
|
||||
Plug 'chrisbra/vim-diff-enhanced'
|
||||
" UI
|
||||
Plug 'NLKNguyen/papercolor-theme'
|
||||
Plug 'zefei/vim-wintabs'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
" Python
|
||||
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
|
||||
Plug 'hkupty/iron.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'jpalardy/vim-slime'
|
||||
Plug 'zchee/deoplete-jedi'
|
||||
Plug 'autozimu/LanguageClient-neovim', {
|
||||
\ 'branch': 'next',
|
||||
\ 'do': 'bash install.sh',
|
||||
\ }
|
||||
|
||||
call plug#end()
|
||||
let g:plug_window = 'rightbelow topleft new'
|
||||
|
||||
|
@ -113,8 +113,8 @@ set foldenable " Fold by default
|
|||
set foldlevelstart=10
|
||||
set foldnestmax=10 " Deepest fold is 10 levels
|
||||
set foldmethod=marker " Markers are used to specify folds.
|
||||
set completeopt=noinsert,menuone,preview,noselect
|
||||
"set completefunc=LanguageClient#complete
|
||||
set completeopt=noinsert,menuone,preview
|
||||
set completefunc=LanguageClient#complete
|
||||
set formatexpr=LanguageClient#textDocument_rangeFormatting_sync()
|
||||
set noexpandtab " Do not turn tabs into spaces
|
||||
set tabstop=4 " Number of spaces a <Tab> equals
|
||||
|
@ -138,10 +138,7 @@ set pastetoggle=<F12>
|
|||
set shortmess=aoOtIWcFs " Shorten messages and don't show intro
|
||||
set omnifunc=syntaxcomplete#Complete
|
||||
set complete+=]
|
||||
set completeopt-=preview
|
||||
set completeopt+=noinsert,longest,noselect,menuone
|
||||
set formatoptions+=n
|
||||
"set matchpairs=(:),{:},[:],<:>
|
||||
|
||||
" Display all matching files when we tab complete
|
||||
set wildmenu
|
||||
|
@ -171,7 +168,7 @@ set wildmode=longest:list,full
|
|||
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
||||
|
||||
let mapleader="\<SPACE>"
|
||||
let localleader=","
|
||||
let maplocalleader=","
|
||||
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
|
||||
" }}}
|
||||
|
||||
|
@ -235,15 +232,20 @@ if !exists("autocommands_loaded") && has("autocmd")
|
|||
autocmd BufNewFile *.py 0r ~/.config/nvim/templates/py.skeleton
|
||||
|
||||
aug terminal_stuff
|
||||
au BufWinEnter,WinEnter term://* startinsert
|
||||
au BufEnter * if &buftype == 'terminal' | setlocal statusline=%{b:term_title}
|
||||
au BufLeave term://* stopinsert
|
||||
"au BufWinEnter,WinEnter term://* startinsert
|
||||
"au BufEnter * if &buftype == 'terminal' | setlocal statusline=%{b:term_title}
|
||||
"au BufLeave term://* stopinsert
|
||||
au TermOpen * setlocal nonumber norelativenumber
|
||||
au TermOpen * setlocal statusline=%{b:term_title}
|
||||
"au TermOpen * setlocal statusline=%{b:term_title}
|
||||
aug END
|
||||
|
||||
autocmd FileType fzf set noshowmode noruler
|
||||
\| autocmd BufLeave <buffer> set showmode ruler
|
||||
augroup CloseLoclistWindowGroup
|
||||
autocmd!
|
||||
autocmd QuitPre * if empty(&buftype) | lclose | endif
|
||||
augroup END
|
||||
|
||||
autocmd FileType fzf set laststatus=0 noshowmode noruler
|
||||
\| autocmd BufLeave <buffer> set laststatus=1 showmode ruler
|
||||
|
||||
" Automatic syntax highlighting for files
|
||||
aug set_file_types
|
||||
|
@ -314,19 +316,31 @@ endfunction
|
|||
nnoremap <leader>R :call <SID>ranger()<CR>
|
||||
" }}}
|
||||
|
||||
" Autopairs {{{
|
||||
let g:AutoPairs = {'(':')', '[':']', '<':'>', '{':'}',"'":"'",'"':'"', '`':'`'}
|
||||
" }}}
|
||||
|
||||
" {{{ Ale
|
||||
let g:ale_linters_explicit = 1
|
||||
let g:ale_change_sign_column_color = 1
|
||||
let g:ale_echo_msg_format = '[%linter%] %s% (code)% [%severity%]'
|
||||
let g:ale_loclist_msg_format = '[%linter%] %s% (code)% [%severity%]'
|
||||
let g:ale_open_list = 'on_save'
|
||||
let g:ale_sign_error = '✖'
|
||||
let g:ale_sign_warning = '⚠'
|
||||
let g:ale_lint_delay = 500 " relint max once per [amount] milliseconds
|
||||
let g:ale_set_loclist = 0
|
||||
let g:ale_set_quickfix = 1
|
||||
let g:ale_set_highlights = 1
|
||||
let g:ale_pattern_options = {
|
||||
\ '\.min\.js$': {'ale_linters': [], 'ale_fixers': []},
|
||||
\ '\.min\.css$': {'ale_linters': [], 'ale_fixers': []},
|
||||
\}
|
||||
|
||||
highlight ALEError cterm=undercurl ctermfg=196
|
||||
highlight ALEInfo cterm=undercurl ctermfg=14
|
||||
hi ALEErrorSign ctermfg=red ctermbg=none
|
||||
hi ALEWarningSign ctermfg=yellow ctermbg=none
|
||||
"highlight ALEError cterm=undercurl ctermfg=196
|
||||
"highlight ALEInfo cterm=undercurl ctermfg=14
|
||||
"hi ALEErrorSign ctermfg=red ctermbg=none
|
||||
"hi ALEWarningSign ctermfg=yellow ctermbg=none
|
||||
|
||||
nmap <silent> <F10> <Plug>(ale_previous_wrap)
|
||||
nmap <silent> <F11> <Plug>(ale_next_wrap)
|
||||
|
@ -334,7 +348,6 @@ nmap <silent> <F11> <Plug>(ale_next_wrap)
|
|||
|
||||
" Deoplete {{{
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
"set completeopt-=preview
|
||||
call deoplete#custom#option('max_list', 100000)
|
||||
call deoplete#custom#option('min_pattern_length', 2)
|
||||
call deoplete#custom#source('LanguageClient',
|
||||
|
@ -453,6 +466,38 @@ if &diff
|
|||
endif
|
||||
" }}}
|
||||
|
||||
" Semshi {{{
|
||||
let g:semshi#mark_selected_nodes = 2
|
||||
let g:semshi#error_sign = v:false
|
||||
" }}}
|
||||
|
||||
" Slime {{{
|
||||
let g:slime_target = 'tmux'
|
||||
let g:slime_python_ipython = 1
|
||||
let g:slime_paste_file = '~/.slime_paste'
|
||||
" }}}
|
||||
|
||||
" Iron {{{
|
||||
nnoremap <leader>ir :IronRepl<CR>
|
||||
|
||||
let g:iron_repl_open_cmd = '10split'
|
||||
let g:iron_map_defaults = 0
|
||||
|
||||
nmap + <S-v><Plug>(iron-send-motion)
|
||||
vmap + <Plug>(iron-send-motion)
|
||||
nmap rr <Plug>(iron-repeat-cmd)
|
||||
" }}}
|
||||
|
||||
" LSP {{{
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'python': ['/usr/bin/pyls'],
|
||||
\ 'cpp': ['clangd'],
|
||||
\ 'bash': ['/usr/bin/shellcheck'],
|
||||
\ }
|
||||
|
||||
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
||||
" }}}
|
||||
|
||||
" Papercolor {{{
|
||||
set background=dark
|
||||
let g:PaperColor_Theme_Options = {
|
||||
|
@ -491,32 +536,6 @@ nnoremap <silent> <C-l> :WintabsNext<CR>
|
|||
nnoremap <silent> <C-h> :WintabsPrevious<CR>
|
||||
" }}}
|
||||
|
||||
" Semshi {{{
|
||||
let g:semshi#mark_selected_nodes = 2
|
||||
let g:semshi#error_sign = v:false
|
||||
" }}}
|
||||
|
||||
" Iron {{{
|
||||
nnoremap <leader>ir :IronRepl<CR>
|
||||
|
||||
let g:iron_repl_open_cmd = '10split'
|
||||
let g:iron_map_defaults = 0
|
||||
|
||||
nmap + <S-v><Plug>(iron-send-motion)
|
||||
vmap + <Plug>(iron-send-motion)
|
||||
nmap rr <Plug>(iron-repeat-cmd)
|
||||
" }}}
|
||||
|
||||
" LSP {{{
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'python': ['/usr/bin/pyls'],
|
||||
\ 'cpp': ['clangd'],
|
||||
\ 'bash': ['/usr/bin/shellcheck'],
|
||||
\ }
|
||||
|
||||
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
||||
" }}}
|
||||
|
||||
"Mappings {{{
|
||||
" Spell checking
|
||||
nnoremap <F6> :setlocal spell! spelllang=es<CR>
|
||||
|
@ -640,11 +659,6 @@ inoremap <A-l> <Esc><C-w>l
|
|||
" CTRL-C doesn't trigger the InsertLeave autocmd . map to <ESC> instead.
|
||||
inoremap <c-c> <ESC>
|
||||
|
||||
" When the <Enter> key is pressed while the popup menu is visible, it only
|
||||
" hides the menu. Use this mapping to close the menu and also start a new
|
||||
" line.
|
||||
inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
|
||||
|
||||
" Use <TAB> to select the popup menu:
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
|
|
|
@ -181,6 +181,8 @@ map gU cd /usr
|
|||
map gd cd ~/Downloads
|
||||
map g. cd ~/.config
|
||||
map gT cd ~/.local/share/Trash/files/
|
||||
map gs cd ~/.local/share
|
||||
map gf cd ~/.local/lib/python3.7/site-packages/FoxDot
|
||||
map gm cd ~/Music/Albums
|
||||
map gb cd ~/bin
|
||||
map gM cd /media
|
||||
|
|
|
@ -5,9 +5,18 @@ super + {_,shift} + w
|
|||
super + f
|
||||
bspc node -t $(bspc query -N -n -n .tiled >/dev/null && echo floating || echo tiled)
|
||||
|
||||
super + shift + f
|
||||
bspc node -t $(bspc query -N -n -n .tiled >/dev/null && echo fullscreen || echo tiled)
|
||||
|
||||
super + {_,shift,ctrl,alt} + {h,j,k,l}
|
||||
{foco,mover,agrandar,presel}.sh {west,south,north,east}
|
||||
|
||||
super + shift + minus
|
||||
bspc window -p down
|
||||
|
||||
super + bar
|
||||
bspc window -p right
|
||||
|
||||
super + alt + space
|
||||
bspc node -p cancel
|
||||
|
||||
|
@ -26,8 +35,11 @@ alt + {_,shift} + Tab
|
|||
super + {comma,period}
|
||||
bspc node @/ -R {90,270}
|
||||
|
||||
super + {_,shift} + ntilde
|
||||
bspc node $(bspc query -N -n .hidden | tail -n1) {-g hidden,-g hidden=off -f}
|
||||
#super + {_,shift} + ntilde
|
||||
# bspc node $(bspc query -N -n .hidden | tail -n1) {-g hidden,-g hidden=off -f}
|
||||
|
||||
super + {_,shift,ctrl} + ntilde
|
||||
whid {hide,last,dmenu}
|
||||
|
||||
super + {Up,Down,Left,Right}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
|
|
@ -9,9 +9,9 @@ urgent_on_bell = true
|
|||
clickable_url = true
|
||||
scrollback_lines = 10000
|
||||
search_wrap = true
|
||||
font = Sarasa Term J 10
|
||||
#font = Sarasa Term J 10
|
||||
#font = xos4 terminus 10
|
||||
#font = Monaco Regular 9
|
||||
font = Monaco Regular 9
|
||||
#font = Input Mono Narrow 10
|
||||
|
||||
# "system", "on" or "off"
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<channel name="xfce4-power-manager" version="1.0">
|
||||
<property name="xfce4-power-manager" type="empty">
|
||||
<property name="brightness-switch-restore-on-exit" type="int" value="0"/>
|
||||
<property name="brightness-switch" type="int" value="0"/>
|
||||
<property name="lid-action-on-ac" type="uint" value="1"/>
|
||||
<property name="logind-handle-lid-switch" type="bool" value="false"/>
|
||||
<property name="general-notification" type="bool" value="true"/>
|
||||
<property name="inactivity-on-ac" type="uint" value="60"/>
|
||||
<property name="brightness-on-ac" type="uint" value="9"/>
|
||||
<property name="brightness-level-on-ac" type="uint" value="5"/>
|
||||
<property name="dpms-on-ac-off" type="uint" value="45"/>
|
||||
<property name="dpms-on-ac-sleep" type="uint" value="30"/>
|
||||
<property name="blank-on-ac" type="int" value="20"/>
|
||||
<property name="power-button-action" type="uint" value="3"/>
|
||||
<property name="lid-action-on-battery" type="uint" value="1"/>
|
||||
<property name="inactivity-sleep-mode-on-battery" type="uint" value="2"/>
|
||||
<property name="inactivity-on-battery" type="uint" value="25"/>
|
||||
<property name="critical-power-action" type="uint" value="3"/>
|
||||
<property name="dpms-on-battery-off" type="uint" value="20"/>
|
||||
<property name="dpms-on-battery-sleep" type="uint" value="15"/>
|
||||
<property name="brightness-on-battery" type="uint" value="9"/>
|
||||
<property name="blank-on-battery" type="int" value="10"/>
|
||||
<property name="brightness-level-on-battery" type="uint" value="5"/>
|
||||
<property name="inactivity-sleep-mode-on-ac" type="uint" value="2"/>
|
||||
</property>
|
||||
</channel>
|
|
@ -76,6 +76,5 @@ alias path='echo -e ${PATH//:/\\n}' # Pretty print of some PATH variable
|
|||
alias compare='grep -nFxvf' # Usage: compare <file1> <file2>
|
||||
alias pwn='chmod +x'
|
||||
alias ta='tmux attach -t'
|
||||
alias tls='tmux ls'
|
||||
alias tk='tmux kill-session -t'
|
||||
alias lst='ls -FAghoBtH --group-directories-first --dereference-command-line-symlink-to-dir --time-style=+"%d-%m-%Y %H:%M"'
|
|
@ -120,9 +120,6 @@ wpp() { hsetroot -fill ~/Pictures/wallpaper/$1 ;}
|
|||
|
||||
# Command not found
|
||||
[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
|
||||
# Cleaner xev output
|
||||
xev() { xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }' }
|
||||
# }}}
|
||||
|
||||
# vim:foldmethod=marker:foldlevel=0
|
|
@ -32,18 +32,6 @@ export FZF_VIM_LOG=$(git config --get alias.l | awk '{$1=""; print $0;}' | tr -d
|
|||
|
||||
command -v tree > /dev/null && export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -$LINES'"
|
||||
|
||||
# fkill - kill process using fzf {{{
|
||||
function fkill {
|
||||
local pid
|
||||
pid=$( pstree -T -p -a | fzf -e -m -i +s --reverse --margin=4%,1%,1%,2% --inline-info --header="TAB to (un)select. ENTER to kill selected process(es). ESC or CTRL+C to quit." --prompt='Enter string to filter list of processes > ' | awk -F ',' '{print $NF}' | awk '{print $1}' )
|
||||
|
||||
if [ "x$pid" != "x" ]
|
||||
then
|
||||
echo "$pid" | xargs kill -${1:-9}
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
# git logs, hash, and diff with fzf {{{
|
||||
fshow() {
|
||||
git log --graph --color=always \
|
||||
|
@ -63,8 +51,8 @@ g-open() {
|
|||
}
|
||||
# }}}
|
||||
|
||||
# tm - tmux session control with fzf {{{
|
||||
tm() {
|
||||
# tls - tmux session control with fzf {{{
|
||||
tls() {
|
||||
[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session"
|
||||
if [ $1 ]; then
|
||||
tmux $change -t "$1" 2>/dev/null || (tmux new-session -d -s $1 && tmux $change -t "$1"); return
|
||||
|
@ -73,7 +61,7 @@ tm() {
|
|||
}
|
||||
# }}}
|
||||
|
||||
# fvim - open any file in nvim or sublime {{{
|
||||
# fv - open any file in nvim or sublime {{{
|
||||
fv() {
|
||||
IFS=$'\n' out=($(fzf --query="$1" --exit-0 --expect=ctrl-g,ctrl-e))
|
||||
key=$(head -1 <<< "$out")
|
||||
|
@ -82,4 +70,16 @@ fv() {
|
|||
[ "$key" = ctrl-g ] && subl "$file" || $EDITOR "$file"
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
# fk - kill process using fzf {{{
|
||||
function fk {
|
||||
local pid
|
||||
pid=$( pstree -T -p -a | fzf -e -m -i +s --margin=4%,1%,1%,2% --inline-info --header="TAB to (un)select. ENTER to kill. ESC or CTRL+C to quit." --prompt='Process name > ' | awk -F ',' '{print $NF}' | awk '{print $1}' )
|
||||
|
||||
if [ "x$pid" != "x" ];
|
||||
then
|
||||
echo "$pid" | xargs kill -${1:-9}
|
||||
fi
|
||||
}
|
||||
# }}}
|
|
@ -6,7 +6,7 @@
|
|||
configuration {
|
||||
display-drun: "Activate";
|
||||
display-run: "Execute";
|
||||
display-window: "Window";
|
||||
display-window: "Switch";
|
||||
show-icons: false;
|
||||
drun-icon-theme: "papirus";
|
||||
sidebar-mode: true;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# TERM
|
||||
set -g default-terminal tmux-256color
|
||||
set -ga terminal-overrides ',xterm-256color:Tc'
|
||||
#set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
|
||||
# Opciones basicas
|
||||
set -g set-clipboard on
|
||||
|
|
2
.xinitrc
2
.xinitrc
|
@ -32,7 +32,7 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|||
unset f
|
||||
fi
|
||||
|
||||
xset dpms 0 2700 3000 &
|
||||
#xset dpms 0 2700 3000 &
|
||||
xset s noexpose &
|
||||
setxkbmap -option caps:escape
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euf -o pipefail
|
||||
|
||||
export DISPLAY=:0.0
|
||||
USERID=$(id -u -n)
|
||||
|
||||
if ping -q -w 1 -c 1 "$(ip r | grep -m 1 default | cut -d ' ' -f 3)" >/dev/null
|
||||
then
|
||||
|
@ -16,7 +19,7 @@ then
|
|||
if [ "$newcount" -gt 0 ]
|
||||
then
|
||||
cuenta=$(echo "$account" | rev | cut -d"/" -f1-1 | rev)
|
||||
notify-send-headless -a neomutt "You've Got Mail" "$newcount new message(s) in $cuenta"
|
||||
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$USERID/bus dunstify -a neomutt "You've Got Mail" "$newcount new message(s) in $cuenta"
|
||||
fi
|
||||
done
|
||||
# Create a touch file that indicates the time of the last run of mailsync
|
||||
|
|
|
@ -6,7 +6,7 @@ FILE="$FOLDER/$1"
|
|||
if [[ -f $FILE ]]; then
|
||||
echo -e "There's a file called that already..."
|
||||
else
|
||||
echo -e "#!/usr/bin/env bash\\n\\n" > "$FILE"
|
||||
echo -e "#!/usr/bin/env bash\\n set -euf -o pipefail\\n" > "$FILE"
|
||||
chmod +x "$FILE"
|
||||
$EDITOR "$FILE"
|
||||
fi
|
||||
|
|
|
@ -20,11 +20,11 @@ if [ -d /sys/class/power_supply/BAT0 ]; then
|
|||
else
|
||||
echo -n '#[fg=colour123]'
|
||||
fi
|
||||
echo -ne "$HEART$current_charge "
|
||||
echo -ne "$HEART$current_charge"
|
||||
fi
|
||||
|
||||
if grep -q 'up' /sys/class/net/wlo1/operstate; then
|
||||
if ping -q -w 1 -c 1 "$(ip r | grep -m 1 default | cut -d ' ' -f 3)" >/dev/null
|
||||
then
|
||||
net="$(awk 'NR == 3 { print substr($3, 1, length($3) - 1) }' /proc/net/wireless)"
|
||||
echo -ne "#[fg=colour177]$WIFI ${net} "
|
||||
|
||||
echo -ne " #[fg=colour177]$WIFI ${net} "
|
||||
fi
|
||||
|
|
Reference in New Issue