dgy
/
hexagons
Archived
1
0
Fork 0

chau airline, compton, oblogout. un par de cambios en otras cositas

This commit is contained in:
deadguy 2019-08-21 22:42:47 -03:00
parent 6c7e4ef7ad
commit 252f883659
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
18 changed files with 456 additions and 274 deletions

View File

@ -51,7 +51,6 @@ bspc rule -a Qalculate-gtk state=floating
bspc rule -a mpv state=floating
bspc rule -a Gucharmap state=floating
bspc rule -a File-roller state=floating
bspc rule -a Catfish state=floating
bspc rule -a obs state=floating
bspc rule -a Pd-l2ork state=floating
bspc rule -a PdWindow state=floating
@ -62,7 +61,6 @@ bspc rule -a Pinentry state=floating
bspc rule -a Termite:flota state=floating
bspc rule -a Toplevel state=floating
bspc rule -a Firefox state=floating
bspc rule -a VChar64 state=floating
bspc rule -a Lxappearance state=floating
# Otros

View File

@ -1,44 +1,61 @@
backend = "xrender";
vsync = false;
glx-no-rebind-pixmap = true;
refresh-rate = 0;
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;
shadow-ignore-shaped = false;
# Backend
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
shadow = true;
shadow-radius = 0;
shadow-offset-x = 2.5;
shadow-offset-y = 2.5;
shadow-opacity = 1;
# GLX backend
glx-no-stencil = true;
frame-opacity = 0.8;
active-opacity = 1.0;
inactive-opacity = 0.85;
inactive-dim = 0.2;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
# Useful with --glx-swap-method, as well.
glx-copy-from-front = false;
fading = false;
fade-delta = 15;
fade-in-step = 0.3;
fade-out-step = 0.3;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
blur-background = true;
blur-background-frame = true;
blur-background-fixed = true;
blur-kern = "3x3box";
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
# Recommended if it works.
glx-no-rebind-pixmap = true;
opacity-rule = [
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"35:class_g = 'Bspwm' && class_i = 'presel_feedback'",
];
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
glx-swap-method = "6";
# Shadows
# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 3;
# The left offset for shadows. (default -15)
shadow-offset-x = 3;
# The top offset for shadows. (default -15)
shadow-offset-y = 3;
# The translucency for shadows. (default .75)
shadow-opacity = 1;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM at tab switcher.
shadow-exclude = [
"!focused",
"fullscreen",
@ -55,6 +72,21 @@ shadow-exclude = [
"class_g = 'slop'",
"class_g = 'maim'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = true;
# Opacity
menu-opacity = 1.0;
inactive-opacity = 0.8;
active-opacity = 1.0;
frame-opacity = 0.8;
inactive-opacity-override = true;
alpha-step = 0.06;
opacity-rule = [
"35:class_g = 'Bspwm' && class_i = 'presel_feedback'",
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" #FLASHFOCUS
]
opacity-exclude = [
"class_g = 'mpv'",
@ -70,30 +102,116 @@ opacity-exclude = [
"class_g = 'maim'",
];
# Dim inactive windows. (0.0 - 1.0)
inactive-dim = 0.2;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = true;
blur-kern = "3x3box";
#blur-method = "kawase";
#blur-strength = 8;
# Blur background of opaque windows with transparent frames as well.
blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
# blur-background-fixed = false;
#transition-length = 120;
blur-background-exclude = [
"class_g = 'slop'",
"class_g = 'maim'",
"class_g = 'Rofi'",
# "class_g = 'Termite'",
# "_GTK_FRAME_EXTENTS@:c"
];
blur-background-frame-exclude = [
# "class_g = 'Termite'",
# "class_g = 'Rofi'"
];
focus-exclude = [
"_NET_WM_NAME@:s = 'rofi'",
"class_g = 'Rofi'",
# "class_g = 'Rofi'",
"class_g = 'mpv'",
"name *? = 'i3lock'",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
#Window type settings
# Fading
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
no-fading-openclose = false;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [ ];
# Other
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity = true;
# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 0;
# Set VSync method. VSync methods currently available:
# none: No VSync
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesnt have the effect of --sw-opti unlike other methods. Experimental.
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.)
vsync = "opengl-swc";
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
sw-opti = true;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
# paint-on-overlay may make the flickering less obvious.
unredir-if-possible = true;
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
detect-transient = true;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
detect-client-leader = true;
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = false; opacity = 1; focus = true; };
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
menu = { shadow = false; opacity = 1; focus = true; };
dropdown_menu = { shadow = false; opacity = 1; focus = true; };
popup_menu = { shadow = false; opacity = 1; focus = true; };

View File

@ -0,0 +1,2 @@
setlocal nonumber norelativenumber
" setlocal statusline=

View File

@ -16,6 +16,11 @@ setlocal nohidden
setlocal iskeyword+=:
setlocal iskeyword+=#
setlocal iskeyword+=-
setlocal nonumber
setlocal noruler
setlocal colorcolumn=0
setlocal signcolumn=no
" setlocal statusline=
wincmd L

View File

@ -5,9 +5,8 @@
" nnoremap <buffer><silent> gO :call man#showtoc()<Enter>
""
let w:airline_disabled = 1
set laststatus=0
set textwidth=80
" setlocal statusline=
setlocal textwidth=80
function! man#showtoc() abort
let l:bufname = bufname('%')
@ -95,8 +94,10 @@ setlocal buftype=nofile bufhidden=hide noswapfile nomodified readonly nomodifiab
setlocal noexpandtab tabstop=8 softtabstop=8 shiftwidth=8
setlocal nonumber norelativenumber
setlocal foldmethod=indent nofoldenable
setlocal colorcolumn=0
setlocal signcolumn=no
" Define mappings.
nnoremap <buffer><silent> gO :call man#showtoc()<Enter>
nnoremap <buffer><silent> O :call man#showtoc()<Enter>
nnoremap <buffer><silent> <C-]> :call man#jumptag()<Enter>
nnoremap <buffer><silent> [g :call man#poptag()<Enter>

View File

@ -25,14 +25,13 @@ Plug 'othree/es.next.syntax.vim', {'for': 'javascript'}
Plug 'mxw/vim-jsx', {'for': 'javascript'}
Plug 'HerringtonDarkholme/yats.vim', {'for': 'typescript'}
Plug 'mhartington/nvim-typescript', {'do': './install.sh', 'for': 'typescript'}
Plug 'mattn/emmet-vim'
Plug 'mattn/emmet-vim', {'for': 'html'}
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'sheerun/vim-polyglot'
Plug 'tmsvg/pear-tree'
Plug 'tpope/vim-commentary'
Plug '/usr/bin/fzf'
Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline'
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'mhartington/oceanic-next'
call plug#end()
@ -44,6 +43,9 @@ set clipboard^=unnamedplus " system clipboard (requires +clipboard)
set fileencoding=utf-8 " The encoding written to file.
set shell=/bin/zsh " Setting shell to zsh
set number " Line numbers on
set relativenumber
set noshowmode
set laststatus=2
set pumheight=12 " Completion window max size
set helpheight=12 " Minimum help window height
set noswapfile " New buffers will be loaded without creating a swapfile
@ -62,7 +64,7 @@ set notimeout " Time out on key codes but not mappings.
set ignorecase " Ignore case by default
set cursorline " Hightlight the screen line of the cursor
set visualbell " Use visual bell instead of beeping
set scrolloff=3 " Keep this many lines padding when scrolling
set scrolloff=5 " Keep this many lines padding when scrolling
set shortmess+=aoOIWcs " Shorten messages and don't show intro
set tabstop=4 " Number of spaces a <Tab> equals
set shiftwidth=4 " Number of spaces for each (auto)indent step
@ -75,7 +77,6 @@ set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%)
set selectmode=key
set keymodel=startsel
set softtabstop=4
set noshowmode
set breakindent
set redrawtime=500
set ttimeoutlen=10
@ -109,19 +110,6 @@ let mapleader="\<SPACE>"
let maplocalleader=","
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
" }}}
" Read Only {{{
if &readonly
set laststatus=0
set cmdheight=0
set nonumber
set noshowmode
set noruler
set colorcolumn=0
set signcolumn=no
let g:ale_disabled
let w:airline_disabled = 1
endif
" }}}
" {{{ Ale
let g:ale_use_global_executables = 1
let g:ale_completion_enabled = 0
@ -250,45 +238,6 @@ let g:yats_host_keyword = 1
" Emmet {{{
let g:user_emmet_leader_key=','
"}}}
" Statusline {{{
let g:airline_extensions = ['quickfix', 'ale', 'coc', 'tabline']
let g:airline#extensions#default#layout = [['a', 'b', 'c'], ['warning', 'error', 'z']]
let g:airline_section_b = '%{abs(line(".") - line("v")) + 1}'
let g:airline_section_c = '%{getcwd()}'
let g:airline_section_z = '%p%%'
let g:airline_skip_empty_sections = 1
let g:airline_focuslost_inactive = 1
let g:airline#extensions#tabline#formatter = 'unique_tail'
let g:airline#extensions#tabline#alt_sep = 1
let g:airline#extensions#tabline#show_splits = 1
let g:airline#extensions#tabline#show_buffers = 1
let g:airline#extensions#tabline#show_tab_count = 0
let g:airline#extensions#tabline#show_tab_type = 0
let g:airline#extensions#tabline#show_close_button = 0
let g:airline#extensions#tabline#exclude_preview = 1
" let g:airline#extensions#tabline#tab_min_count = 2
let g:airline#extensions#tabline#tab_nr_type = 2 " splits and tab number
let g:airline_exclude_preview = 1
let g:airline_powerline_fonts = 1
let g:airline_highlighting_cache = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_left_sep = ' '
let g:airline_right_sep = ' '
let g:airline_left_alt_sep = ' '
let g:airline_right_alt_sep = ' '
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = ' '
let g:airline#extensions#tabline#right_sep = ' '
let g:airline#extensions#tabline#right_alt_sep = ' '
let g:airline#extensions#ale#checking_symbol=""
let airline#extensions#ale#warning_symbol = ' '
let airline#extensions#ale#error_symbol = ' '
let airline#extensions#ale#open_lnum_symbol = ' (L '
let airline#extensions#ale#show_line_numbers = 1
let g:airline_theme='moonfly'
" }}}
" Colors {{{
set termguicolors
let g:oceanic_next_terminal_italic = 1
@ -310,8 +259,6 @@ hi! CursorLineNr ctermbg=236 ctermfg=NONE guibg=#303030 guifg=NONE
hi! CursorLine ctermbg=236 ctermfg=NONE guibg=#303030 guifg=NONE
hi! SignColumn ctermbg=NONE guibg=#080808
hi! Folded ctermbg=NONE guibg=#080808
hi! StatusLine guibg=#080808 ctermbg=NONE
hi! StatusLineNC guibg=#080808 ctermbg=NONE
hi! TabLine cterm=None ctermbg=NONE guibg=#080808
hi! TabLineSel cterm=None ctermbg=NONE guibg=#080808
hi! TabLineFill cterm=None ctermbg=NONE guibg=#080808 guifg=#080808
@ -321,6 +268,72 @@ hi! link CocErrorSign WarningMsg
hi! link CocWarningSign Number
hi! link CocInfoSign Type
" }}}
" Statusline {{{
highlight User1 ctermfg=251 ctermbg=NONE guibg=#080808 guifg=#c6c6c6
highlight User2 ctermfg=234 ctermbg=NONE guibg=#f74782 guifg=#1c1c1c
highlight User3 ctermfg=234 ctermbg=4 guibg=#008bbd guifg=#1c1c1c
highlight User4 ctermfg=234 ctermbg=251 guibg=#c6c6c6 guifg=#1c1c1c
highlight User5 ctermfg=234 ctermbg=4 guibg=#8d4eff guifg=#1c1c1c
highlight User6 ctermfg=234 ctermbg=9 guibg=#fb4934 guifg=#1c1c1c
highlight User7 ctermfg=234 ctermbg=251 guibg=#407e4a guifg=#1c1c1c
let s:modes ={
\ 'n' : ['%3*', 'NORMAL'],
\ 'i' : ['%4*', 'INSERT'],
\ 'v' : ['%5*', 'VISUAL'],
\ 'r' : ['%2*', 'REPLACE'],
\ 'V' : ['%5*', 'V·LINE'],
\ '^V' : ['%5*', 'V·BLOCK'],
\ 's' : ['%7*', 'SELECT'],
\ 'S' : ['%7*', 'S·LINE'],
\ '^S' : ['%7*', 'S·BLOCK'],
\ }
function! LinterStatus() abort
let l:counts = ale#statusline#Count(bufnr(''))
let l:all_errors = l:counts.error + l:counts.style_error
let l:all_non_errors = l:counts.total - l:all_errors
return l:counts.total == 0 ? '' : printf(
\ ' ⚠ :%d ✖ :%d ',
\ l:all_non_errors,
\ l:all_errors
\)
endfunction
function! ModeColor() abort
return get(s:modes, tolower(mode()), '%*')[0]
endfunction
function! CurrentMode() abort
return ' ' . get(s:modes, tolower(mode()), '-')[1] . ' '
endfunction
function! LinePasteMode()
let paste_status = &paste
if paste_status == 1
return " paste "
else
return ""
endif
endfunction
function! Statusline()
let b:status=""
let b:status.=ModeColor()
let b:status.=CurrentMode()
let b:status.=LinePasteMode()
let b:status.="%1* %f "
let b:status.="%1* %m "
let b:status.="%= "
let b:status.="%6*"
let b:status.=LinterStatus()
let b:status.="%3* %p%% ┃ %c "
return b:status
endfunction
set statusline=%!Statusline()
" }}}
" AutoCommands {{{
if !exists("autocommands_loaded") && has("autocmd")
let autocommands_loaded = 1
@ -331,23 +344,46 @@ if !exists("autocommands_loaded") && has("autocmd")
endif
endfunction
function! Relativize(v)
if &number
let &relativenumber = a:v
endif
endfunction
function! LocalStatusLine()
let b:status = "%#error#[HELP]%*"
return b:status
endfunction
aug relativize
au BufWinEnter,FocusGained,InsertLeave,WinEnter * call Relativize(1)
au BufWinLeave,FocusLost,InsertEnter,WinLeave * call Relativize(0)
aug END
aug status_line
au FileType help setlocal statusline=%!LocalStatusLine()
au FileType man setlocal statusline=%!LocalStatusLine()
au FileType fzf setlocal statusline=
aug END
aug on_save
au BufWritePre * :%s/\s\+$//e " Auto remove all trailing whitespace on :w
" Delete whitespace on :w
au BufWritePre * :%s/\s\+$//e
" If i just edited Xresources, reaload them on :w
au BufWritePost ~/.Xresources,~/.Xdefaults !xrdb %
aug END
aug on_quit
au VimLeave *.tex !texclear % " Runs a script that cleans out tex build files whenever I close out of a .tex file.
" Runs a script that cleans out tex build files whenever I close out of a .tex file.
au VimLeave *.tex !texclear %
au QuitPre * if empty(&buftype) | lclose | endif
aug END
aug defx_things
" Close defx if it's the only buffer left in the window
au WinEnter * if &ft == 'defx' && winnr('$') == 1 | q | endif
" Move focus to the next window if current buffer is defx
au TabLeave * if &ft == 'defx' | wincmd w | endif
au FileType defx do WinEnter | call s:defx_my_settings()
aug END
@ -361,7 +397,8 @@ if !exists("autocommands_loaded") && has("autocmd")
aug END
aug miscs
au CursorHold * silent call CocActionAsync('highlight') " Highlight symbol under cursor on CursorHold
" Highlight symbol under cursor on CursorHold
au CursorHold * silent call CocActionAsync('highlight')
au ColorScheme * call MyHighlights()
aug END
@ -377,14 +414,8 @@ if !exists("autocommands_loaded") && has("autocmd")
au BufNewFile *.sh 0r ~/.config/nvim/templates/sh.skeleton
aug END
aug fzf_setup
au FileType fzf set laststatus=0 noruler
\| au BufLeave <buffer> set ruler laststatus=2
au TermOpen term://*FZF tnoremap <silent> <buffer> <esc> <c-c>
aug END
aug file_types
au FileType * setl formatoptions-=cro " Disables automatic commenting on newline
au FileType * setl formatoptions-=cro
au BufRead,BufNewFile *.md set filetype=markdown
au BufRead,BufNewFile *.conf set filetype=config
au BufRead,BufNewFile *.bash* set filetype=sh
@ -530,6 +561,10 @@ nnoremap <F8> :w! \| !compiler <c-r>%<CR>
nnoremap <leader>pu :PlugUpdate<CR>
nnoremap <leader>pU :PlugUpgrade<CR>
" Ñ master race
nnoremap ñ ;
nnoremap Ñ ,
" Super quick search and replace
nnoremap <leader>+ :'{,'}s/\<<C-r>=expand("<cword>")<CR>\>/
nnoremap <leader>¿ :%s/\<<C-r>=expand("<cword>")<CR>\>/
@ -587,7 +622,6 @@ noremap <silent> <Home> g<Home>
noremap <silent> <End> g<End>
nnoremap Y 0y$
nnoremap <leader>y y$
nnoremap L 0v$
" Alt to switch windows
nnoremap <M-j> <C-W><C-J>
@ -607,6 +641,17 @@ nnoremap * *zz
nnoremap # #zz
nnoremap g* g*zz
nnoremap g# g#zz
" Shift butterfinger
:command! WQ wq
:command! Wq wq
:command! Wqa wqa
:command! Wa wa
:command! WA wa
:command! W w
:command! Q q
:command! Qa qa
:command! QA qa
"}}}
"Insert {{{
" Ensure that ctrl+u in insert mode can be reversed
@ -628,7 +673,7 @@ inoremap <A-k> <Esc><C-w>k
inoremap <A-l> <Esc><C-w>l
"}}}
"Visual {{{
" Visual mode pressing * or # searches for the current selection
" Visual mode pressing # searches for the current selection
vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>
" Move a line of text using Shift+[jk]
@ -659,19 +704,7 @@ tnoremap <M-j> <C-\><C-n><C-w>j
tnoremap <M-k> <C-\><C-n><C-w>k
tnoremap <M-l> <C-\><C-n><C-w>l
"}}}
"Command {{{
" Shift butterfinger
:command! WQ wq
:command! Wq wq
:command! Wqa wqa
:command! Wa wa
:command! WA wa
:command! W w
:command! Q q
:command! Qa qa
:command! QA qa
"}}}
" }}}
" Functions {{{
function! CmdLine(str)
call feedkeys(":" . a:str)

