dgy
/
hexagons
Archived
1
0
Fork 0

las cosas chiquitas de siempre. mantenimiento y todo eso

This commit is contained in:
deadguy 2019-07-16 16:34:46 -03:00
parent 7eecda04f3
commit 6c7e4ef7ad
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
15 changed files with 67 additions and 113 deletions

View File

@ -2,7 +2,7 @@
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/deadguy/.gtkrc-2.0.mine"
gtk-theme-name="8088"
gtk-theme-name="Minwaita-Dark"
gtk-icon-theme-name="ArchLabs-Light"
gtk-font-name="Noto Sans Display 10"
gtk-cursor-theme-name="Alkano"

View File

@ -1,7 +1,7 @@
[Settings]
gtk-application-prefer-dark-theme=1
gtk-cursor-theme-name=Alkano
gtk-theme-name=8088
gtk-theme-name=Minwaita-Dark
gtk-icon-theme-name=ArchLabs-Light
gtk-font-name=Noto Sans Display 10
gtk-cursor-theme-size=0

View File

@ -4,16 +4,14 @@
# - Add ``needsterminal`` for commands that use the terminal
# - Add ``copiousoutput`` for commands that dump text to stdout
image/gif; sxiv-gif %s; test=test -n "$DISPLAY"
image/*; sxiv %s; test=test -n "$DISPLAY"
image/gif; sxiv-gif -p -b -a %s; test=test -n "$DISPLAY"
image/*; sxiv -p -b -q %s; test=test -n "$DISPLAY"
video/*; setsid nohup mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput
audio/*; setsid nohup mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput
application/pdf; zathura %s & disown; test=test -n "$DISPLAY"
# Autoview html
#text/html; w3m -I %{charset} -T text/html; copiousoutput
text/html; "$BROWSER" %s 2>/dev/null & disown; test=test -n "$DISPLAY"; needsterminal
text/html; w3m %s; nametemplate=%s.html; needsterminal
text/html; w3m -I %{charset} -T text/html; copiousoutput
text/plain; less %s; edit=nvim; compose=nvim; needsterminal
text/*; less %s; edit=nvim; compose=nvim; needsterminal

View File

@ -1,10 +1,11 @@
# vim: filetype=neomuttrc
source /usr/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated
source /home/deadguy/.config/mutt/accounts/1-alex.muttrc # mw-autogenerated
macro index,pager i1 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com" # mw-autogenerated
macro index,pager i2 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com" # mw-autogenerated
macro index,pager i3 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/3-zeta.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc" # mw-autogenerated
macro index,pager <F1> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com" # mw-autogenerated
macro index,pager <F2> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com" # mw-autogenerated
macro index,pager <F3> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/3-zeta.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc" # mw-autogenerated
set mailcap_path = /home/deadguy/.config/mutt/mailcap
source "~/.config/mutt/gpg.rc"
macro index O "<shell-escape>correo -Va<enter>" "run offlineimap to sync all mail"
@ -44,10 +45,10 @@ set status_on_top = yes
set alias_format = " %4n %t %-20a %r "
set date_format ="%a %d %b %R"
set index_format=" %T %{!%d %b} %1M %-28.28L %?X?&·? %s"
set pager_format=" %n  %T %s%*  %{!%d %b · %H:%M}  %?X?  %X ? %P  "
set status_format = " %f%?r? %r?   %m %?n?  %n ?  %?d?  %d ?%?t?  %t ?%?F?  %F? %>  %?p?  %p ?"
set pager_format=" %n  %T %s%*  %{!%d %b · %H:%M}  %?X?  %X ? %P  "
set status_format = " %f%?r? %r?   %m %?n?  %n ?  %?d?  %d ?%?t?  %t ?%?F?  %F? %>  %?p?  %p ?"
set vfolder_format = " %N %?n?%3n& ? %8m  · %f"
set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M"
set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M"
# no addressed to me, to me, group, cc, sent by me, mailing list
set to_chars=""
# unchanged mailbox, changed, read only, attach mode
@ -55,9 +56,9 @@ set status_chars = " "
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"
tag-transforms "replied" "↻ " \
"encrytpted" "" \
"signed" "" \
"attachment" "" \
"encrytpted" " " \
"signed" " " \
"attachment" " " \
# The formats must start with 'G' and the entire sequence is case sensitive.
tag-formats "replied" "GR" \
@ -67,19 +68,19 @@ tag-formats "replied" "GR" \
# powerline status bar hack
color status white black
color status green black ''
color status yellow black ''
color status red black ''
color status brightblack blue '(.*) ' 1
color status blue black '.*( )' 1
color status black blue '\s* [0-9]+\s*'
color status blue black '( ).*$' 1
color status yellow black '( )\s*\s*[0-9]+\s*' 1
color status black yellow '\s*\s*[0-9]+\s*'
color status blue yellow '( ) ([0-9]+%|all|end) \s*' 1
color status black blue ' ([0-9]+%|all|end) \s*'
color status yellow black '( )\s* ' 1
color status default black ' '
color status green black ' '
color status yellow black ' '
color status red black ' '
color status brightblack blue '(.*) ' 1
color status blue black '.*( )' 1
color status black blue '\s* [0-9]+\s*'
color status blue black '( ).*$' 1
color status yellow black '( )\s* \s*[0-9]+\s*' 1
color status black yellow '\s* \s*[0-9]+\s*'
color status blue yellow '( ) ([0-9]+%|all|end)  \s*' 1
color status black blue ' ([0-9]+%|all|end)  \s*'
color status yellow black '( )\s* ' 1
color status default black ' '
ignore * ## Ignore all headers
unignore from: to: cc: date: subject: ## Show only these

View File

@ -1,23 +1,16 @@
{
"suggest.triggerAfterInsertEnter": false,
"suggest.noselect": false,
"suggest.snippetIndicator": "★",
"suggest.timeout": 500,
"suggest.minTriggerInputLength": 2,
"suggest.detailField":"abbr",
"suggest.triggerCompletionWait": 100,
"suggest.echodocSupport": true,
"suggest.enablePreview": true,
"diagnostic.displayByAle": true,
"diagnostic.refreshOnInsertMode": true,
"diagnostic.messageTarget": "float",
"diagnostic.virtualText": true,
"diagnostic.checkCurrentLine": true,
"coc.preferences.hoverTarget": "echo",
"signature.target": "echo",
"suggest.maxCompleteItemCount": 20,
"codeLens.enable": true,
"coc.preferences.formatOnSaveFiletypes": [],
"python.autoComplete.addBrackets": true,
"emmet.includeLanguages": {"vue-html": "html", "javascript": "javascriptreact"},
"tsserver.enableJavascript": true,

View File

@ -5,6 +5,10 @@
" nnoremap <buffer><silent> gO :call man#showtoc()<Enter>
""
let w:airline_disabled = 1
set laststatus=0
set textwidth=80
function! man#showtoc() abort
let l:bufname = bufname('%')
let l:info = getloclist(0, { 'winid': 1 })

View File

@ -25,6 +25,7 @@ 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 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'sheerun/vim-polyglot'
Plug 'tmsvg/pear-tree'
@ -118,6 +119,7 @@ if &readonly
set colorcolumn=0
set signcolumn=no
let g:ale_disabled
let w:airline_disabled = 1
endif
" }}}
" {{{ Ale
@ -167,7 +169,7 @@ nmap <silent> <F10> <Plug>(ale_previous_wrap)
nmap <silent> <F11> <Plug>(ale_next_wrap)
" }}}
" CoC {{{
let g:coc_global_extensions = ['coc-vimlsp', 'coc-stylelint', 'coc-vetur', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-eslint', 'coc-prettier', 'coc-python']
let g:coc_global_extensions = ['coc-vimlsp', 'coc-stylelint', 'coc-vetur', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-eslint', 'coc-prettier']
" Remap keys for gotos
nmap <silent> <leader>ld <Plug>(coc-definition)
@ -245,20 +247,27 @@ let g:polyglot_disabled = ['javascript', 'jsx', 'typescript', 'json', 'python']
let g:jsx_ext_required = 1
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', 'c'], ['warning', 'error', 'z']]
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#show_splits = 0
let g:airline#extensions#tabline#show_buffers = 0
let g:airline#extensions#tabline#show_tab_count = 0
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#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
@ -266,16 +275,19 @@ if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_left_sep = ' '
let g:airline_right_sep = ' '
let g:airline_right_sep = ' '
let g:airline_left_alt_sep = ' '
let g:airline_right_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_theme='moonfly'
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
@ -322,8 +334,6 @@ if !exists("autocommands_loaded") && has("autocmd")
aug on_save
au BufWritePre * :%s/\s\+$//e " Auto remove all trailing whitespace on :w
au BufWritePost ~/.Xresources,~/.Xdefaults !xrdb %
au BufWritePost ~/.config/nvim/init.vim source $MYVIMRC
au BufWritePost init.vim source $MYVIMRC " Editing in dotfiles repo
aug END
aug on_quit
@ -375,7 +385,6 @@ if !exists("autocommands_loaded") && has("autocmd")
aug file_types
au FileType * setl formatoptions-=cro " Disables automatic commenting on newline
au BufRead,BufNewFile man set textwidth=80
au BufRead,BufNewFile *.md set filetype=markdown
au BufRead,BufNewFile *.conf set filetype=config
au BufRead,BufNewFile *.bash* set filetype=sh
@ -454,23 +463,21 @@ let g:my_active_terminal_job_id = -1
function! LaunchTerminal() range
silent exe "normal! :12split\n"
silent exe "normal! :terminal\n"
exe "normal! G\n"
call SetActiveTerminalJobID()
endfunction
function! LaunchSC() range abort
silent exe "normal! :tabnew\n"
silent exe "normal! :terminal\n"
exe "normal! G\n"
call SetActiveTerminalJobID()
call jobsend(g:my_active_terminal_job_id, "scsynth -u 57110\r")
sleep 2200ms
silent exe "normal! :vsplit\n"
silent exe "normal! :terminal\n"
exe "normal! G\n"
call SetActiveTerminalJobID()
call jobsend(g:my_active_terminal_job_id, "sclang -D ~/Music/LiveCoding/foxdot.scd\r")
silent exe "normal! :tabprev\n"
silent exe "normal! <cr>\n"
sleep 2200ms
endfunction
@ -666,27 +673,6 @@ tnoremap <M-l> <C-\><C-n><C-w>l
"}}}
" }}}
" Functions {{{
" Don't close window when deleting a buffer
command! Bclose call <SID>BufcloseCloseIt()
function! <SID>BufcloseCloseIt()
let l:currentBufNum = bufnr("%")
let l:alternateBufNum = bufnr("#")
if buflisted(l:alternateBufNum)
buffer #
else
bnext
endif
if bufnr("%") == l:currentBufNum
new
endif
if buflisted(l:currentBufNum)
execute("bdelete! ".l:currentBufNum)
endif
endfunction
function! CmdLine(str)
call feedkeys(":" . a:str)
endfunction

View File

@ -1,23 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import ranger.api
old_hook_init = ranger.api.hook_init
def hook_init(fm):
def on_cd():
if fm.thisdir:
title = os.path.basename(fm.thisdir.path)
sys.stdout.write("\033k" + "ranger:" + title + "\033\\")
sys.stdout.flush()
fm.signal_bind('cd', on_cd)
return old_hook_init(fm)
ranger.api.hook_init = hook_init

View File

@ -12,7 +12,6 @@ alias torr='transmission-remote-cli'
alias cal='calcurse'
alias py='python '
alias py2='python2 '
alias ytv='youtube-viewer'
alias git='lab'
alias help='run-help'
alias p='pacui'

View File

@ -227,11 +227,6 @@ ar-button,
font-size: 10pt !important;
}
tab .tab-icon,
.tab-icon-image {
filter: invert(1); /* Remove invert(1) to make it dark */
}
:root:not([customizing]) .tab-line {
display: none;
}

