dgy
/
hexagons
Archived
1
0
Fork 0

el arroz que sobro lo guarde en este taper

This commit is contained in:
deadguy 2019-04-22 12:40:54 -03:00
parent 647928ca0a
commit b0c0c8d234
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
28 changed files with 510 additions and 666 deletions

View File

@ -4,24 +4,24 @@
*.cursorColor: #d3d7cf
! black
*.color0: #1b1b1b
*.color0: #222222
*.color8: #555555
! red
*.color1: #df312a
*.color9: #fb4934
*.color1: #ec5252
*.color9: #ff9191
! green
*.color2: #98971a
*.color10: #a6e22d
*.color2: #407e4a
*.color10: #b8bb26
! yellow
*.color3: #d79921
*.color3: #d49b41
*.color11: #fabd2f
! blue
*.color4: #407ee7
*.color12: #ae81ff
*.color4: #008bbd
*.color12: #0474a7
! magenta
*.color5: #cb5a80
@ -32,12 +32,12 @@
*.color14: #8be9fd
! white
*.color7: #9a9a9a
*.color15: #e6e6e6
*.color7: #c8c8c8
*.color15: #e0e0e0
!URxvt.font: xft:sarasatermj:size=10
!URxvt.font: -t-cherry-medium-r-normal--13-120-96-96-c-100-iso8859-1
URxvt.font: xft:monaco:size=8,xft:blex mono nerd font:pixelsize=14
URxvt.font: xft:blex mono nerd font:pixelsize=14
URxvt.boldFont:
URxvt.perl-ext-common: default,clipboard,url-select
URxvt.urlLauncher: /usr/bin/firefox -new-tab

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euf -o pipefail
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
multipantalla &
gap=8
pad=6
@ -19,9 +19,9 @@ bspc config left_padding 0
bspc config right_padding 0
bspc config bottom_padding 0
for side in top right bottom left; do
bspc config ${side}_monocle_padding -"$(bspc config ${side}_padding)"
done
#for side in top right bottom left; do
# bspc config ${side}_monocle_padding -"$(bspc config ${side}_padding)"
#done
# Settings
bspc config gapless_monocle true
@ -89,3 +89,5 @@ bspc rule -a Termite:multi desktop='^1'
setbg &
unclutter &
actualizar &
correo &

View File

@ -61,10 +61,10 @@
dmenu = /usr/bin/rofi -p 'dunst: ' -dmenu
browser = /usr/bin/firefox -new-tab
icon_position = right # Align icons left/right/off
max_icon_size = 64
max_icon_size = 0
# Paths to default icons.
icon_path = /usr/share/icons/Papirus-Dark/16x16@2x/apps/:/usr/share/icons/Papirus-Dark/16x16@2x/devices/:/usr/share/icons/Papirus-Dark/16x16@2x/status/
# icon_path = /usr/share/icons/Papirus-Dark/16x16@2x/apps/:/usr/share/icons/Papirus-Dark/16x16@2x/devices/:/usr/share/icons/Papirus-Dark/16x16@2x/status/
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true

View File

