dgy
/
hexagons
Archived
1
0
Fork 0

Chicos, Medianos, y Grandes

Empezando por los grandes. portee mis scripts de dmenu a rofi ya que
este ultimo ha alcanzado un grado de madurez que considero
satisfactoria. Seguramente haga falta ajustar algunos detalles pero eso
lo ire viendo con el uso.

En cuanto a medianos, afilar el hacha es una ocupacion constante, ojala
me pagaran por eso (creo que ya puse eso en un commit una vez...). Asi
que agregue cosas relevantes para golang, ajuste varios temas de ALE
porque me parecia que no andaban del todo bien, y agregue algunos
archivos que por alguna razon no estaban en el repo.
Siguiendo con los medianos, cambie un par de cosas en la configuracion
de neomutt, como poder tener fechas relativas en el inbox, usar elinks y
suprimir esos mensajes de autoview que eran puro ruido.

Chicos no se, varias cositas aqui y alla. Los cambios de QOL de siempre,
supongo.
Ah, y borre a la mierda el readme de /bin porque era medio cualquiera,
despues voy a ver de crear uno como la gente.
This commit is contained in:
DeadGit 2020-10-21 10:05:09 -03:00
parent 7fc579e1b0
commit 0f8ddd1bbe
No known key found for this signature in database
GPG Key ID: 9EAFB27F820FF83C
63 changed files with 1759 additions and 699 deletions

View File

@ -35,9 +35,9 @@
*.color7: #a89984
*.color15: #ffffff
dmenu.font: System Charcoal:pixelsize=16:antialias=true:autohint=true;
dmenu.background: #d8d8d8
dmenu.foreground: #380000
dmenu.font: System Charcoal:pixelsize=15:antialias=true:autohint=true;
dmenu.background: #080808
dmenu.foreground: #b3b1ad
dmenu.selbackground: #fccb00
dmenu.selforeground: #380000

View File

@ -1,14 +1,12 @@
window:
dimensions:
columns: 80
lines: 25
columns: 140
lines: 30
padding:
x: 15
x: 10
y: 5
# decorations: none
dynamic_title: true
scrolling:
@ -35,7 +33,13 @@ font:
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
offset:
x: 0
y: 1
y: 0
glyph_offset:
x: 0
y: 0
use_thin_strokes: true
draw_bold_text_with_bright_colors: false

View File

@ -1,10 +1,10 @@
#!/bin/sh
bspc rule -r "*"
bspmonis &
randbg &
bspc rule -r "*"
bspc config border_width 2
bspc config window_gap 6
bspc config top_padding 5
@ -44,8 +44,7 @@ bspc config active_border_color "$(get_xrdb color8)"
bspc config presel_feedback_color "$(get_xrdb color6)"
# Flotantes
bspc rule -a Catia state=floating
bspc rule -a Cadence state=floating
bspc rule -a QjackCtl state=floating
bspc rule -a mpv state=floating
bspc rule -a Alacritty:flota state=floating
bspc rule -a Sxiv:flota state=floating

View File

@ -272,6 +272,7 @@ map za $apack "$f".zip $f
map zu $file-roller "$f"
map zx $atool --each --extract "$f"
map zg $hx add $fs
map zf $hx add $fs .
map zn newfold
map i push A<c-a> # at the very beginning

View File