View File

@ -48,7 +48,7 @@ set -g set-titles on
set -g set-titles-string "#T"
set -g status-interval 1
set -g status-left ''
set -g status-right '#(txbar)#[fg=colour4] %R #[fg=colour10]#S:#[fg=colour14]#I.#P'
set -g status-right '#(txbar) #[fg=colour134]%a %d #[fg=colour167]%R #[fg=colour10]#S:#[fg=colour14]#I.#P'
set -g window-status-separator ' '
set -g window-status-current-style fg=colour3
set -g window-status-activity-style bg=colour0,fg=colour15
@ -131,7 +131,7 @@ bind-key w choose-tree -Zw "swap-window -t '%%'"
bind-key s choose-tree -Zw "swap-pane -t '%%'"
bind-key m choose-tree -Zw "move-pane -t '%%'"
# Urlview
# Urlscan
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlscan" '$SHELL -c "urlscan < /tmp/tmux-buffer"'
# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard

1
.zshrc
View File

@ -117,6 +117,7 @@ setopt SHARE_HISTORY
foreach extra (
agkozak-zsh-prompt/agkozak-zsh-prompt.plugin.zsh
zsh-completions/zsh-completions.plugin.zsh
forgit/forgit.plugin.zsh
up.plugin.zsh
k.sh
teclas.zsh

View File

@ -34,7 +34,6 @@ downgrade
dunst
ecryptfs-utils
efibootmgr
electron
eslint
ethtool
exfat-utils
@ -47,6 +46,7 @@ file-roller
filezilla
firefox
flex
fortune-mod
gcc
ghostscript
gimp-plugin-gmic
@ -117,6 +117,7 @@ oblogout
offlineimap
os-prober
p7zip
pacgraph
pacui
parallel
pass
@ -136,7 +137,6 @@ pulseaudio-bluetooth
pulseaudio-jack
pygmentize
python-glfw
python-isort
python-language-server
python-neovim
python-numpy
@ -144,12 +144,14 @@ python-opengl
python-pdoc
python-pip
python-pydocstyle
python-pylint
python-pyperclip
python-pytest-flake8
python-rope
python-setproctitle
python-virtualenv
python2-pygame-sdl2
qalculate-gtk
qt5ct
realtime-privileges
reiserfsprogs

View File

@ -1,6 +1,6 @@
6cord
bashmount
bfs
cfiles
colort-git
curseradio-git
figlet-fonts
@ -23,6 +23,7 @@ neovim-drop-in
otf-san-francisco
perl-extract-url
perl-uri-find
pikopixel
pmount
pymdown-extensions
python-lolcat
@ -33,6 +34,7 @@ realtimeconfigquickscan-git
reaper-bin
soulseekqt
stylelint
syncterm
task-spooler
terminus-font-ll2-td1
thermald

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
youtube-viewer -C -W -f -7 --results=5