@ -11,7 +11,6 @@ user "deadguy"
audio_output {
type "pulse"
name "pulse audio"
#sink "jack_out"
}
audio_output {
@ -21,7 +20,6 @@ audio_output {
format "44100:16:2"
}
playlist_plugin {
name "m3u"
enabled "true"

View File

@ -1,236 +0,0 @@
# vim: filetype=neomuttrc
### Paths ### {{{
## sidebar 'mailboxes' relies on 'folder'
set folder = "~/.mail" ## Mailbox location
set alias_file = "~/.config/mutt/alias" ## Where to store aliases
set mailcap_path = "~/.config/mutt/mailcap" ## Entries for filetypes
set tmpdir = "~/.config/mutt/temp" ## Where to keep temp files
### End Paths ### }}}
### Basic Options ### {{{
set wait_key = no ## Shut up, mutt
set mbox_type = Maildir ## Mailbox type
set timeout = 5 ## Idle time before scanning
set mail_check = 10 ## Minimum time between scans
unset move ## Gmail does that
set delete ## Don't ask, just do
unset confirmappend ## Don't ask, just do!
unset mark_old ## Read/new is good enough for me
set beep_new ## Bell on new mails
set pipe_decode ## Strip headers and eval mimes when piping
set thorough_search ## Strip headers and eval mimes before searching
set text_flowed = yes ## Generate text/plain; format=flowed attachments.
set imap_keepalive = 900
set sleep_time = 0
set send_charset="utf-8"
set check_new = yes
set smart_wrap = yes
set allow_ansi = yes
set markers = no
set smtp_authenticators = 'gssapi:login'
### End Options }}}
### Sourcing ### {{{
source "~/.config/mutt/gpg.rc"
source "~/.config/mutt/muttcol"
### End Sourcing }}}
### Index Options ### {{{
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
set uncollapse_jump # no collapse on unread message
set sort_re # thread based on regex
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set new_mail_command="notify-send -a neomutt -u normal 'You Got Mail' '%n new messages, %u unread.' &"
set date_format ="%a %d %b %R"
set index_format ="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
set alias_format = " %4n %t %-20a %r "
### End Index ### }}}
### Pager Options ### {{{
auto_view text/html
alternative_order text/enriched text/plain text/html text
set rfc2047_parameters = yes
### End Pager ### }}}
### Index and Pager Bindings ### {{{
bind index,pager g noop ## Removes error from next binding
bind index,pager G noop
bind index,pager i noop
bind index \Cf noop
bind index,pager S noop
bind index,pager V noop
bind attach X noop
bind index gg first-entry
bind index G last-entry
bind index <space> collapse-thread
bind index D half-down
bind index U half-up
bind index d delete-message
bind index u undelete-message
bind index <left> previous-unread
bind index <right> next-unread
bind index,pager R group-reply
bind index,pager <tab> sync-mailbox
bind index,browser F search
bind pager gg top
bind pager G bottom
bind pager <up> previous-line
bind pager <down> next-line
bind pager <left> previous-undeleted
bind pager <right> next-undeleted
bind attach <return> view-mailcap ## View attachments properly.
## Ctrl-R to mark all as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
## Sync email
macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"
## Copy/move dialogs
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
macro index,pager \CL "<enter-command>$my_index_format_pre"F"$my_index_format_post<enter><redraw-screen>"
macro index,pager U "<enter-command>set pipe_decode = yes<enter><pipe-message>urlview<enter><enter-command>set pipe_decode = no<enter>""view URLs"
macro index,pager \Cu |urlscan\n
macro index,pager ,, |urlscan\n
macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
<enter-command> unset pipe_decode<enter>\
<pipe-message>extract_url<enter>\
<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
macro index,pager <F1> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alejo.muttrc<enter><change-folder>!<enter>'
macro index,pager <F2> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alex.muttrc<enter><change-folder>!<enter>'
macro index,pager V "<view-attachments><search>html<enter><view-mailcap><exit>"
macro attach 'X' "<pipe-entry>cat >~/.cache/mutt/mail.html && $BROWSER ~/.cache/mutt/mail.html && rm ~/.cache/mutt/mail.html<enter>"
### End Bindings ### }}}
### Compose View Options ### {{{
set use_from = yes
set envelope_from ## which from?
set fast_reply ## skip to compose when replying
set autoedit ## Skip directly to composing
set edit_headers ## Show headers when composing
set fast_reply ## Skip to compose when replying
set sendmail_wait = 1 ## wait for sending to complete
set attribution = "El %d, %n escribio:" ## set the attribution
set reply_to ## reply to Reply to: field
set sig_dashes ## dashes before sig
set fcc_attach ## save attachments with the body
set mime_forward = ask-no ## Forward attachments as attachments
set forward_format = "Fwd: %s" ## format of subject when forwarding
set forward_decode ## decode when forwarding
set reverse_name ## reply as whomever it was to
set include ## include message in replies
set forward_quote ## include message in forwards
set text_flowed = yes ## Eliminate odd line breaks
set skip_quoted_offset = 3
set editor='nvim + -c "set nocp" -c "set textwidth=80" -c "set wrap" -c "silent /^$" -c "noh" -c "vmap <leader>s c[... snip ...]<ESC>"'
bind editor <Tab> complete
bind editor ^T complete-query
unset query_command
### End Compose ### }}}
### Sidebar Settings ### {{{
set sidebar_visible = yes
set sidebar_width = 20
set sidebar_short_path = yes
set sidebar_delim_chars = "/" # Delete mailbox name up to the last / character
set sidebar_next_new_wrap = yes
set sidebar_folder_indent = yes
set sidebar_new_mail_only = no
set sidebar_sort_method = path
set mail_check_stats
set imap_check_subscribed = yes
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
bind index,pager k sidebar-prev
bind index,pager j sidebar-next
bind index,pager l sidebar-open
bind index,pager B sidebar-toggle-visible
### End Sidebar ### }}}
### Notmuch options ### {{{
set nm_default_uri="notmuch:///home/deadguy/.mail" ## path to the maildir
set virtual_spoolfile=yes ## enable virtual folders
## sets up queries for virtual folders
virtual-mailboxes \
"INBOX" "notmuch://?query=tag:INBOX and NOT tag:archive" \
"Unread" "notmuch://?query=tag:unread" \
"Starred" "notmuch://?query=tag:*" \
"Sent" "notmuch://?query=tag:sent" \
"Attachment" "notmuch://?query=tag:attachment" \
"Signed" "notmuch://?query=tag:signed" \
"Encrypted" "notmuch://?query=tag:encrypted"
exec sidebar-toggle-virtual ## Show non virtual mail on load
macro index X "<sidebar-toggle-virtual>" ## Replace <change-vfolder> with useful toggle
macro index \\\\ "<vfolder-from-query>" ## looks up a hand made query
#macro index A "<modify-labels>+archive -unread -inbox\\n" ## tag as Archived
#macro index I "<modify-labels>-inbox -unread\\n" ## removed from inbox
#macro index S "<modify-labels-then-hide>-inbox -unread +junk\\n" ## tag as Junk mail
#macro index + "<modify-labels>+*\\n<sync-mailbox>" ## tag as starred
#macro index - "<modify-labels>-*\\n<sync-mailbox>" ## tag as unstarred
macro index \CX "<modify-labels>+deleted\n" ## tag as deleted
### End Notmuch ### }}}
### Status Bar ### {{{
set status_on_top = yes
set status_chars = " *%A"
set status_format = "──┄┄╼ %f: %m Messages ╾┄┄──────────┈%?n? %n New?%?d?, %d to Delete?%?t?, %t Tagged?%?p?, %p Postponed?%?l? %l Total ?┈───%>─┤ %P ├───"
color status magenta default
### End Status Bar ### }}}
### Header Options ### {{{
ignore * ## Ignore all headers
unignore from: to: cc: date: subject: ## Show only these
unhdr_order * ## Some distros order things
hdr_order from: to: cc: date: subject: ## And in this order
### End Header ### }}}
### Account Settings ### {{{
## Multiple account setup
## Default inbox.
set spoolfile = "+alex/INBOX"
source ~/.config/mutt/accounts/alex.muttrc
## Set account specific options on folder change
folder-hook alex/* source ~/.config/mutt/accounts/alex.muttrc
folder-hook alejo/* source ~/.config/mutt/accounts/alejo.muttrc
### End Account }}}
### Assorted ### {{{
## Fetches offlineimap mail
#timeout-hook 'push "!~/bin/correo.sh &<enter>"'
#startup-hook 'push "!~/bin/correo.sh &<enter>"'
## 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"
## "from" field gets 30% of remaining space, "subject" gets 70%. Remaining space is the total width minus the other fields
set my_index_format_pre='set my_col_from = `echo $((30 * ($(tput cols)-50) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-50) / 100))`; set index_format="%2C %Z %D %-$my_col_from.${my_col_from}'
set my_index_format_post=' %-4.4c %?M?<%M ?%-$my_col_subject.${my_col_subject}s"'
folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"
### End Assorted }}}
# vim:foldmethod=marker:foldlevel=0

View File

@ -0,0 +1,72 @@
# vim: filetype=neomuttrc
set mailcap_path = ~/.config/mailcap
source "~/.config/mutt/gpg.rc"
macro index,pager i1 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com"
source /home/deadguy/.config/mutt/accounts/alex.muttrc
macro index,pager i2 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com"
macro index,pager i3 '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/zeta.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc"
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
set uncollapse_jump # no collapse on unread message
set sort_re # thread based on regex
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set new_mail_command="notify-send -a neomutt -u normal 'You Got Mail' '%n new messages, %u unread.' &"
set date_format ="%a %d %b %R"
set alias_format = " %4n %t %-20a %r "
set autoedit ## Skip directly to composing
set sendmail_wait = 1 ## wait for sending to complete
set attribution = "El %d, %n escribio:" ## set the attribution
set reply_to ## reply to Reply to: field
set sig_dashes ## dashes before sig
set text_flowed = yes ## Eliminate odd line breaks
set skip_quoted_offset = 3
set editor='nvim + -c "set nocp" -c "set textwidth=80" -c "set wrap" -c "silent /^$" -c "noh" -c "vmap <leader>s c[... snip ...]<ESC>"'
set status_on_top = yes
set status_chars = " *%A"
set status_format = "──┄┄╼ %f: %m Messages ╾┄┄──────────┈%?n? %n New?%?d?, %d to Delete?%?t?, %t Tagged?%?p?, %p Postponed?%?l? %l Total ?┈───%>─┤ %P ├───"
ignore * ## Ignore all headers
unignore from: to: cc: date: subject: ## Show only these
unhdr_order * ## Some distros order things
hdr_order from: to: cc: date: subject: ## And in this order
## 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"
## "from" field gets 30% of remaining space, "subject" gets 70%. Remaining space is the total width minus the other fields
set my_index_format_pre='set my_col_from = `echo $((30 * ($(tput cols)-50) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-50) / 100))`; set index_format="%2C %Z %D %-$my_col_from.${my_col_from}'
set my_index_format_post=' %-4.4c %?M?<%M ?%-$my_col_subject.${my_col_subject}s"'
folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"

View File

@ -27,17 +27,12 @@ empty_tag_color = blue
state_flags_color = red
# HEADER
#alternative_header_first_line_format = "$8%t$9"
#alternative_header_second_line_format = "$b$8{%a}|{%A} - %b$9$/b"
alternative_header_first_line_format = "$8$aqqu$/a$b {%t}|{%f} $/b$8$atqq$/a$9"
alternative_header_second_line_format = "{{$8%a}{$8 - %b$9}{$8 (%y)$8}}|{%D$9}"
# SONG
#song_list_format = "$4 %a $R $8 %t $5 %n $6 %l"
song_list_format = "$5%n {$8%t}|{$2►$2<untitled>}|{$5►$8 %f} $5$R{$4%a}|{$8<unknown artist>} {$7 %l}"
song_status_format = {$8%t}{$8 "%b"}|{$6 "%a"}$8
#song_status_format = "{$5%A$9 - }$3%b"
song_window_title_format = "{%a - }{%t}{ [%b]}|{%f}"
song_columns_list_format = "(30)[blue]{a} (40)[red]{t|f} (30)[cyan]{br} (4f)[green]{lr}"

View File

@ -1,12 +1,18 @@
always-display-description true
display-article-progress yes
article-sort-order date-asc
feed-sort-order title-dec
auto-reload yes
articlelist-format "%4i %S %f (%D) %6L │ %?T? %-17T; ?%t"
feedlist-format "%4i %n %S %11u %t"
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
#bind-key j next articlelist
#bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
@ -22,13 +28,31 @@ bind-key D pb-download
bind-key U show-urls
bind-key x pb-delete
bind-key ^t next-unread
bind-key SPACE open-search
color listnormal cyan default
color listfocus black yellow standout bold
color listnormal_unread blue default
color listfocus_unread yellow default bold
color info red black bold
color article cyan default
#color listnormal cyan default
#color listfocus black yellow standout bold
#color listnormal_unread blue default
#color listfocus_unread yellow default bold
#color info red black bold
#color article cyan default
color listnormal color15 color0
color listfocus color6 color8
color listnormal_unread color2 color0
color listfocus_unread color6 color8
color info color6 color8
color background color9 color0
highlight article "^(Feed|Title|Author|Link|Date):.*" color4 default
highlight article "^Podcast Download URL:.*" color5 default
highlight article "^Links:" color15 default
highlight article "\\[[0-9][0-9]*\\]" color1 default
highlight article "\\[image [0-9][0-9]*\\]" color2 default
highlight article "\\[embedded flash: [0-9][0-9]*\\]" color5 default
highlight article ":.*\\(link\\)$" color12 default
highlight article ":.*\\(image\\)$" color2 default
highlight article ":.*\\(embedded flash\\)$" color3 default
browser linkhandler
macro , open-in-browser
@ -39,4 +63,4 @@ macro w set browser "w3m"; open-in-browser ; set browser linkhandler
macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler
# vim: ft=dosini cms=#%s
# vim: ft=conf cms=#%s

View File

@ -37,3 +37,7 @@ https://www.reddit.com/r/outrun.rss "~OutRun"
https://www.reddit.com/r/algorave.rss "~Algorave"
https://www.reddit.com/r/livecoding.rss "~Livecoding"
https://www.reddit.com/r/argentina.rss "~Argentina"
-------OTROS------------
https://vimways.org/index.xml "Vimways"

View File

@ -27,7 +27,7 @@ Plug 'junegunn/vim-plug'
" UI
Plug 'junegunn/seoul256.vim'
Plug 'zefei/vim-wintabs'
"Plug 'jiangmiao/auto-pairs'
Plug 'jiangmiao/auto-pairs'
" Languages
Plug 'lervag/vimtex', { 'for': 'tex' }
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
@ -37,16 +37,11 @@ Plug 'sbdchd/neoformat', {'on': 'Neoformat'}
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/neco-syntax'
Plug 'Shougo/neco-vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
" Navigation
"Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeFind', 'NERDTreeToggle'] }
Plug 'dylanaraps/fff.vim'
Plug 'christoomey/vim-tmux-navigator'
Plug '/usr/bin/fzf'
Plug 'junegunn/fzf.vim'
" Modes
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
" Python
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
Plug 'jpalardy/vim-slime'
@ -222,9 +217,6 @@ if &readonly
let g:ale_disabled
endif
" }}}
" Autopairs {{{
"let g:AutoPairs = {'(':')', '[':']', '<':'>', '{':'}',"'":"'",'"':'"', '`':'`'}
" }}}
" {{{ Ale
let g:ale_linters_explicit = 1
let g:ale_change_sign_column_color = 1
@ -262,27 +254,6 @@ let g:deoplete#enable_smart_case = 1
let g:context_filetype#same_filetypes = {}
let g:context_filetype#same_filetypes._ = '_'
"}}}
" NerdTree {{{
"autocmd StdinReadPre * let s:std_in=1
"let NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.pyo$', '\.db$', '\.sqlite$', '.o$', 'bower_components', 'node_modules', '__pycache__']
"let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
"let NERDTreeNaturalSort = 1
"let NERDTreeShowHidden=1
"let NERDTreeWinPos=1
"let NERDTreeRespectWildIgnore = 1
"let NERDTreeMinimalUI=1
"let NERDTreeDirArrows = 1
"let NERDTreeCascadeSingleChildDir=1
"let NERDTreeCascadeOpenSingleChildDir=1
"let NERDTreeQuitOnOpen = 1
"let NERDTreeHijackNetrw = 0
"let NERDTreeAutoCenter = 1
"let g:NERDTreeDirArrowExpandable = '↠'
"let g:NERDTreeDirArrowCollapsible = '↡'
"
"nnoremap <silent> <F2> :NERDTreeToggle<CR>
"nnoremap <silent> <F3> :NERDTreeFind<CR>
" }}}
" FFF {{{
nnoremap <silent> <F2> :F<CR>
let g:fff#split = "30vnew"
@ -340,28 +311,6 @@ if !&diff
nnoremap <C-b> :Buffers<CR>
endif
" }}}
" Goyo {{{
function! s:goyo_enter()
let b:quitting = 0
let b:quitting_bang = 0
autocmd QuitPre <buffer> let b:quitting = 1
cabbrev <buffer> q! let b:quitting_bang = 1 <bar> q!
endfunction
function! s:goyo_leave()
" Quit Vim if this is the only remaining buffer
if b:quitting && len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) == 1
if b:quitting_bang
qa!
else
qa
endif
endif
endfunction
autocmd! User GoyoEnter call <SID>goyo_enter()
autocmd! User GoyoLeave call <SID>goyo_leave()
" }}}
" Semshi {{{
let g:semshi#mark_selected_nodes = 2
let g:semshi#error_sign = v:false
@ -369,9 +318,10 @@ let g:semshi#error_sign = v:false
" Slime {{{
let g:slime_target = 'tmux'
let g:slime_python_ipython = 1
let g:slime_paste_file = '~/.slime_paste'
let g:slime_paste_file = '~/Documents/Algorave/.slime_paste'
let g:slime_default_config = {"socket_name": "default", "target_pane": ":.2"}
let g:slime_dont_ask_default = 1
nnoremap <c-c>l :SlimeSendCurrentLine<CR>
" }}}
" LSP {{{
let g:LanguageClient_serverCommands = {
@ -406,8 +356,7 @@ let g:wintabs_ui_vimtab_name_format='%n'
let g:wintabs_ui_arrow_left='«'
let g:wintabs_ui_arrow_right='»'
nnoremap <silent> <C-,> :bnew<CR>
nnoremap <silent> <M-,> :WintabsClose<CR>
nnoremap <silent> <C-w> :WintabsClose<CR>
nnoremap <silent> <C-l> :WintabsNext<CR>
nnoremap <silent> <C-h> :WintabsPrevious<CR>
" }}}
@ -460,13 +409,6 @@ if !exists("autocommands_loaded") && has("autocmd")
au BufRead,BufNewFile *.conf set filetype=dosini
au BufRead,BufNewFile *.bash* set filetype=sh
aug END
aug mutt_settings
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
autocmd BufEnter /tmp/neomutt* :exe "normal! 9j\<cr>o"
autocmd BufEnter /tmp/neomutt* setl spelllang=es
aug END
endif
" }}}
"Mappings {{{
@ -602,9 +544,6 @@ inoremap <A-j> <Esc><C-w>j
inoremap <A-k> <Esc><C-w>k
inoremap <A-l> <Esc><C-w>l
" CTRL-C doesn't trigger the InsertLeave autocmd . map to <ESC> instead.
inoremap <c-c> <ESC>
" Use <TAB> to select the popup menu:
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

View File

@ -173,6 +173,7 @@ dir_node_exact_matches = {
'Public' : '',
'Templates' : '',
'Videos' : '',
'mail' : '',
'.mail' : '',
'.cache' : '',
'.config' : '',

View File

@ -1,26 +1,25 @@
configuration {
modi: "run,drun,window";
theme: "sbarr";
combi-modi: "run,drun,window";
bw: 0;
theme: "flat-orange";
terminal: "termite";
run-command: "{cmd}";
run-shell-command: "termite --hold -e {cmd}";
disable-history: true;
sort: true;
levenshtein-sort: false;
sorting-method: "levenshtein";
case-sensitive: false;
cycle: true;
eh: 1;
auto-select: true;
matching: "fuzzy";
tokenize: true;
fullscreen: false;
dpi: -1;
threads: 0;
scroll-method: 1;
click-to-exit: true;
show-match: true;
drun-show-actions: true;
drun-display-format: "{name}";
drun-match-fields: "name,exec";
combi-hide-mode-prefix: true;
pid: "/run/user/1000/rofi.pid";

View File

@ -67,7 +67,7 @@ super + r
termite --name=archi -e ranger
super + {space,s}
rofi -show {drun,window}
rofi -theme sbarr -show {drun,window}
ctrl + alt + x
xkill
@ -76,20 +76,17 @@ ctrl + alt + z
termite --name=flota
Print
maim -u ~/Pictures/scrot/$(date +%s).png && notify-send -u low -t 3000 'Screen captured'
pantallazo
super + F1
notify-send -t 5000 "$(date +'%A %d de %B %H:%M')"
fecha
super + {F2,F3,F4,F5,F6,F7}
{pila,tapa,actualizar,notifocus,grabar,corte}
super + ctrl + plus
xzoom
super + {F2,F3,F4,F5,F6}
{pila,tapa,notifocus,grabar,corte}
# Media Keys
XF86Audio{RaiseVolume,LowerVolume,Mute}
pavolume {volup,volddown,mutetoggle}
volumen {up,down,mute}
XF86Audio{Prev,Next}
mpc -q {prev,next}
@ -98,4 +95,4 @@ XF86AudioPlay
mpc -q toggle && tapa
XF86MonBrightness{Down,Up}
xbacklight {-dec 5,-inc 5} && dunstify -u low -t 3000 -r 90210 " $(printf %.0f%% $(xbacklight -get))"
brillo {down,up}

View File

@ -46,8 +46,8 @@ color0 = #222222
color8 = #555555
# red
color1 = #df312a
color9 = #d68787
color1 = #ec5252
color9 = #ff9191
#green
color2 = #407e4a

View File

@ -58,21 +58,15 @@ alias info='info --vi-keys'
alias inxi='inxi -Fz'
alias slop="slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4 -f '%wx%h+%x+%y'"
alias ping='ping -c 5 '
alias dd="dd status=progress"
alias dd='dd status=progress'
alias dirs='dirs -v -p'
alias dfc='dfc -dmT'
# Comandos
alias sudo='sudo '
alias chau="bspc quit 1"
alias pacmir='sudo pacman-mirrors -f5'
alias ytw='youtube-viewer -C -D -W -f -7 --results=10'
alias yta='youtube-dl --add-metadata -icw --no-cache-dir --no-call-home --restrict-filenames --extract-audio --audio-format mp3 --audio-quality 0 --prefer-ffmpeg -o "%(title)s.%(ext)s"'
alias ytdl='youtube-dl --add-metadata -ic --no-call-home'
alias winclass='xprop | grep WM_CLASS'
alias path='echo -e ${PATH//:/\\n}'
alias compare='grep -nFxvf'
alias pwn='chmod +x'
alias ta='tmux attach -t'
alias tk='tmux kill-session -t'
alias disco='mpv --cdrom-device=/dev/sr0 cdda://'
alias tk='tmux kill-session -t'

View File

@ -150,7 +150,8 @@ formats = {
topic_info = " %y │ %wtopic set by %b$0 %B(%w$1%B)";
channel_synced = "%n %N sync %y╪ %n{hilight $1} secs%: %y ├─┄┄┄─┄";
channel_created = " %n created %y╞ %n$1";
};
log_day_changed = "%y ┌─┄┄─────┘%n\\012%y │ It is now %A %d %b %Y\\012%y └─┄┄─┄┄──┐ ";
};
"Irssi::Script::adv_windowlist" = {
awl_display_header = "%U%9%w$C";
awl_display_nokey = " $Q$N${cumode_space}$H$C$S";

View File

@ -1,234 +0,0 @@
utf8 = "on";
servers = (
{
address = "irc.undernet.org";
chatnet = "Undernet";
port = "6667";
},
{
address = "irc.freenode.net";
chatnet = "Freenode";
port = "6697";
use_ssl = "yes";
ssl_verify = "yes";
ssl_capath = "/etc/ssl/certs";
},
{
address = "irc.rizon.net";
chatnet = "Rizon";
port = "6697";
use_tls = "yes";
tls_cert = "~/.irssi/Rizon.pem";
tls_verify = "yes";
},
{
address = "unix.chat";
chatnet = "nixers";
port = "6697";
use_ssl = "yes";
ssl_verify = "no";
},
{
address = "ssl.efnet.org";
chatnet = "EFNet";
port = "9999";
use_tls = "yes";
}
);
chatnets = {
Freenode = {
type = "IRC";
nick = "deadguy";
sasl_mechanism = "plain";
sasl_username = "user";
sasl_password = "pass";
};
Rizon = { type = "IRC"; };
nixers = { type = "IRC"; nick = "deadguy"; };
EFNet = { type = "IRC"; nick = "deadguy"; };
Undernet = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
};
channels = (
{
name = "#archlinux-offtopic";
chatnet = "Freenode";
autojoin = "Yes";
},
{
name = "#archlinux-newbie";
chatnet = "Freenode";
autojoin = "Yes";
},
{
name = "#idleRPG";
chatnet = "Freenode";
autojoin = "yes";
autosendcmd = "/^msg IdleBot LOGIN name pass";
},
{ name = "#pvm"; chatnet = "EFNet"; autojoin = "yes"; },
{ name = "#unix"; chatnet = "nixers"; autojoin = "Yes"; },
{ name = "#rice"; chatnet = "rizon"; autojoin = "yes"; },
{
name = "#rizonirpg";
chatnet = "Rizon";
autojoin = "yes";
autosendcmd = "/^msg RizonIRPG LOGIN name pass";
}
);
aliases = {
ATAG = "WINDOW SERVER";
ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";
J = "JOIN";
M = "MSG";
P = "PART";
Q = "QUIT";
S = "QUERY";
U = "UNQUERY";
RUN = "SCRIPT LOAD";
SAY = "MSG *";
WC = "WINDOW CLOSE";
WG = "WINDOW GOTO";
WM = "WINDOW MOVE";
WL = "WINDOW LIST";
W = "WHOIS";
1 = "WINDOW GOTO 1";
2 = "WINDOW GOTO 2";
3 = "WINDOW GOTO 3";
4 = "WINDOW GOTO 4";
5 = "WINDOW GOTO 5";
6 = "WINDOW GOTO 6";
7 = "WINDOW GOTO 7";
8 = "WINDOW GOTO 8";
9 = "WINDOW GOTO 9";
10 = "WINDOW GOTO 10";
11 = "WINDOW GOTO 11";
12 = "WINDOW GOTO 12";
13 = "WINDOW GOTO 13";
14 = "WINDOW GOTO 14";
15 = "WINDOW GOTO 15";
ns = "msg nickserv";
cs = "msg chanserv";
};
settings = {
core = {
real_name = "name";
user_name = "name";
nick = "name";
quit_message = "9";
log_day_changed = "%y ┌─┄┄─────┘%n\\012%y │ It is now %A %d %b %Y\\012%y └─┄┄─┄┄──┐ ";
};
"fe-text" = {
actlist_sort = "refnum";
term_force_colors = "yes";
indent = "12";
};
"fe-common/core" = {
theme = "bronze";
autolog_path = "";
autolog = "no";
autocreate_own_query = "yes";
autocreate_query_level = "MSGS";
use_status_window = "yes";
reuse_unused_windows = "no";
window_auto_change = "no";
activity_hide_targets = "#RizonIRPG =RizonIRPG, #IdleRPG =IdleBot";
beep_msg_level = "MSGS HILIGHT";
beep_when_window_active = "no";
emphasis = "yes";
emphasis_italics = "yes";
emphasis_multiword = "yes";
emphasis_replace = "yes";
show_names_on_join = "no";
activity_hide_level = "joins parts quits nicks modes";
show_quit_once = "yes";
};
"perl/core/scripts" = {
nickcolor_enable_prefix = "yes";
nickcolor_enable_truncate = "yes";
nickcolor_prefix_text = " %y│%N ";
nickcolor_truncate_value = "-10";
awl_shared_sbar = "OFF";
awl_viewer = "no";
awl_hide_empty = "1";
awl_hide_data = "0";
awl_maxlines = "1";
awl_block = "15";
awl_sbar_maxlength = "yes";
awl_placement = "bottom";
awl_viewer_tmux_position = "right";
fancy_abbrev = "head";
awl_all_disable = "no";
awl_height_adjust = "1";
awl_position = "0";
awl_sort = "refnum";
awl_mouse = "yes";
mouse_escape = "0";
awl_mouse_offset = "0";
mouse_scroll = "3";
splitlong_line_start = " ";
nicklist_color = "yes";
};
"fe-common/irc" = {
query_track_nick_changes = "yes";
sasl_disconnect_on_failure = "no";
group_multi_mode = "yes";
};
"irc/core" = {
rejoin_channels_on_reconnect = "ON";
split_line_on_space = "yes";
part_message = "bai";
};
};
logs = { };
statusbar = {
items = {
awlbarstart = " %y ┌┄┄╌╼ %w";
awlbarend = " %y ╾─┐ ";
more = "%y┄┄─ %Nmore %y┄┄─┐";
};
default = {
window = {
items = {
barstart = { priority = "100"; };
user = { };
window = { };
window_empty = { };
lag = { priority = "-1"; };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
disabled = "yes";
};
topic = { };
awl_0 = {
items = {
barstart = { priority = "100"; };
awl_0 = { };
barend = { priority = "100"; alignment = "right"; };
};
};
};
};
keyboard = (
{
key = "meta-N";
id = "command";
data = "script exec Irssi::Script::tmux_nicklist_portable::toggle_nicklist";
},
{ key = "meta-[M"; id = "command"; data = "mouse_xterm"; }
);
ignores = (
{ mask = "JOINS"; level = "PARTS"; channels = ( "*" ); },
{ level = "JOINS PARTS QUITS"; }
);

284
.irssi/zinc.theme Normal file
View File

@ -0,0 +1,284 @@
#····································································
# ______ __ __ __ ______ #
# /\___ \ /\ \ /\ "-.\ \ /\ ___\ #
# \/_/ /__ \ \ \ \ \ \-. \ \ \ \____ #
# /\_____\ \ \_\ \ \_\\"\_\ \ \_____\ #
# \/_____/ \/_/ \/_/ \/_/ \/_____/ #
# #
#····································································
# GLOBALS------------------------------------------------------------
# default foreground color (%N) - -1 is the "default terminal color"
default_color = "-1";
# print timestamp/servertag at the end of line, not at beginning
info_eol = "false";
# these characters are automatically replaced with specified color
# (dark grey by default)
replaces = { "[]=" = "%w$*%n"; };
#--------------------------------------------------------------------
abstracts = {
# Generic--------------------------------------------------------
indent_default = " + ";
# text to insert at the beginning of each non-message line
line_start = "%r:%y:%g:%n ";
# timestamp styling
timestamp = "%Z5F5F5F$0-%n";
# any kind of text that needs hilighting
hilight = "%_$0-%_";
# any kind of error message,
error = "%R$0-%n";
# channel name is printed
channel = "%n$0-%n";
# nick is printed
nick = "%_$0-%_";
# nick host is printed
nickhost = "%K$*%K%n";
# server name is printed
server = "%_$*%_";
# some kind of comment is printed
comment = "$*";
# reason for something is printed (part, quit, kick, ..)
reason = "%R{comment $0-}";
# mode change is printed ([+o nick])
mode = "%n{comment $0-}";
#----------------------------------------------------------------
# Channel specific messages--------------------------------------
# highlighted nick/host is printed (joins)
channick_hilight = "%W$*%w";
chanhost_hilight = "{nickhost %c$*%w}";
# nick/host is printed (parts, quits, etc.)
channick = "%w$*%w";
chanhost = "{nickhost $*}";
# highlighted channel name is printed
channelhilight = "%n$*%n";
# ban/ban exception/invite list mask is printed
ban = "%c$*%n";
#----------------------------------------------------------------
# Messages-------------------------------------------------------
# the basic styling of how to print message, $0 = nick mode, $1 = nick
msgnick = "%y$0%w$1: %N";
# $0 = nick mode, $1 = nick
ownmsgnick = "%y$0%w$1: %N";
ownnick = "%9%p$*%_%n";
# public message in channel, $0 = nick mode, $1 = nick
pubmsgnick = "{msgnick $0 $1}%n";
pubnick = "%N$*%n";
# public message in channel meant for me, $0 = nick mode, $1 = nick
pubmsgmenick = "%W{msgnick $0 $1}%n";
menick = "%y$*%y";
# public highlighted message in channel
# $0 = highlight color, $1 = nick mode, $2 = nick
pubmsghinick = "{msgnick $1 $0$2:%n}";
# channel name is printed with message
msgchannel = "%K:%c$*%n";
# private message, $0 = nick, $1 = host
privmsg = "[%w$0%K(%w$1:%K)%n] ";
# private message from you, $0 = "msg", $1 = target nick
ownprivmsg = "[%w$0%K(%w$1:%K)%n] ";
# own private message in query
ownprivmsgnick = "{msgnick $*}";
ownprivnick = "%_$*%n";
# private message in query
privmsgnick = "{msgnick %w$*%n}";
#----------------------------------------------------------------
# Actions--------------------------------------------------------
# used internally by this theme
action_core = " %n:%n %y$0%n$1";
# generic one that's used by most actions
action = "{action_core $*} ";
# own action, both private/public
ownaction = "{action $*}";
# own action with target, both private/public
ownaction_target = "{action_core $0}%K:%c$1%n ";
# private action sent by others
pvtaction = "%_ (*) $*%n ";
pvtaction_query = "{action $*}";
# public action sent by others
pubaction = "{action $*}";
#----------------------------------------------------------------
# Other IRC Events-----------------------------------------------
# notices
ownnotice = "[%r$0%K(%R$1-%K)]%n ";
notice = "%K-%M$0-%K-%n ";
pubnotice_channel = "%K:%m$0-";
pvtnotice_host = "%K(%m$0-%K)";
servernotice = "%g!$0-%n ";
# CTCP
ownctcp = "[%c$0%K(%C$1-%K)] ";
ctcp = "%g$0-%n";
# wallops
wallop = "%W$0-%n: ";
wallop_nick = "%n$0-";
wallop_action = "%W * $0-%n ";
# netsplit
netsplit = "%R$0-%R";
netjoin = "%G$0-%G";
# /names -list
names_nick = "[%_$0%_%b$1-%n] ";
names_users = "[%Y$0-%n]";
names_channel = "%Y$0-%n";
# DCC
dcc = "<%g$0-%n>";
dccfile = "%_$0-%_";
# DCC chat, own msg/action
dccownmsg = "[%r$0%K($1-%K)%n] ";
dccownnick = "<%R$0-%n>";
dccownaction = "{action $0-}";
dccownaction_target = "{action_core $0}%K:%c$1%n ";
# DCC chat, others
dccmsg = "[%G$1-%K(%g$0%K)%n] ";
dccquerynick = "<%C$0-%n>";
dccaction = " %R>%Y>%G>%n %C$0-%n %|";
#----------------------------------------------------------------
# Statusbar------------------------------------------------------
# default background for all statusbars. You can also give
# the default foreground color for statusbar items.
sb_background = "%n%n";
# background for prompt / input line
sb_prompt_bg = "%w";
# background for info statusbar
sb_info_bg = "%8";
#background for topic bar
sb_topic_bg = "%z303030";
# text at the beginning of statusbars. sb-item already puts
# space there,so we don't use anything by default.
sbstart = "%K-(";
# text at the end of statusbars. Use space so that it's never
# used for anything.
sbend = "%K)-";
topicsbstart = "%C :: {sbstart $*}";
topicsbend = "{sbend $*} %C:: %n";
prompt = "%m×%n ";
sb = " %m-=%K[%w$*%K]%m=-%n";
sbmode = "%K(%n+%C$*%K)%n";
sbaway = " %K(%MzZzZ%K)";
sbservertag = "%n:$0 (change with ^X)";
# activity in statusbar
# ',' separator
sb_act_sep = "%K$*";
# normal text
sb_act_text = "%c$*";
# public message
sb_act_msg = "%W$*";
# hilight
sb_act_hilight = "%M$*";
# hilight with specified color, $0 = color, $1 = text
sb_act_hilight_color = "$0$1-%w";
#----------------------------------------------------------------
};
formats = {
"fe-common/core" = {
line_start_irssi = "{line_start}";
timestamp = "{timestamp $Z} ";
join = "%G>>%Z5F5F5F----join----%G>%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
part = "%B<<%Z5F5F5F----part----%B<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
kick = "%R<<%Z5F5F5F----kick----%R<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
quit = "%M<<%Z5F5F5F----quit----%M<%n {channick $0} %Z303030({nickhost %Z5F5F5F$1}%Z303030)%n";
quit_once = "{channel $3} {channick $0} {chanhost $1} %kquit {reason %C$2}";
nick_changed = "%Z5F5F5F{channick $[-13]0} %G>%n {channick $1}";
your_nick_changed = "%Z5F5F5F you %G>%n {channick $1}";
};
"fe-common/irc" = {
chanmode_change = "%Z5F5F5F─┄┄ %n mode %y!%n {channick $1}";
server_chanmode_change = "%Z5F5F5F─┄┄ %n mode %y!%n {channick $1}";
whois = "%Z5F5F5F┌┄┄ %n\012%c%Z5F5F5F│ user %n$0 (%n$1%c@%n$2) %n\012%c%Z5F5F5F│ name %n$3%n";
whois_idle = "%Z5F5F5F│ idle%n %│$1d $2h $3m $4s";
whois_idle_signon = "%Z5F5F5F│ idle%n %|$1d $2h $3m $4s {comment signon: $5}";
whois_server = "%Z5F5F5F│ serv%n %|$1 {comment $2}";
whois_oper = "%Z5F5F5F│ oper%n {hilight $1}";
whois_registered = "%Z5F5F5F│ rgis%n yes";
whois_help = "%Z5F5F5F│ help%n available for help";
whois_modes = "%Z5F5F5F│ mode%n $1";
whois_realhost = "%Z5F5F5F│ real%n $1-";
whois_usermode = "%Z5F5F5F│ umod%n $1";
whois_channels = "%Z5F5F5F│ chan%n %|$1";
whois_away = "%Z5F5F5F│ away%n %|$1";
whois_special = "%Z5F5F5F│ info%n {comment %|$1}";
whois_extra = "%Z5F5F5F│ extr%n %|$1";
end_of_whois = "%Z5F5F5F└┄┄ ";
whois_not_found = "%Z5F5F5F─┄┄ %nthere is no such nick $0";
own_action = "{ownaction $[-11]0} $1";
action_private = "{pvtaction $[-11]0}$1";
action_private_query = "{pvtaction_query $[-11]0} $2";
action_public = "{pubaction $[-11]0}$1";
};
"Irssi::Script::adv_windowlist" = {
awl_display_header = "%U%9%w$C";
awl_display_nokey = " $Q$N${cumode_space}$H$C$S";
awl_display_key = " $Q${cumode_space}$H$C$S";
awl_display_nokey_visible = " %I $Q$N${cumode_space}$H$C$S";
awl_display_key_visible = " %I $Q${cumode_space}$H$C$S";
awl_display_nokey_active = "%g $Q$N${cumode_space}$H$C$S";
awl_display_key_active = "%g $Q${cumode_space}$H$C$S";
awl_abbrev_chars = "+x{301c}";
};
};

View File

@ -8,8 +8,10 @@ configuration {
display-run: "Execute";
display-window: "Switch";
show-icons: false;
drun-icon-theme: "papirus";
sidebar-mode: true;
eh: 1;
bw: 0;
dpi: -1;
}
/* global settings and color variables */
@ -41,8 +43,7 @@ configuration {
line-padding: 2;
separator-style: "none";
hide-scrollbar: "true";
/*font: "IBM Plex Sans 10";*/
font: "monaco 8";
font: "IBM Plex Sans 10";
margin: 0;
padding: 0;
}

View File

@ -1,27 +0,0 @@
# vim:filetype=config:tw=80:et
background "#080808"
decorations none
dockapp_mode none
fuzzy_edges 0
geometry 1x5+1350+0
grow_gravity NE
icon_gravity NE
icon_size 16
log_level err
kludges fix_window_pos,force_icons_size
max_geometry 0x0
no_shrink false
parent_bg false
scrollbars none
skip_taskbar true
sticky true
tint_color black
tint_level 255
transparent false
vertical true
window_layer top
window_strut top
window_type dock
xsync false

View File

@ -39,7 +39,7 @@ setw -g pane-border-format '─'
set -g set-titles on
set -g set-titles-string "#T"
set -g message-command-style bg=colour0,fg=colour13
set -g message-style bg=colour4,fg=colour0
set -g message-style bg=colour3,fg=colour0
set -g status-style bg=default,fg=colour7
set -g status-interval 1
set -g status-left ''

34
.zshrc
View File

@ -161,6 +161,8 @@ autoload -U colors && colors
unsetopt CASE_GLOB
# glob dotfiles as well
setopt GLOBDOTS
# Sort filenames numerically when it makes sense
setopt numericglobsort
# Automatically change directory if a directory is entered
setopt autocd
@ -254,6 +256,7 @@ zstyle ':completion::*:kill:*:*' command 'ps xf -U $USER -o pid,%cpu,cmd'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' rehash true
# }}}
# History {{{
@ -316,6 +319,37 @@ source $MODULES_DIR/transmission.zsh
source $MODULES_DIR/aliases.plugin.zsh
source $MODULES_DIR/omg.zsh
# }}}
# CDR, Persistent cd {{{
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
DIRSTACKFILE="$HOME/.cache/zsh/dirs"
# make DIRSTACKFILE if it's not there
if [[ ! -a $DIRSTACKFILE ]]; then
mkdir -p $DIRSTACKFILE[0,-5]
touch $DIRSTACKFILE
fi
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
fi
chpwd() {
print -l $PWD ${(u)dirstack} >>$DIRSTACKFILE
d="$(sort -u $DIRSTACKFILE )"
echo "$d" > $DIRSTACKFILE
}
DIRSTACKSIZE=20
setopt AUTO_PUSHD PUSHD_SILENT PUSHD_TO_HOME
# Remove duplicate entries
setopt PUSHD_IGNORE_DUPS
# This reverts the +/- operators.
setopt PUSHD_MINUS
# }}}
# End Profiling Script {{{
if [[ "$PROFILE_STARTUP" == true ]]; then
unsetopt xtrace

View File

@ -1,28 +0,0 @@
#!/usr/bin/env bash
set -euf -o pipefail
export DISPLAY=:0.0
if ping -q -w 1 -c 1 "$(ip r | grep -m 1 default | cut -d ' ' -f 3)" >/dev/null
then
# Run offlineimap. You can feed this script different settings.
offlineimap -o "$@"
# Check all accounts/mailboxes for new mail. Notify if there is new content.
for account in ~/.mail/*
do
[[ -e $account ]] || break
# List unread messages newer than last mailsync and count them
newcount=$(find "$account"/INBOX/new/ -type f -newer ~/.config/mutt/etc/mailsynclastrun 2> /dev/null | wc -l)
if [ "$newcount" -gt 0 ]
then
cuenta=$(echo "$account" | rev | cut -d"/" -f1-1 | rev)
notify-send-headless -a neomutt "You've Got Mail" "$newcount new message(s) in $cuenta"
fi
done
# Create a touch file that indicates the time of the last run of mailsync
notmuch new
touch ~/.config/mutt/etc/mailsynclastrun
else
exit
fi

View File

@ -22,19 +22,36 @@ killrecording() {
screencast() { \
ffmpeg -y \
-thread_queue_size 4096 \
-f alsa -ac 2 -i pulse \
-f x11grab \
-framerate 60 \
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
-i :0.0 \
-f alsa -i default \
-r 30 \
-c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
-c:v libx264rgb -crf 0 -preset ultrafast -c:a aac -b:a 128k \
"$HOME/Video/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
echo $! > /tmp/recordingpid
}
video() { ffmpeg \
jack() {
ffmpeg -y \
-thread_queue_size 4096 \
-f jack -i ffmpeg \
-f x11grab \
-framerate 60 \
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
-i :0.0 \
-r 30 \
-c:v libx264 -qp 0 -r 30 -c:a flac \
"$HOME/Video/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
echo $! > /tmp/recordingpid
}
mute() {
ffmpeg -y \
-f x11grab \
-thread_queue_size 4096 \
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
-i :0.0 \
-c:v libx264 -qp 0 -r 30 \
@ -43,10 +60,12 @@ video() { ffmpeg \
}
audio() { \
ffmpeg \
-f alsa -i default \
-c:a flac \
"$HOME/Music/Mios/$(date '+%y%m%d-%H%M-%S').flac" &
ffmpeg -y \
-thread_queue_size 4096 \
-f pulse -i default \
-ac 2 -channel_layout stereo -async 1 \
-c:a aac -b:a 128k \
"$HOME/Music/Tape/$(date '+%y%m%d-%H%M-%S').mp3" &
echo $! > /tmp/recordingpid
}
@ -66,6 +85,7 @@ asktoend() { \
case "$1" in
screencast) screencast;;
jack) jack;;
audio) audio;;
video) video;;
kill) killrecording;;

View File

@ -13,7 +13,7 @@ set -euf -o pipefail
music_dir="$HOME/Music/Albums"
# What should the covers be resized to in pixels
cover_resize="250"
cover_resize="100"
# What is the cover file called?
img_reg=".*/(cover|front|folder|art).(jpg|jpeg|png|gif)$"
@ -31,7 +31,7 @@ form="<span color='$artist_color'>%artist%</span> - <span color='$song_color'>%t
# These are some variables we need for things to work
song="$(mpc --format %file% current)"
songdir="$music_dir/$(dirname "${song}")/"
temp_path="/tmp/current_cover.png"
raw_cover="/tmp/current_cover.png"
heading="$(mpc current -f "$title" | sed "s:&:&amp;:g")"
message="$(mpc current -f "$form" | sed "s:&:&amp;:g" )"
@ -46,9 +46,13 @@ cover="$(find "$songdir" -maxdepth 1 -type f -regextype egrep -regex "$img_reg"
# Resize the cover
if [[ -n $cover ]]; then
ffmpeg -hide_banner -loglevel panic -nostats -y -i "$cover" -vf scale="$cover_resize":-2 "$temp_path"
cover="$temp_path"
ffmpeg -hide_banner -loglevel panic -nostats -y -i "$cover" -vf scale="$cover_resize":-2 "$raw_cover"
cover="$raw_cover"
fi
# Send the notification
notify-send -u low -t 8000 -i "$cover" "$heading" "$message"
# add a rule to make sxiv:albumcover floating
#sxiv "$cover" -N albumcover -g 240x240-10-10 -bpq > /dev/null 2>&1 & pid=$!
# { sleep 4; kill "$pid"; } &

View File

@ -1,6 +1,6 @@
#!/bin/bash
if command -v tmux >/dev/null 2>&1; then
test -z "$TMUX" && (tmux new -A -s shell)
test -z "$TMUX" && (tmux new -A -s λ)
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euf -o pipefail
HEART='\uf004'
HEART='\uf21e'
WIFI='\ufaa8'
if [ -d /sys/class/power_supply/BAT0 ]; then