View File

@ -7,7 +7,7 @@ configuration {
run-shell-command: "termite --hold -e {cmd}";
disable-history: true;
sort: true;
sorting-method: "levenshtein";
sorting-method: "fzf";
case-sensitive: false;
cycle: true;
auto-select: true;
@ -22,5 +22,8 @@ configuration {
drun-display-format: "{name}";
drun-match-fields: "name,exec";
combi-hide-mode-prefix: true;
window-match-fields: "all";
window-command: "xkill -id {window}";
window-format: "{w:8}{c:16}{t}";
pid: "/run/user/1000/rofi.pid";
}

View File

@ -70,7 +70,7 @@ super + {n,m}
termite --name=flota -e {nmtui,brandr}
super + {space,s}
rofi -theme sbarr -show {drun,window}
rofi -theme block -show {drun,window}
ctrl + alt + x
xkill

View File

@ -1,97 +0,0 @@
#!/usr/bin/perl
# Youtube Viewer 3.5.4 - configuration file
our $CONFIG = {
auto_captions => 0,
autohide_watched => 0,
cache_dir => "/home/deadguy/.cache/youtube-viewer",
captions_dir => "/tmp",
clobber => 0,
colors => 1,
comments_order => "time",
confirm => 0,
convert_cmd => "ffmpeg -i *IN* *OUT*",
convert_to => undef,
copy_caption => 0,
custom_layout => 0,
custom_layout_format => "*NO*. *TITLE* (*AUTHOR*) (*RATING*) [*TIME*]\\n",
dash_mp4_audio => 0,
dash_support => 1,
debug => 0,
download_and_play => 0,
download_in_parallel => 0,
download_with_wget => 0,
downloads_dir => ".",
env_proxy => 1,
fat32safe => 0,
ffmpeg_cmd => "/usr/bin/ffmpeg",
fullscreen => 0,
get_captions => 1,
get_term_width => 1,
highlight_color => "bold",
highlight_watched => 0,
history => 0,
history_file => "/home/deadguy/.config/youtube-viewer/history.txt",
history_limit => 10000,
hl => "en_US",
http_proxy => undef,
interactive => 1,
keep_original_video => 0,
maxResults => 20,
merge_into_mkv => 1,
merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced",
merge_with_captions => 1,
order => undef,
page => 1,
prefer_mp4 => 0,
publishedAfter => undef,
publishedBefore => undef,
regionCode => undef,
remove_played_file => 0,
resolution => "original",
results_fixed_width => 0,
results_with_colors => 1,
results_with_details => 1,
safeSearch => undef,
skip_if_exists => 0,
srt_languages => ["en", "es"],
subscriptions_order => "relevance",
thousand_separator => ",",
video_filename_format => "*FTITLE*.*FORMAT*",
video_player_selected => "mpv",
video_players => {
mplayer => {
arg => "-prefer-ipv4 -really-quiet -title *TITLE*",
audio => "-audiofile *AUDIO*",
cmd => "mplayer",
fs => "-fs",
novideo => "-novideo",
srt => "-sub *SUB*",
},
mpv => {
arg => "--really-quiet --title *TITLE* --no-ytdl",
audio => "--audio-file *AUDIO*",
cmd => "/usr/bin/mpv",
fs => "--fullscreen",
novideo => "--no-video",
srt => "--sub-file *SUB*",
},
vlc => {
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*",
audio => "--input-slave *AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf dummy --novideo",
srt => "--sub-file *SUB*",
},
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
videoSyndicated => undef,
wget_cmd => "wget",
youtube_video_url => "http://www.youtube.com/watch?v=%s",
}

View File

@ -0,0 +1,140 @@
/**
* User: deadguy
* Copyright: deadguy
*/
configuration {
display-drun: "Activate";
display-run: "Execute";
display-window: "Switch";
sidebar-mode: true;
show-icons: true;
}
/* global settings and color variables */
* {
background-color: #00000065;
text-color: #EFEFEF;
clearbg: #00000000;
fullbg: #080808;
selbg: #00a0e6;
actbg: #222222;
urgbg: #e53935;
winbg: #00364e;
selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @fullbg;
selected-urgent-foreground: @fullbg;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @urgbg;
selected-active-foreground: @fullbg;
active-foreground: @text-color;
selected-active-background: @text-color;
active-background: @winbg;
columns: 1;
line-margin: 2;
line-padding: 2;
margin: 0;
padding: 0;
separator-style: "none";
hide-scrollbar: "true";
font: "SF Pro Text 12";
}
window {
padding: 5px;
width: 30%;
height: 70%;
margin: 0 0 0 0;
children: [mainbox];
}
mainbox {
background-color: @fullbg;
children: [inputbar, listview, mode-switcher];
spacing: 10px;
padding: 30px 0 0 0;
border: 1px;
border-color: @clearbg;
}
listview {
background-color: @clearbg;
fixed-height: 0;
border: 0;
spacing: 5px;
scrollbar: false;
padding: 10px;
}
inputbar {
children: [ entry ];
background-color: @clearbg;
padding: 0 15px;
}
entry {
background-color: @clearbg;
spacing: 0;
}
button { padding: 5px; }
button selected {
background-color: @selbg;
text-color: @fullbg;
}
element {
background-color: @clearbg;
border-radius: 15px;
border: 0;
padding: 4px;
}
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: @selbg;
text-color: @fullbg;
}
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: @normal-background;
text-color: @normal-foreground;
}
element.alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element.alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}