@ -11,6 +11,14 @@ audio_output {
name "Pulse Audio"
}
#audio_output {
# type "alsa"
# name "ALSA sound card"
# # Optional
# #device "iec958:CARD=Intel,DEV=0"
# #mixer_control "PCM"
#}
audio_output {
type "fifo"
name "Visualizer"

View File

@ -4,8 +4,8 @@ text/html; elinks -no-connect -dump -dump-charset UTF-8 -dump-width 140 -default
text/x-diff; colordiff; copiousoutput
text/x-patch; colordiff; copiousoutput
image/*; openfile %s ;
video/*; setsid mpv --quiet %s &; copiousoutput
video/*; setsid mpv --quiet--keep-open -
audio/*; mpv %s ;
application/pdf; openfile %s ;
application/pdf; zathura --fork - && sleep 1; test=test -n "$DISPLAY"
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
application/pgp-keys; gpg --import '%s'; copiousoutput;

View File

@ -8,11 +8,13 @@ unset help
set mailcap_path = ~/.config/neomutt/mailcap
set sort = threads
set sort_aux = reverse-last-date-received
set strict_threads
set smtp_authenticators = 'gssapi:login'
set attribution = "En %{!%F a las %R}, %n escribió:"
set date_format = "%F %R"
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set send_charset = "utf-8"
set forward_format = "Fwd: %s" # Format of subject when forwarding
set sleep_time = 0 # Pause 0 seconds for informational messages
set mail_check = 60 # To avoid lags using IMAP
@ -27,12 +29,14 @@ set sidebar_visible = no # Not needed
set markers = no # Disables the `+` displayed at line wraps
set mark_old = no # Unread mail stay unread until read
set wait_key = no # mutt won't ask "press key to continue"
set recall = no # that's what R keybind is for
set fast_reply # skip to compose when replying
set fcc_attach # save attachments with the body
set forward_quote # include message in forwards
set reverse_name # reply as whomever it was to
set include # include message in replies
set menu_scroll # scroll in menus
set autoedit
set edit_headers
set sort_re
set arrow_cursor
@ -60,12 +64,6 @@ unhdr_order *
unignore from subject to cc date x-mailer x-url user-agent
hdr_order date from to cc subject
index-format-hook date "~d<1d" "Today"
index-format-hook date "~d<2d" "Yesterday"
index-format-hook date "~d<1w" "%[%A]"
index-format-hook date "~d<1y" "%[%b %d]"
index-format-hook date "~A" "%[%b %y]"
# Warns if replying to multiple recipt email
reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"

View File

@ -1,12 +1,12 @@
# vim: filetype=neomuttrc
# ----------------------------------------------------------------------------
# Powerline / nerdfont
# This is a bit "hackish" due to neomutt limitations
#
# Author: Sheoak <contact [at] sheoak.fr>
# ----------------------------------------------------------------------------
set index_format=" %zs %zc %zt %{!%F %R} %-28.28L %?M?(%1M)& ? %?X?& ? %s"
# Author: Sheoak https://github.com/sheoak/neomutt-powerline-nerdfonts
set index_format=" %zs %zc %zt %<[y?%<[m?%<[d?%[%R ]&%[%a %d]>&%[%b %d]>&%[%F ]> %-28.28L %?M?(%1M)& ? %?X?& ? %s"
set pager_format="\n %n %T %s%*  %{!%F · %R} %?X? %X?%P  \n \n"
set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? \n \n"
set vfolder_format = " %N %?n?%3n& ? %8m  · %f"

View File

@ -0,0 +1,36 @@
setlocal noexpandtab
setlocal shiftwidth=4
setlocal tabstop=4
setlocal foldmethod=syntax
let g:go_autodetect_gopath = 1
let g:go_imports_autosave = 1
let g:go_doc_popup_window = 1
let g:go_gopls_enabled = 1
let g:go_fmt_command = "goimports"
let g:go_list_type = "quickfix"
" Go syntax highlighting
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_function_calls = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_operators = 1
" Status line types/signatures
let g:go_auto_type_info = 1
" Add the failing test name to the output of :GoTest
let g:go_test_show_name = 1
let b:ale_linters = ['gopls']
inoremap <buffer> . .<C-x><C-o>
nmap <buffer><localleader>t :GoTest!<CR>
nmap <buffer><localleader>v :GoVet!<CR>
nmap <buffer><localleader>b :GoBuild!<CR>
nmap <buffer><localleader>i :GoInstall!<CR>
nmap <buffer><localleader>l :GoMetaLinter!<CR>
nmap <buffer><localleader>r :GoRun %<CR>
nmap <buffer><localleader>d :GoDebugStart!<CR>
nmap <buffer><leader>r :GoRun!<CR>

View File

@ -1,2 +1,2 @@
let b:ale_fixers = ['prettier_standard']
let b:ale_linters = ['prettier_standard']
let b:ale_linters = ['tidy']
let b:ale_fixers = ['prettier']

View File

@ -1,2 +1,2 @@
let b:ale_linters = ['prettier_standard']
let b:ale_fixers = ['prettier_standard']
let b:ale_linters = ['prettier']
let b:ale_fixers = ['prettier']

View File

@ -2,7 +2,7 @@ setlocal nonumber norelativenumber laststatus=0 showmode
setlocal signcolumn=no textwidth=80 wrap sw=2
setlocal tabstop=2 expandtab softtabstop=2 linebreak
setlocal autoindent noruler colorcolumn=80 synmaxcol=0
setlocal spell spelllang=es,en_us,cjk
setlocal spell spelllang=es_AR,en_us,cjk
setlocal formatoptions&
setlocal formatoptions+=tqn
setlocal formatlistpat=^\\s*\\(\\d\\+\\\|[a-z]\\)[\\].)]\\s*
@ -26,5 +26,5 @@ inoremap <buffer> <silent> <C-d> <esc>:.s/\[\]/\[x\]<Enter>
nnoremap <buffer> <silent> ]] :<C-u>call <SID>dead#functions#JumpToNextHeading("down", v:count1)<CR>
nnoremap <buffer> <silent> [[ :<C-u>call <SID>dead#functions#JumpToNextHeading("up", v:count1)<CR>
let b:ale_fixers = ['prettier_standard']
let b:ale_linters = ['prettier']
let b:ale_fixers = ['prettier']

View File

@ -0,0 +1,45 @@
setlocal cursorline
setlocal nospell
setlocal nolist
" Close with q
nnoremap <buffer> q :<C-u>close<CR>
nnoremap <buffer><silent> <C-j> :<C-u>call <SID>older()<CR>
nnoremap <buffer><silent> <C-k> :<C-u>call <SID>newer()<CR>
function! s:is_quickfix() abort
return getwininfo(win_getid())[0].quickfix
endfunction
if !exists('*s:older')
function! s:older() abort
try
if s:is_quickfix()
colder
else
lolder
endif
catch
echohl ErrorMsg
echo substitute(v:exception, 'Vim(.*):', '', '')
echohl None
endtry
endfunction
endif
if !exists('*s:newer')
function! s:newer() abort
try
if s:is_quickfix()
cnewer
else
lnewer
endif
catch
echohl ErrorMsg
echo substitute(v:exception, 'Vim(.*):', '', '')
echohl None
endtry
endfunction
endif

View File

@ -1,5 +1,3 @@
setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab
if !exists("b:sh_indent_options")
let b:sh_indent_options = {}
endif

View File

@ -0,0 +1,6 @@
setlocal nofoldenable foldcolumn=0
setlocal nonumber norelativenumber
setlocal signcolumn=no
setlocal wrap noruler
startinsert!

View File

@ -1,2 +1,2 @@
setlocal spell spelllang=es,en_us
setlocal spell spelllang=es_AR,en_us
inoremap <buffer> <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u

View File

@ -0,0 +1 @@
let b:ale_linters = ['vint']

View File

@ -0,0 +1 @@
let b:ale_linters = ['prettier']

View File

@ -0,0 +1,2 @@
setlocal shiftwidth=2

View File

@ -1,9 +1,8 @@
" Config
nnoremap <silent><F6> :vsplit<CR><Bar>:CocConfig<CR>
if exists('b:coc_enabled=1')
set completeopt-=preview
nnoremap <silent><F6> :vsplit<CR><Bar>:CocConfig<CR>
let g:coc_global_extensions = ['coc-highlight', 'coc-snippets', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-emmet']
inoremap <buffer><silent><expr> <TAB>
@ -49,4 +48,12 @@ if exists('b:coc_enabled=1')
au CursorHold * silent call CocActionAsync('highlight')
au User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
aug END
else
set omnifunc=syntaxcomplete#Complete
" open omni completion menu closing previous if open and opening new menu without changing the text
inoremap <silent> <expr> <C-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
\ '<C-x><C-o><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
" open user completion menu closing previous if open and opening new menu without changing the text
inoremap <silent> <expr> <S-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
\ '<C-x><C-u><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
endif

View File

@ -0,0 +1,4 @@
augroup Profugo
autocmd!
autocmd BufReadPost fugitive:///*//2/*,fugitive:///*//3/* setlocal nomodifiable readonly
augroup END

View File

@ -20,3 +20,11 @@ function! dead#functions#JumpToNextHeading(direction, count)
silent execute "normal! " . col . "|"
unlet col
endfunction
function! dead#functions#NewMail()
let l:path = system('mktemp --tmpdir XXXXXXXXXX.eml')
execute 'sp' l:path
" See the help for `skeleton`.
0r ~/.config/nvim/templates/correo.skeleton | w | $
endfunction
command! Mail call dead#functions#NewMail()

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
setlocal formatexpr=CocAction('formatSelected')

View File

@ -0,0 +1 @@
au BufNewFile,BufRead neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\} set filetype=mail

View File

@ -0,0 +1 @@
au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc

View File

@ -0,0 +1 @@
setlocal formatexpr=CocAction('formatSelected')

View File

@ -1 +1,2 @@
setlocal noexpandtab
setlocal nolist

View File

@ -1,9 +0,0 @@
setlocal noexpandtab
setlocal shiftwidth=4
setlocal tabstop=4
aug miscs
au!
au CursorHold * silent call CocActionAsync('highlight')
au User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
aug END

View File

@ -0,0 +1,56 @@
" The virgin plugin vs the chad local options
setlocal nonumber norelativenumber laststatus=0 showmode
setlocal signcolumn=no textwidth=80 wrap sw=2
setlocal tabstop=2 expandtab softtabstop=2 linebreak
setlocal autoindent noruler colorcolumn=80
setlocal spell spelllang=es_AR,en_us
function! s:OnExit(job_id, code, event) dict
if a:code == 0
" NeoMutt successfully sent the mail. Get rid of the terminal buffer and window.
" We can't use plain `bd!` because the terminal window may no longer have focus.
execute 'bd!' s:bufnr
" Quit if we succeeded in sending the email and there's only one buffer left.
if len(getbufinfo({'buflisted': 1})) == 1
quit
endif
else
" We didn't send the mail. Go back to the buffer with the message. FIXME: we
" probably shouldn't rely on a [plugin][1].
execute 'Bd!' s:bufnr
endif
endfunction
function! s:SendMail()
let l:message_file = expand('%')
if l:message_file != ''
update
else
" Cope with the buffer not having an associated file. TODO: delete this file if we
" succeed in sending the mail?
let l:message_file = system('mktemp')
execute 'w!' l:message_file
endif
enew
" Tell NeoMutt to use `true` as the editor. This makes it show the compose menu
" directly instead of starting Vim inside of Vim. Also don't use the curses pinentry
" program. There seem to be some issues when using it from NeoMutt inside Vim inside
" screen(1).
call termopen('VISUAL=true PINENTRY_USER_DATA=gtk neomutt ' .
\ "-e 'set postpone=no sidebar_visible=no assumed_charset=utf-8' " .
\ "-H " . l:message_file, {'on_exit': function('s:OnExit')})
let s:bufnr = bufnr('%')
startinsert
endfunction
nnoremap <buffer> <F7> [s
nnoremap <buffer> <F8> ]s
nnoremap <buffer> <F9> z=
nnoremap <buffer> <F10> zg
inoremap <buffer> <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
nnoremap <buffer> <silent> <C-H> :<C-U>call <SID>SendMail()<CR>
nnoremap <buffer> <silent> <localleader>f gg/From:<CR>:nohlsearch<CR>4lC:
nnoremap <buffer> <silent> <localleader>t gg/To:<CR>:nohlsearch<CR>2lC:
nnoremap <buffer> <silent> <localleader>c gg/Cc:<CR>:nohlsearch<CR>2lC:
nnoremap <buffer> <silent> <localleader>b gg/Bcc:<CR>:nohlsearch<CR>3lC:
nnoremap <buffer> <silent> <localleader>s gg/Subject:<CR>:nohlsearch<CR>7lC:

View File

@ -15,7 +15,9 @@ if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | call coc#util#install() | source $MYVIMRC
endif
let $GIT_EDITOR = 'nvr -cc split --remote-wait'
let mapleader="\<SPACE>"
let maplocalleader=','
@ -32,12 +34,15 @@ let g:srcery_underline = 1
let g:srcery_undercurl = 1
colorscheme srcery
call plug#begin(stdpath('data') . '/plugged')
Plug 'dense-analysis/ale'
Plug 'lervag/vimtex', {'for': 'latex'}
Plug 'neoclide/coc.nvim', {'branch': 'release', 'for': ['javascript', 'html', 'css', 'json', 'typescript', 'jsx', 'tsx', 'go']}
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf.vim'
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
call plug#end()
if filereadable(expand("~/.local/share/nvim/site/autoload/plug.vim"))
call plug#begin(stdpath('data') . '/plugged')
Plug 'dense-analysis/ale'
Plug 'lervag/vimtex', {'for': 'latex'}
Plug 'neoclide/coc.nvim', {'branch': 'release', 'for': ['javascript', 'html', 'css', 'json', 'typescript', 'jsx', 'tsx']}
Plug 'fatih/vim-go', {'for': 'go', 'do': ':GoInstallBinaries'}
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf.vim'
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
call plug#end()
endif

View File

@ -15,6 +15,7 @@ if !exists('autocommands_loaded') && has('autocmd')
au FileType gitcommit,gitrebase,gitconfig set bufhidden=delete
au BufNewFile,BufRead requirements*.txt set syntax=python
au FileType fzf tnoremap <buffer> <esc> <c-c>
au BufRead,BufNewFile /tmp/neomutt* set filetype=mail
aug END
aug StatusLine

View File

@ -0,0 +1,79 @@
let g:netrw_dirhistmax=0
let g:netrw_banner = 0
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } }
aug defx_things
au!
" 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
call defx#custom#option('_', {
\ 'columns': 'mark:indent:git:icon:filename:type',
\ 'winwidth': 30,
\ 'buffer_name': '',
\ 'split': 'vertical',
\ 'direction': 'topleft',
\ 'show_ignored_files': 0,
\ 'toggle': 1,
\ 'resume': 1
\ })
call defx#custom#column('icon', {
\ 'directory_icon': '▷',
\ 'opened_icon': '▼',
\ 'root_icon': '~',
\ })
call defx#custom#column('mark', {
\ 'readonly_icon': '',
\ 'selected_icon': '',
\ })
function! s:defx_my_settings() abort
setl nonumber
setl norelativenumber
setl listchars=
setl nofoldenable
setl foldmethod=manual
nnoremap <silent><buffer><expr> o defx#do_action('open_tree', 'toggle')
nnoremap <silent><buffer><expr> l defx#do_action('open_tree')
nnoremap <silent><buffer><expr> h defx#do_action('close_tree')
nnoremap <silent><buffer><expr> <CR> defx#do_action('multi', ['drop', 'quit'])
nnoremap <silent><buffer><expr> <C-v> defx#do_action('multi', [['open', 'botright vsplit'], 'quit'])
nnoremap <silent><buffer><expr> <C-x> defx#do_action('multi', [['open', 'topleft split'], 'quit'])
nnoremap <silent><buffer><expr> t defx#do_action('multi', [['drop', 'tabnew'], 'quit'])
nnoremap <silent><buffer><expr> D defx#do_action('new_directory')
nnoremap <silent><buffer><expr> F defx#do_action('new_multiple_files')
nnoremap <silent><buffer><expr> dd defx#do_action('remove')
nnoremap <silent><buffer><expr> r defx#do_action('rename')
nnoremap <silent><buffer><expr> x defx#do_action('execute_system')
nnoremap <silent><buffer><expr> . defx#do_action('toggle_ignored_files')
nnoremap <silent><buffer><expr> y defx#do_action('yank_path')
nnoremap <silent><buffer><expr> <BS> defx#do_action('cd', ['..'])
nnoremap <silent><buffer><expr> ~ defx#async_action('cd')
nnoremap <silent><buffer><expr> q defx#do_action('quit')
nnoremap <silent><buffer><expr> ' defx#do_action('toggle_select') . 'j'
nnoremap <silent><buffer><expr> * defx#do_action('toggle_select_all')
nnoremap <silent><buffer><expr> <C-r> defx#do_action('redraw')
nnoremap <silent><buffer><expr> S defx#do_action('toggle_sort', 'Time')
nnoremap <silent><buffer><expr> cd defx#do_action('change_vim_cwd')
nnoremap <silent><buffer><expr><nowait> / defx#do_action('cd', getcwd())
nnoremap <silent><buffer><expr><nowait> c defx#do_action('copy')
nnoremap <silent><buffer><expr><nowait> m defx#do_action('move')
nnoremap <silent><buffer><expr><nowait> p defx#do_action('paste')
nnoremap <silent><buffer><expr> j
\ line('.') == line('$') ? 'gg' : 'j'
nnoremap <silent><buffer><expr> k
\ line('.') == 1 ? 'G' : 'k'
endfunction
nnoremap <silent> <F5> :Defx -toggle<CR>

View File

@ -1,5 +1,8 @@
let g:gitgutter_highlight_linenrs = 1
let g:gitgutter_set_sign_backgrounds = 1
let g:gitgutter_enabled = 0
let g:gitgutter_realtime = 0
let g:gitgutter_eager = 0
let g:gitgutter_terminal_reports_focus=0
let g:gitgutter_map_keys = 0
let g:gitgutter_highlight_linenrs = 1
let g:gitgutter_set_sign_backgrounds = 1
let g:gitgutter_grep = 'rg --color=never'

View File

@ -1,10 +1,10 @@
" Ñ master race
nnoremap ñ ;
nnoremap Ñ ,
nnoremap {q :cprev
nnoremap }q :cnext
nnoremap {Q :cfirst
nnoremap }Q :clast
nnoremap <silent> {q :cprev<CR>
nnoremap <silent> }q :cnext<CR>
nnoremap <silent> {Q :cfirst<CR>
nnoremap <silent> }Q :clast<CR>
nnoremap <silent> {o :call append(line('.'), '')<CR>
nnoremap <silent> }o :call append(line('.')-1, '')<CR>

View File

@ -0,0 +1,5 @@
tnoremap <Esc> <C-\><C-n>
tnoremap <M-h> <C-\><C-n><C-w>h
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

View File

@ -43,6 +43,7 @@ set nowritebackup
set undofile
set undolevels=1000
set undoreload=10000
set completeopt=menu,menuone,noinsert,noselect
set listchars+=precedes:<,extends:>
set diffopt+=algorithm:histogram,indent-heuristic
set diffopt+=foldcolumn:0

View File

@ -1,7 +1,4 @@
# BSPWM Hotkeys
ctrl + alt + r
bspc wm -r
super + {_,shift} + w
bspc node -{c,k}
@ -46,22 +43,25 @@ super + {_,shift} + ntilde
minve {hide,show}
super + space
j4-dmenu-desktop --dmenu="dmenu -i -w 250 -p ' ' " --no-generic
rofi -show drun -theme dprompt
super + {b,q,s,n,p,t,r,d,i}
{$BROWSER,powermenu,vent,escribir,pom,tv,ref,leer,wpadd}
super + {b,q,s,n,p,t,r,d}
{$BROWSER,powermenu,rofi -show window,escribir,pom,tv,ref,leer}
super + ctrl + d
deci
super + {_,shift} + g
{grabar,corte}
super + {z,x,v}
$TERMINAL {_,--class=flota,--class=flota -e pulsemixer}
super + {z,x,v,c}
$TERMINAL {_,--class=flota,--class=flota -e pulsemixer,--class=flota -e nvim +Mail +1bw +startinsert}
super + {F1,F2,F3}
{fecha,tapa,notifocus}
ctrl + alt + {x,l}
{xkill,xset s activate}
ctrl + alt + {x,l,r}
{xkill,xset s activate,bspc wm -r}
Print
pantallazo

View File

@ -23,7 +23,7 @@ set -g base-index 1
# Panes
set -g pane-base-index 1
set -g aggressive-resize on
set -wg main-pane-width 100
set -wg main-pane-width 80
# Notificaciones
set -g monitor-activity on
@ -39,11 +39,11 @@ set -g status-interval 60
set -g mode-style 'fg=#EEEEEE,bg=#75507B'
set -g message-command-style bg=colour0,fg=colour13
set -g message-style 'bg=#222222,fg=white,italics'
set -g status-style "bg=default,fg=#999999"
set -g status-style "bg=#080808,fg=#999999"
set -g status-left '#[fg=#555555]#S: '
set -g status-right '#(txbar) #[fg=colour134]%a %d #[fg=colour167]%R'
set -g window-status-separator ' '
set -g window-status-current-style fg=colour3
set -g window-status-current-style bg=default,fg=colour3
set -g window-status-activity-style bg=default,fg=colour15,italics
set -g window-status-format '#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}'
set -g window-status-current-format '#{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}}'

View File

@ -86,7 +86,6 @@ bindkey -M viins '^[[B' history-substring-search-down
bindkey -M viins '^E' edit-command-line
bindkey '^L' tmux-clear-screen
bindkey '^X' run-with-sudo
bindkey '^G' "dotbare fedit^J"
# }}}
# Normal {{{
bindkey -M vicmd 'j' down-line # Override down-line-or-history.

View File

@ -4,15 +4,16 @@ alias \
x='xui' \
m='neomutt' \
z='zathura' \
g='lab' \
se='sudoedit' \
am='alsamixer' \
am='alsamixer -c 1' \
pm='pulsemixer' \
nb='newsboat -q' \
py='python ' \
vdi='nvim -d' \
vdf='nvim -d' \
git='lab' \
irc='catgirl' \
play='ncmpcpp' \
glow='glow -p -w 80' \
pyserv='python -m http.server'
# XBPS
@ -89,7 +90,7 @@ alias \
ping='ping -c 5' \
dd='dd status=progress' \
dfc='dfc -dmT' \
strim='mpv --jack-port="OBS Jack Input"' \
# strim='mpv --jack-port="OBS Jack Input"' \
slrn='slrn -i ~/.config/slrn/rc -f ~/.config/slrn/jnewsrc.club --create'
# Comandos

View File

@ -1,4 +1,5 @@
hash -d gl=$XDG_DATA_HOME
hash -d gg=$GOPATH
hash -d ga=$HOME/.local/apps
hash -d gb=$HOME/.local/bin
hash -d g.=$XDG_CONFIG_HOME

View File

@ -1,5 +1,4 @@
foreach plugin (
dotbare/dotbare.plugin.zsh
zsh-autopair/autopair.plugin.zsh
zsh-system-clipboard/zsh-system-clipboard.plugin.zsh
zsh-history-substring-search/zsh-history-substring-search.plugin.zsh
@ -7,6 +6,5 @@ foreach plugin (
source $ZDOTDIR/conf/$plugin
}
bindkey -s '^G' "dotbare fedit"^j
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'

View File

@ -1,218 +1,239 @@
export LF_ICONS="\
di=:\
fi=:\
ln=:\
or=:\
ex=:\
.git=:\
Desktop=:\
Documents=:\
Downloads=:\
Music=:\
Pictures=:\
Public=:\
Templates=:\
Videos=:\
mail=:\
.mail=:\
.cache=:\
.config=:\
trash=:\
Trash=:\
bin=:\
hexagons=ﯟ:\
.Xdefaults=:\
.Xresources=:\
.bashprofile=:\
.zprofile=:\
.bashrc=:\
.zshrc=:\
.zshenv=:\
.dmrc=:\
.ds_store=:\
.fasd=:\
.gitconfig=:\
.gitignore=:\
.jack-settings=:\
.mime.types=:\
.nvidia-settings-rc=:\
.pam_environment=:\
.profile=:\
.recently-used=:\
.selected_editor=:\
.vimrc=:\
.xinputrc=:\
.xserverrc=:\
config=:\
dropbox=:\
di= :\
fi= :\
ln= :\
or= :\
ex= :\
.git= :\
Desktop= :\
Documents= :\
Downloads= :\
Music= :\
Pictures= :\
Public= :\
Templates= :\
Videos= :\
mail= :\
.mail= :\
.cache= :\
.config= :\
trash= :\
Trash= :\
bin= :\
hexagons= :\
xresources= :\
xinitrc= :\
.Xdefaults= :\
.Xresources= :\
.bashprofile= :\
.zprofile= :\
.bashrc= :\
.zshrc= :\
.zshenv= :\
.dmrc= :\
.ds_store= :\
.fasd= :\
.gitconfig= :\
.gitignore= :\
gitignore= :\
.jack-settings= :\
.mime.types= :\
.nvidia-settings-rc= :\
.pam_environment= :\
.profile= :\
.recently-used= :\
.selected_editor= :\
.vimrc= :\
.xinputrc= :\
.xserverrc= :\
config= :\
dropbox= :\
exact-match-case-sensitive-1.txt=X1:\
exact-match-case-sensitive-2=X2:\
favicon.ico=:\
gruntfile.coffee=:\
gruntfile.js=:\
gruntfile.ls=:\
gulpfile.coffee=:\
gulpfile.js=:\
gulpfile.ls=:\
ini=:\
ledger=:\
license=:\
mimeapps.list=:\
node_modules=:\
procfile=:\
react.jsx=:\
user-dirs.dirs=:\
Makefile=:\
TODO=:\
LICENSE=:\
COPYING=:\
*.7z=:\
*.ai=:\
*.apk=:\
*.avi=:\
*.bat=:\
*.bmp=:\
*.bz2=:\
*.c=ﭰ:\
*.c++=ﭱ:\
*.cab=:\
*.cbr=:\
*.cbz=:\
*.cc=ﭰ:\
*.clj=:\
*.cljc=:\
*.cljs=:\
*.coffee=:\
*.conf=:\
*.cp=ﭰ:\
*.cpio=:\
*.cpp=ﭱ:\
*.css=:\
*.cxx=ﭰ:\
*.d=:\
*.dart=:\
*.db=:\
*.deb=:\
*.diff=:\
*.dump=:\
*.edn=:\
*.ejs=:\
*.epub=:\
*.erl=:\
*.exe=:\
*.f#=:\
*.fish=:\
*.flac=:\
*.flv=:\
*.fs=:\
*.fsi=:\
*.fsscript=:\
*.fsx=:\
*.gem=:\
*.gif=:\
*.go=:\
*.gz=:\
*.gzip=:\
*.hbs=:\
*.hrl=:\
*.hs=:\
*.htm=:\
*.html=:\
*.ico=:\
*.ini=:\
*.java=:\
*.jl=:\
*.jpeg=:\
*.jpg=:\
*.js=:\
*.json=:\
*.jsx=:\
*.less=:\
*.lha=:\
*.lhs=:\
*.log=:\
*.lua=:\
*.lzh=:\
*.lzma=:\
*.m4a=:\
*.markdown=:\
*.md=:\
*.mkv=:\
favicon.ico= :\
gruntfile.coffee= :\
gruntfile.js= :\
gruntfile.ls= :\
gulpfile.coffee= :\
gulpfile.js= :\
gulpfile.ls= :\
ini= :\
ledger= :\
mimeapps.list= :\
node_modules= :\
procfile= :\
react.jsx= :\
user-dirs.dirs= :\
Makefile= :\
TODO= :\
LICENSE= :\
COPYING= :\
*.vim= :\
*.dmg= :\
*.tlf= :\
*.flf= :\
*.toml= :\
*.m3u= :\
*.pls= :\
*.woff=𝑾:\
*.woff2=𝑾:\
*.eot=𝑬:\
*.yaml= :\
*.yml= :\
*.wad=ﰁ :\
*.WAD=ﰁ :\
*.pk3= :\
*.doc= :\
*.docx= :\
*.webp= :\
*.aseprite= :\
*.bib=﬜ :\
*.7z= :\
*.ai= :\
*.apk= :\
*.avi= :\
*.bat= :\
*.bmp= :\
*.bz2= :\
*.c= :\
*.c++= :\
*.cab= :\
*.cbr= :\
*.cbz= :\
*.cc= :\
*.clj= :\
*.cljc= :\
*.cljs= :\
*.coffee= :\
*.conf= :\
*.cp= :\
*.cpio= :\
*.cpp= :\
*.css= :\
*.cxx= :\
*.d= :\
*.dart= :\
*.db= :\
*.deb= :\
*.diff= :\
*.dump= :\
*.edn= :\
*.ejs= :\
*.epub= :\
*.erl= :\
*.exe= :\
*.f#= :\
*.fish= :\
*.flac= :\
*.flv= :\
*.fs= :\
*.fsi= :\
*.fsscript= :\
*.fsx= :\
*.gem= :\
*.gif= :\
*.go= :\
*.gz= :\
*.gzip= :\
*.hbs= :\
*.hrl= :\
*.hs= :\
*.htm= :\
*.html= :\
*.ico= :\
*.ini= :\
*.java= :\
*.jl= :\
*.jpeg= :\
*.jpg= :\
*.js= :\
*.json= :\
*.jsx= :\
*.less= :\
*.lha= :\
*.lhs= :\
*.log= :\
*.lua= :\
*.lzh= :\
*.lzma= :\
*.m4a= :\
*.markdown= :\
*.md= :\
*.mkv= :\
*.ml=λ:\
*.mli=λ:\
*.mov=:\
*.mp3=:\
*.mp4=:\
*.mpeg=:\
*.mpg=:\
*.mustache=:\
*.ogg=:\
*.pdf=:\
*.php=:\
*.pl=:\
*.pm=:\
*.png=:\
*.psb=:\
*.psd=:\
*.py=:\
*.pyc=:\
*.pyd=:\
*.pyo=:\
*.rar=:\
*.rb=:\
*.rc=:\
*.rlib=:\
*.rpm=:\
*.rs=:\
*.rss=:\
*.scala=:\
*.scss=:\
*.sh=:\
*.slim=:\
*.sln=:\
*.sql=:\
*.styl=:\
*.suo=:\
*.t=:\
*.tar=:\
*.tgz=:\
*.ts=:\
*.twig=:\
*.vim=:\
*.vimrc=:\
*.wav=:\
*.webm=:\
*.xml=:\
*.xul=:\
*.xz=:\
*.yml=:\
*.zip=:\
*.zsh=:\
*.xcf=:\
*.tex=:\
*.txt=:\
*.lock=:\
*.h=ﭰ:\
*.o=:\
*.blend=:\
*.1=:\
*.jar=:\
*.desktop=:\
*.mk=:\
*.torrent=:\
*.added=:\
*.pem=:\
*.svg=:\
*.scd=:\
*.theme=:\
*.iso=:\
*.mid=:\
*.url=:\
*.part=:\
*.nfo=:\
*.pd=:\
*.ttf=:\
*.otf=:\
*.bdf=:\
*.pcf=:\
*.mov= :\
*.mp3= :\
*.mp4= :\
*.mpeg= :\
*.mpg= :\
*.mustache= :\
*.ogg= :\
*.pdf= :\
*.php= :\
*.pl= :\
*.pm= :\
*.png= :\
*.psb= :\
*.psd= :\
*.py= :\
*.pyc= :\
*.pyd= :\
*.pyo= :\
*.rar= :\
*.rb= :\
*.rc= :\
*.rlib= :\
*.rpm= :\
*.rs= :\
*.rss= :\
*.scala= :\
*.scss= :\
*.sh= :\
*.slim= :\
*.sln= :\
*.sql= :\
*.styl= :\
*.suo= :\
*.t= :\
*.tar= :\
*.tgz= :\
*.ts= :\
*.twig= :\
*.wav= :\
*.webm= :\
*.xml= :\
*.xul= :\
*.xz= :\
*.zip= :\
*.zsh= :\
*.kra= :\
*.xcf= :\
*.go= :\
*.tex= :\
*.txt= :\
*.lock= :\
*.h= :\
*.o= :\
*.blend= :\
*.1= :\
*.jar= :\
*.desktop= :\
*.mk= :\
*.torrent= :\
*.added= :\
*.pem= :\
*.svg= :\
*.scd= :\
*.theme= :\
*.iso= :\
*.mid= :\
*.url= :\
*.part= :\
*.nfo= :\
*.pd= :\
*.ttf= :\
*.otf= :\
*.bdf= :\
*.pcf= :\
"

View File

@ -1,309 +0,0 @@
bin
===
Estos son los scripts que uso con mi sistema. En su gran mayoría son para
agregar funcionalidad a mi window manager, BSPWM, pero pueden ser utilizados
fuera del mismo sin demasiado problema.\
Varios tienen a dmenu como su principal dependencia.
## [0x0](./0x0)
Postear texto y archivos a 0x0.st
## [actualizar](./actualizar)
Chequea si hay actualizaciones a paquetes instalados y enviá una notificación.
Basado en vpnd
## [ae](./ae)
Crea un listado del contenido de esta carpeta usando fzf y fd. El archivo
seleccionado es abierto en $EDITOR
## [agrandar](./agrandar)
BSPWM: agrandar nodo en cualquier dirección.
## [bandcamp](./bandcamp)
Solidarizar discos de bandcamp usando youtube-dl
## [brillo](./brillo)
Sube y baja el brillo usando xbacklight
## [cachetear](./cachetear)
Borrar el cache de paquetes viejos
## [cartero](./cartero)
Chequear si hay correo.
## [celu](./celu)
Para conectar el móvil a la computadora
## [cfg](./cfg)
Lista algunos archivos de configuración con fzf y abre el seleccionado en
$EDITOR
## [corte](./corte)
Terminar screencast
## [crear](./crear)
Crear un script en esta carpeta, hacerle chmod +x y abrir en $EDITOR
## [deci](./deci)
Una boludez con lolcat
## [disco](./disco)
Escuchar CDs con mpv
## [disks](./disks)
`du` pero mas cheto
## [dpi](./dpi)
Calculo para tener la cantidad de DPI adecuada en las fonts según la pantalla.
## [equiset](./equiset)
Apagar la pantalla con xset mas temprano o mas tarde según si la batería esta
puesta.
## [escribir](./escribir)
Crear posts para blog usando Hugo, o notas personales.
## [espejo](./espejo)
2 Monitores 1 --Cup-- digo, misma imagen
## [exeflock4](./exeflock4)
i3lock
## [fecha](./fecha)
No uso barra, con notificaciones me arreglo mejor.
## [foco](./foco)
BSPWM: enfocar nodo
## [fp](./fp)
Font preview robado de alguien mas. Requiere fzf y xdo
## [grabar](./grabar)
Grabar screencasts con ffmpeg.
## [hx](./hx)
Dotfile manager
## [leer](./leer)
Dmenu para abrir pdf con zathura
## [lfview](./lfview)
Previewer de LF
## [minve](./minve)
BSPWM: minimizar nodos con dmenu
## [monis](./monis)
Selector de monitores
## [mover](./mover)
BSPWM: mover nodo
## [notifocus](./notifocus)
No uso barra, con notificaciones me arreglo mejor.
## [paclist](./paclist)
Crear lista de paquetes instalados
## [pantallazo](./pantallazo)
Screenshot manager
## [pom](./pom)
Pomodoro timer
## [postear](./postear)
Git push para Hugo
## [powermenu](./powermenu)
Dmenu para power options
## [randbg](./randbg)
Fondo de pantalla random con hsetroot
## [ref](./ref)
Dmenu para cuando dibujo
## [setbg](./setbg)
Fondo de pantalla con hsetroot
## [sxiv-gif](./sxiv-gif)
Ver gifs animados
## [sxiv-rifle](./sxiv-rifle)
Ver todas las imágenes de una carpeta
## [tapa](./tapa)
Muestra album art en una notificación. Usado con ncmpcpp
## [tblock](./tblock)
Transmission blocklist
## [tsa](./tsa)
Transmission add
## [tsb](./tsb)
Parte de tblock
## [tsd](./tsd)
Transmission con notificaciones
## [tv](./tv)
Ver videos con dmenu y mpv
## [txbar](./txbar)
Barra de estado para tmux
## [unimon](./unimon)
Un solo monitor
## [upd](./upd)
Actualizar paquetes, manpages y paclist
## [vent](./vent)
BSPWM: window switcher con dmenu
## [vix](./vix)
Abrir archivo en $EDITOR en otro pane de tmux. Usado con LF
## [wifimenu](./wifimenu)
IWD
## [winclass](./winclass)
xprop
## [wpadd](./wpadd)
wifimenu pero para wpa_supplicant
## [xui](./xui)
FZF para instalar paquetes
## [ytdl](./ytdl)
youtube-dl
## [ytp](./ytp)
youtube-dl para playlists
## [zu](./zu)
Extraer archivos con tar
---
This page is generated automatically by [makebinreadme.sh](https://github.com/ssh0/dotfiles/blob/master/bin/makebinreadme.sh)

View File

@ -8,4 +8,4 @@ curl -s "$1" > "$HTML_TEMP"
titulo=$(grep -Po "<title>.*</title>" "$HTML_TEMP" | sed 's/<[^>]*>//g')
disco=${titulo% | *}
grupo=${titulo#* | }
sed -n '/image_/s/.*rel="image_src"\s\+href="\([^"]\+\).*/\1/p' "$HTML_TEMP" | xargs -r curl -s --create-dirs -o "$HOME/snd/Albums/${grupo}/${disco}/cover.jpg" && echo "Listo" || echo "No pude :("
sed -n '/image_/s/.*rel="image_src"\s\+href="\([^"]\+\).*/\1/p' "$HTML_TEMP" | xargs -r curl -s --create-dirs -o "$HOME/snd/Albums/${grupo}/${disco}/cover.jpg" && echo "Listo" || echo "No la encontre :("

View File

@ -1,5 +1,5 @@
#!/bin/sh
notify-send -u critical -i ~/img/.icn/control.png "Tres meses han pasado..." "Es hora de limpiar el cache" &
notify-send -u critical -i ~/img/.icn/control.png "Limpieza Mensual" "Es hora de vaciar el cache" &
sleep 10s
alacritty --class=flota -e sudo xbps-remove -vO

View File

@ -10,9 +10,9 @@ if [ -f "/tmp/blaze-pid" ]; then
sleep 3
kill -9 "$recpid"
) >/dev/null 2>&1 &
notify-send -t 2000 "Grabación Terminada"
notify-send -t 5000 "Grabación Terminada"
exit
else
notify-send -t 2000 "Grabación inactiva"
notify-send -t 5000 "Grabación inactiva"
exit 1
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh
bla="$(printf "" | dmenu -i -l 0)"
echo " "
figlet -c -t -f 3d " $bla " | lolcat
bla="$(printf "" | rofi -theme dprompt -dmenu -p ">")"
[ -z "$bla" ] && exit 0
echo " "
alacritty -e figlet -c -t -f 3d " $bla " | lolcat

View File

@ -1,8 +1,5 @@
#!/bin/sh
abrir() { ${TERMINAL:-alacritty} --class=flota -e nvim "$@"; }
listar() { ${DMENU:-dmenu} -i -w 125 "$@"; }
diario() {
cd "$HOME/doc/blog" || exit
menuBlog=$(printf "Hoy\\nMañana\\nAyer\\nArchivo" | listar -p " ")
@ -19,7 +16,8 @@ notas() {
menuNota=$(printf "Nueva\\nArchivo" | listar -p " ")
case $menuNota in
"Nueva")
nombre="$(dmenu -i -p "Titulo: ")" 2>/dev/null
nombre="$(listar -theme dprompt -p "Titulo: ")" 2>/dev/null
[ -z "$nombre" ] && exit 0
abrir "$nombre".md
;;
"Archivo") archivo ;;
@ -28,7 +26,7 @@ notas() {
articulo() {
cd "$HOME/doc/dgy.io" || exit
nombre="$(dmenu -i -p "Titulo: ")" 2>/dev/null
nombre="$(listar -theme dprompt -p "Titulo: ")" 2>/dev/null
[ -z "$nombre" ] && exit 0
nombreForm="$(echo "$nombre" | tr ' ' '-')"
hugo new articulos/"$nombreForm".md
@ -36,8 +34,12 @@ articulo() {
abrir content/articulos/"$nombre".md
}
abrir() { ${TERMINAL:-alacritty} --class=flota -e nvim "$@"; }
listar() { rofi -dmenu "$@"; }
archivo() {
selarch=$(fd -d 1 -e md | sort -Mr | dmenu -i -w 200 -p " ")
selarch=$(fd -d 1 -e md | sort -Mr | listar -p " ")
[ -z "$selarch" ] && exit 0
abrir "$selarch"
}

View File

@ -4,10 +4,11 @@
# https://github.com/cherrry9/blaze/
# modificado por deadguy
output="$HOME/vid/Screen/$(date '+%y%m%d-%H%M-%S').mp4"
m() { ${DMENU:-dmenu} "$@"; }
output="$HOME/vid/Screen/$(date '+%F_%H_%M').mp4"
fps=60
m() { rofi -dmenu -i -no-custom "$@"; }
method="$(printf "Pantalla\nSelección" | m -w 200 -p "Grabar")"
method="$(printf "Pantalla\nSelección" | m -p " ")"
if [ "$method" = "Pantalla" ]; then
# get information about the display
@ -17,7 +18,7 @@ if [ "$method" = "Pantalla" ]; then
if [ "$(printf "%b\n" "$monitors" | wc -l)" = 1 ]; then
display="$monitors"
else # if there are other displays ask the user which one to use
[ ! "$display" ] && display="$(printf "%b" "$monitors" | m -w 200 -p "Pantalla")"
[ ! "$display" ] && display="$(printf "%b" "$monitors" | m -p "Pantalla")"
fi
set -- $(xrandr -q | grep "$display" | grep -oP '\d*x\d*\+\d*\+\d*' | tr '+x' ' ')
@ -27,7 +28,7 @@ if [ "$method" = "Pantalla" ]; then
offX="$3"
offY="$4"
sonido="$(printf "Sí\nNo" | m -w 200 -p "Audio")"
sonido="$(printf "Sí\nNo" | m -p "Audio")"
if [ "$sonido" = "Sí" ]; then
# find default audio device
@ -40,6 +41,13 @@ if [ "$method" = "Pantalla" ]; then
fi
elif [ "$method" = "Selección" ]; then
gif="$(printf "Sí\nNo" | m -p "Gif")"
if [ "$gif" = "Sí" ]; then
output="$HOME/vid/Screen/$(date '+%F_%H_%M').gif"
fps=15
fi
# select an area and make each number a separate word
set -- $(slop -f '%w %h %x %y')
@ -52,15 +60,15 @@ elif [ "$method" = "Selección" ]; then
[ "$((width % 2))" = 1 ] && width="$((width + 1))"
[ "$((height % 2))" = 1 ] && height="$((height + 1))"
else
printf "Método inválido.\n"
notify-send -t 3000 -u critical "Método inválido"
exit 1
fi
# ask the user if they want to start the recording
[ ! "$ready" ] && ready="$(printf "Sí\nNo" | m -w 200 -p "Empezar")"
[ ! "$ready" ] && ready="$(printf "Sí\nNo" | m -p "Empezar")"
[ "$ready" = "Sí" ] && {
notify-send -t 1500 "Grabando"
notify-send -t 2000 "Grabando"
ffmpeg \
-loglevel error \
@ -70,7 +78,7 @@ fi
-f x11grab \
-draw_mouse 1 \
-s "${width}x$height" \
-r 60 \
-r "$fps" \
-i "$DISPLAY.0+$offX,$offY" \
-pix_fmt yuv420p \
-q:v 0 \

View File

@ -23,7 +23,7 @@ hide)
show)
[ -z "$file" ] && exit
sel=$(awk '{print $2,$3}' "$file" | dmenu -i -p ' ')
sel=$(awk '{print $2,$3}' "$file" | rofi -dmenu -p ' ')
selectedID=$(awk -v pat="$sel" '$0~pat {print $1}' "$file")
selectedDesktop=$(awk -v pat="$sel" '$0~pat {print $2}' "$file")
bspc desktop -f "$selectedDesktop"

View File

@ -1,11 +1,11 @@
#!/bin/sh
conectados=$(xrandr -q | awk '/ connected/ {count++} END {print count}')
pri=$(xrandr -q | awk '/ connected/ {print $1}' | sed -sn 1p)
sec=$(xrandr -q | awk '/ connected/ {print $1}' | sed -sn 2p)
conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }')
pri=$(xrandr | awk '( $2 == "connected" ) {print $1}' | sed -sn 1p)
sec=$(xrandr | awk '( $2 == "connected" ) {print $1}' | sed -sn 2p)
if [ "$conectados" = 1 ]; then
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr -q | awk '/ disconnected/ {print "--output", $1, "--off"}' | paste -sd ' ')"
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr | awk '( $2 "disconnected" ) {print "--output", $1, "--off"}' | paste -sd ' ')"
elif [ "$conectados" = 2 ]; then
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 --output "$sec" --right-of "$pri" --auto --scale 1.0x1.0
fi