View File

@ -9,9 +9,6 @@ configuration {
display-window: "Switch";
show-icons: false;
sidebar-mode: true;
eh: 1;
bw: 0;
dpi: -1;
}
/* global settings and color variables */
@ -62,7 +59,7 @@ window {
mainbox {
spacing: 0.8em;
children: [ entry,listview,sidebar ];
children: [ entry,listview,mode-switcher ];
}
button { padding: 5px 2px; }

View File

@ -1,7 +1,8 @@
# TERM
set -g default-terminal tmux-256color
set-option -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc"
set-option -ga terminal-overrides ",*col*:Tc"
set -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc"
set -ga terminal-overrides ",*col*:Tc"
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# Opciones basicas
set -g set-clipboard on

View File

@ -37,7 +37,7 @@ eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
export SSH_AUTH_SOCK
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
xsetroot -cursor_name left_ptr &
compton -b &
# compton -b &
sxhkd &
xfce4-power-manager &
dunst -conf ~/.config/dunst/dunstrc &

8
.zshrc
View File

@ -141,10 +141,12 @@ typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'
AGKOZAK_BLANK_LINES=1
AGKOZAK_CUSTOM_SYMBOLS=( '⇣⇡' '⇣' '⇡' '+' 'x' '!' '>' '?' )
AGKOZAK_CUSTOM_PROMPT='%(?..%B%F{red}(%?%)%f%b )'
AGKOZAK_CUSTOM_PROMPT+=$'%B%F{blue}%2v%f%b '
AGKOZAK_CUSTOM_PROMPT+='%F{green}%(4V.:.%(!.%#.$))%f '
# AGKOZAK_CUSTOM_PROMPT='%(?..%B%F{red}(%?%)%f%b )'
# AGKOZAK_CUSTOM_PROMPT+=$'%B%F{blue}%2v%f%b '
# AGKOZAK_CUSTOM_PROMPT+='%F{green}%(4V.:.%(!.%#.$))%f '
AGKOZAK_PROMPT_DIRTRIM=0
AGKOZAK_USER_HOST_DISPLAY=0
AGKOZAK_MULTILINE=0
foreach plugin (
zsh-autopair/autopair.zsh

View File

@ -17,7 +17,6 @@ bspwm
cadence
calf
carla
compton
compton-conf
cpupower
crda
@ -59,8 +58,6 @@ gst-libav
gst-plugins-ugly
gstreamer-vaapi
gucharmap
gvfs-gphoto2
gvfs-mtp
haveged
highlight
hsetroot
@ -69,17 +66,21 @@ hub
hunspell-en_US
hunspell-es_any
hunspell-es_ar
i3lock-color
imagemagick
iniparser
inkscape
intel-ucode
inxi
iputils
ipython
irssi
isync
jfsutils
jp2a
jq
jre-openjdk
libmatroska
libzip
licenses
linux-rt-manjaro
@ -101,6 +102,7 @@ mkinitcpio-openswap
mlocate
mpc
mpd
mps-youtube
msmtp
nano
ncdu
@ -123,15 +125,14 @@ parallel
pass
patch
pavucontrol
pd-l2ork
perl-autovivification
perl-curses-ui
perl-glib-object-introspection
perl-image-exiftool
perl-lwp-protocol-https
perl-term-readline-gnu
perl-text-charwidth
pkgbrowser
pkgconf
prettier
pulseaudio-bluetooth
pulseaudio-jack
@ -172,6 +173,7 @@ sublime-text
surfraw
sxhkd
systemd-sysvcompat
tcllib
termite
texlive-fontsextra
texlive-formatsextra
@ -185,6 +187,7 @@ tmux
transmission-cli
ttf-ibm-plex
typescript
udisks2
unace
unarj
uncrustify
@ -223,8 +226,6 @@ xorg-xwininfo
xsel
yapf
yay
youtube-dl
youtube-viewer
zathura-cb
zathura-pdf-poppler
zsh-completions

View File

@ -1,7 +1,7 @@
6cord
bashmount
bfs
colort-git
compton-tryone-git
curseradio-git
figlet-fonts
gimp-paint-studio
@ -14,8 +14,6 @@ gimp-plugin-saveforweb
gimp-plugin-scale-layer-to-image-size
godot
gtk-theme-minwaita
i3lock-color
irssi-git
lab
lscolors-git
ncpamixer

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
git log --graph --color=always \
--pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%C(blue)%x20(%ce)%x20%C(cyan)[gpg:%GK%x20%G?]%C(reset)%n%x20%s%n" "$@" |
fzf --ansi --exit-0 --preview "echo {} | grep -o '[a-f0-9]\{7\}' | head -1 | xargs -I % sh -c 'git show --color=always %'" \
--bind "enter:execute:
(grep -o '[a-f0-9]\{7\}' | head -1 |
xargs -I % sh -c 'git show --color=always % | less --tabs=4 -RFX') << 'FZF-EOF'
{}
FZF-EOF"

9
bin/fk
View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
pid=$(ps -ef | sed 1d | fzf --exit-0 -m | awk '{print $2}')
if [ "x$pid" != "x" ]
then
echo "$pid" | xargs kill -"${1:-9}"
fi