View File

@ -1,12 +1,20 @@
#!/bin/sh
file=$HOME/img/scrot/"$(date +%H_%M)".png
file=$HOME/img/scrot/"$(date +%F_%H_%M)".png
vent=$(bspc query -N -n .focused)
case "$(printf "Seleccion\\nVentana\\nPantalla\\nCopiar seleccion\\nCopiar ventana\\nCopiar pantalla" | dmenu -w 200 -p " ")" in
case "$(printf "Seleccion\\nVentana\\nPantalla\\nCopiar seleccion\\nCopiar ventana\\nCopiar pantalla" | rofi -dmenu -p " ")" in
"Seleccion") maim -us "$file" ;;
"Ventana") maim -ui "$(printf "%d\n" $vent)" "$file" ;;
"Pantalla") maim -u "$file" ;;
"Pantalla")
conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }')
if [ "$conectados" = 1 ]; then
maim -u "$file"
elif [ "$conectados" = 2 ]; then
moni="$(xrandr | awk '( $2 == "connected" ) { print $1 }' | rofi -dmenu -p "Pantalla")"
maim -u "$moni" "$file"
fi
;;
"Copiar seleccion") maim -us | xclip -selection clipboard -t image/png ;;
"Copiar ventana") maim -ui "$(printf "%d\n" "$vent")" | xclip -selection clipboard -t image/png ;;
"Copiar pantalla") maim -u | xclip -selection clipboard -t image/png ;;

View File

@ -1,11 +1,11 @@
#!/bin/sh
chosen="$(printf "Apagar\\nReiniciar\\nSuspender\\nBloquear\\nSalir" | dmenu -w 150 -i -p "⏻ ")"
chosen="$(printf "Apagar\\nReiniciar\\nSuspender\\nBloquear\\nSalir" | rofi -dmenu -p " ")"
case $chosen in
"Apagar") loginctl poweroff;;
"Reiniciar") loginctl reboot;;
"Suspender") loginctl suspend;;
"Bloquear") xset s activate;;
"Salir") loginctl terminate-user "$(id -u "$USER")";;
*) exit 0;;
"Apagar") loginctl poweroff ;;
"Reiniciar") loginctl reboot ;;
"Suspender") loginctl suspend ;;
"Bloquear") xset s activate ;;
"Salir") loginctl terminate-user "$(id -u "$USER")" ;;
*) exit 0 ;;
esac

View File

@ -4,7 +4,7 @@ MAINDIR="$HOME/doc/"
PIX="pixels"
PET="c64"
MENU="$(printf "Pixels\\nPetscii" | dmenu -w 150 -p " ")"
MENU="$(printf "Pixels\\nPetscii" | rofi -dmenu -p " ")"
case $MENU in
'Pixels') sxiv-rifle "$MAINDIR/$PIX/ref" >/dev/null 2>&1 ;;
'Petscii') sxiv-rifle "$MAINDIR/$PET/ref" >/dev/null 2>&1;;

View File

@ -4,20 +4,19 @@
INRES="1920x1080"
OUTRES="1280x720"
FPS="25"
FPS="24"
GOP="$((FPS * 2))"
GOPMIN="$FPS"
CBR="2500k"
QUALITY="ultrafast"
AUDIO_RATE="44100"
TEXT_X="(w-text_w)/2"
TEXT_X="W-(W+tw)*mod(t,10)/10"
TEXT_Y="5"
TEXT_BG="1"
TEXT_BG_COLOR="black"
TEXT_BORDER_COLOR="black"
TEXT_BORDER="5"
FONT_COLOR="white"
FONT_SIZE="24"
FONT="$XDG_DATA_HOME/fonts/NikkyouSans-B6aV.ttf"
FONT="$XDG_DATA_HOME/fonts/SanFrancisco/SF-Pro-Display-Regular.otf"
TEXT="$HOME/doc/strimtext.txt"
SERVER="live-sao"
STREAM_KEY="$(pass dgy-twitch)"
@ -49,5 +48,5 @@ ffmpeg \
-acodec aac \
-b:a 160k \
-bufsize $CBR \
-vf "drawtext=fontfile='$FONT':textfile='$TEXT':reload=1:x='$TEXT_X':y='$TEXT_Y':fontsize='$FONT_SIZE':fontcolor='$FONT_COLOR':box='$TEXT_BG':boxcolor='$TEXT_BG_COLOR':boxborderw='$TEXT_BORDER'" \
-vf "drawtext=fontfile='$FONT':textfile='$TEXT':reload=1:x='$TEXT_X':y='$TEXT_Y':fontsize='$FONT_SIZE':fontcolor='$FONT_COLOR':bordercolor='$TEXT_BORDER_COLOR':borderw='$TEXT_BORDER'" \
"rtmp://$SERVER.twitch.tv/app/$STREAM_KEY"

View File

@ -1,32 +1,34 @@
#!/bin/sh
tutos(){
tutodir="$HOME/vid/Learning/"
m="rofi -dmenu -i -no-custom"
cd "$tutodir" || exit
sel=$(fd -d 1 | dmenu -i -p " ")
[ -z "$sel" ] && exit 0
cd "$tutodir/$sel" || exit
play=$(fd -d 1 | sort -d | dmenu -i -p " ")
[ -z "$play" ] && exit 0
mpv "$play"
tutos() {
tutodir="$HOME/vid/Learning/"
cd "$tutodir" || exit
sel=$(fd -d 1 | $m -p " ")
[ -z "$sel" ] && exit 0
cd "$tutodir/$sel" || exit
play=$(fd -d 1 | sort -d | $m -p " ")
[ -z "$play" ] && exit 0
mpv "$play"
}
tele(){
canal="$(dmenu -i -p " ")" 2> /dev/null
tele() {
canal="$(rofi -theme dprompt -dmenu -i -p " ")"
[ -z "$canal" ] && exit 0
mpv https://twitch.tv/"$canal"
}
shutub(){
video="$(dmenu -i -p " ")" 2> /dev/null
shutub() {
video="$(rofi -theme dprompt -dmenu -i -p " ")" 2>/dev/null
[ -z "$video" ] && exit 0
mpv https://www.youtube.com/watch?v="$video"
}
MENU="$(printf "Twitch\\nYoutube\\nTuto" | dmenu -i -w 120 -p "磊 ")"
MENU="$(printf "Twitch\\nYoutube\\nTuto" | $m -p " ")"
case $MENU in
'Twitch') tele;;
'Youtube') shutub;;
'Tuto') tutos;;
'Twitch') tele ;;
'Youtube') shutub ;;
'Tuto') tutos ;;
esac

View File

@ -1,8 +1,8 @@
#!/bin/sh
pri=$(xrandr -q | awk '/ connected/ {print $1}' | sed -sn 1p)
pri=$(xrandr | awk '( $2 == "connected" ) { print $1 }' | sed -sn 1p)
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr -q | awk '/ disconnected/ {print "--output", $1, "--off"}' | paste -sd ' ')"
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr | awk '( $2 == "disconnected" {print "--output", $1, "--off"}' | paste -sd ' ')"
if [ -e /tmp/bspwm_0_0-socket ]; then
bspc config remove_disabled_monitors

View File

@ -14,5 +14,5 @@ done
switch="$switch *) ;;"
selection="$(printf '%s' "$titles" | dmenu -p " " "$@")"
selection="$(printf '%s' "$titles" | rofi -dmenu -p " " "$@")"
eval "case \"$selection\" in $switch esac"

View File

@ -11,8 +11,8 @@ add() {
list_all=$(iwctl station "$interface" get-networks | awk 'NR > 4 && $0 !~ /^$/ && $0 !~ />/ { print $1}')
list_known=$(iwctl known-networks list | awk 'NR>4 && $0 !~ /^$/ { print $1 }')
list=$(comm -23 <(sort -u <<<"$list_all") <(sort -u <<<"$list_known"))
ssid=$(printf "%s" "$list" | m -i -p "add") || return
pass=$(m -P) || return
ssid=$(printf "%s" "$list" | m -i -p "Add") || return
pass=$(m -P -p " ") || return
if iwctl --passphrase "$pass" station $interface connect "$ssid"; then
notify-send "Agregué $ssid"
@ -55,12 +55,12 @@ forget() {
scan() {
iwctl station $interface scan
notify-send "Scanneando..."
notify-send "Scaneando..."
}
while true; do
options="Scanear\nAgregar\nCambiar\nOlvidar"
choice=$(printf "%b" "$options" | m -i -w 150 -p " ") || exit
choice=$(printf "%b" "$options" | m -i -p " ") || exit
case $choice in
"Scanear") scan ;;
"Agregar") add ;;

View File

@ -8,7 +8,7 @@ fi
export VISUAL="$EDITOR"
export GIT_EDITOR="$EDITOR"
export TERMINAL="alacritty"
export BROWSER="${${DISPLAY:-lynx}:+firefox}"
export BROWSER="${${DISPLAY:-elinks}:+firefox}"
export COLORTERM="truecolor"
export OPENER="xdg-open"
export PAGER="less"
@ -43,9 +43,8 @@ export HIGHLIGHT_OPTIONS='--out-format="ansi" --style="pablo"'
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
export QT_QPA_PLATFORMTHEME="gtk3"
export LYNX_LSS="${XDG_CONFIG_HOME:-$HOME/.config}/lynx.lss"
export ELINKS_CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}/elinks"
export NNTPSERVER="news.tilde.club"
export DOTBARE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/hexagons"
export DOTBARE_TREE="$HOME"
_JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_DATA_HOME:-$HOME/.local/share}/java "
_JAVA_OPTIONS+="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true "
@ -62,6 +61,8 @@ export FZF_DEFAULT_OPTS="--cycle \
--inline-info \
--no-bold \
--ansi \
--pointer='🡢' \
--marker='⦁' \
--preview-window :wrap:noborder"
export FZF_DEFAULT_COMMAND="fd -t f -c always -H"
@ -86,6 +87,6 @@ export LESSHISTFILE="-"
# }}}
# Path {{{
typeset -U PATH path
path=(~/.local/bin ~/.config/yarn/bin ~/.local/share/npm/bin ~/.local/wm/katriawm/src/core ~/.local/wm/nhkd $path[@])
path=(~/.local/bin ~/.config/yarn/bin ~/.local/share/npm/bin $path[@])
# }}}
# vim:foldmethod=marker:foldlevel=0

View File

@ -1,14 +1,8 @@
ImageMagick
SDL-32bit
alacritty
alsa-firmware
alsa-lib-devel
alsa-plugins
alsa-plugins-ffmpeg
alsa-plugins-jack
alsa-plugins-pulseaudio
alsa-plugins-samplerate
alsa-plugins-speex
alsa-utils
android-udev-rules
ansible
@ -17,32 +11,39 @@ base-system
bat
bc
bspwm
cadence
catgirl
chrony
cpupower
crispy-doom
cryptsetup
ctags
delta
delve
dfc
dracut
dunst
elinks
elogind
faac
fd
ffmpeg
figlet
file-roller
firefox
fluidsynth
freepats
fzf
gcc
giada
git
git-extras
git-libsecret
glibc-32bit
glow
gnome-ssh-askpass
gnupg2
go
golangci-lint
gopls
grub-i386-efi
grub-x86_64-efi
gzdoom
@ -54,31 +55,22 @@ hub
i3lock-color
intel-ucode
isync
j4-dmenu-desktop
jack-devel
iwd
jack
jq
keychain
klystrack
krita
lf
libXfixes-devel
libXft-devel
libXinerama-devel
libXrandr-devel
libfluidsynth
libjack-32bit
libopenal
libressl-devel
librsvg
librsvg-utils
libsndfile-devel
libstdc++-32bit
libva-intel-driver
lm_sensors
lynx
maim
mdadm
mediainfo
mlocate
mpc
mpd
@ -91,13 +83,12 @@ neovim
neovim-remote
newsboat
nfs-utils
nftables
nicotine+
nodejs
notmuch
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-ttf
openjdk11
p7zip
pass
patch
@ -111,10 +102,11 @@ pulsemixer
python3
python3-ansible-lint
python3-pip
qjackctl
revive
ripgrep
rkhunter
rofi
runit-nftables
setxkbmap
shellcheck
shfmt
@ -132,7 +124,6 @@ toilet
transmission
tremc
udevil
ueberzug
unclutter-xfixes
unrar
unzip
@ -164,6 +155,5 @@ zathura
zathura-cb
zathura-pdf-mupdf
zip
zita-ajbridge
zsh
zsh-syntax-highlighting