dgy
/
hexagons
Archived
1
0
Fork 0

no se, 20 cosas distintas y ya me olvide. algunas regresiones y mantenimiento. vim-slime funciona bien ahora.

This commit is contained in:
deadguy 2020-02-29 04:00:08 -03:00
parent 6cd2e26503
commit 5895b69bae
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
25 changed files with 170 additions and 145 deletions

View File

@ -65,13 +65,15 @@ bspc rule -a Lxappearance state=floating
# Otros
bspc rule -a Zathura state=tiled
bspc rule -a Oblogout state=fullscreen, layer=above
bspc rule -a Firefox:Navigator state=tiled
bspc rule -a Firefox:Navigator state=tiled, desktop=^2 follow=on
bspc rule -a Termite:archi desktop='^3'
bspc rule -a Termite:multi desktop='^1'
setbg &
unclutter &
sleep 3s
if xrandr | grep "VGA1 connected"; then
xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1
fi
setbg &

View File

@ -24,12 +24,12 @@
# screen width minus the width defined in within the geometry option.
geometry = "600x8-10+31"
title = Dunst # Define window title
class = Dunst # Define window class
shrink = yes # Shrink window, or set to 0
title = Dunst # Define window title
class = Dunst # Define window class
shrink = yes # Shrink window, or set to 0
transparency = 0 # Needs compton or similar
idle_threshold = 120 # Keep messages for how long
monitor = 0 # what monitor to use
monitor = 0 # what monitor to use
follow = none
stack_duplicates = true # Merge multiple similar notifications
hide_duplicate_count = true
@ -72,22 +72,22 @@
per_monitor_dpi = false
[shortcuts]
close = mod4+apostrophe
close_all = mod4+mod1+apostrophe
history = mod4+ctrl+apostrophe
context = mod4+ctrl+semicolon
close = mod4+apostrophe
close_all = mod4+mod1+apostrophe
history = mod4+ctrl+apostrophe
context = mod4+ctrl+semicolon
[urgency_low]
background = "#212121"
foreground = "#e8d0c0"
frame_color = "#5d879c"
timeout = 5
frame_color = "#b16286"
timeout = 5
[urgency_normal]
background = "#101010"
foreground = "#e0d0c3"
frame_color = "#c4a000"
timeout = 10
frame_color = "#0474a7"
timeout = 10
[urgency_critical]
background = "#fb4245"
@ -96,7 +96,7 @@
timeout = 60
[mail]
appname = neomutt
new_icon = "/home/deadguy/Pictures/rand/message.svg"
appname = neomutt
new_icon = "/home/deadguy/Pictures/rand/message.svg"
# vim: ft=cfg

View File

@ -3,7 +3,6 @@ set shell zsh
set shellopts '-eu:--shwordsplit'
set ifs "\n"
set scrolloff 5
set icons
set previewer ~/bin/lf-preview
set wrapscroll
set number
@ -13,6 +12,7 @@ set reverse
set incsearch
set ratios '1:3:2'
set color256
set icons
%{{
w=$(tput cols)
@ -26,7 +26,6 @@ set color256
}}
# Custom Functions
# cmds/functions
cmd open ${{
case $(file --mime-type $f -b) in
text/troff) man ./ $f;;
@ -92,11 +91,49 @@ cmd zip ${{
rm -rf $1
}}
cmd rifle ${{
set -f
rifle -l $f
read -p "Select runner: " runner
rifle -p $runner $f
cmd paste %{{
load=$(lf -remote 'load')
mode=$(echo "$load" | sed -n '1p')
list=$(echo "$load" | sed '1d')
if [ $mode = 'copy' ]; then
cp -r --backup=numbered $list .
elif [ $mode = 'move' ]; then
mv --backup=numbered $list .
fi
lf -remote 'send load'
lf -remote 'send clear'
}}
cmd paste-rsync &{{
load=$(lf -remote 'load')
mode=$(echo "$load" | sed -n '1p')
list=$(echo "$load" | sed '1d')
if [ $mode = 'copy']; then
rsync -av --ignore-existing --progress $list . \
| stdbuf -i0 -o0 -e0 tr '\r' '\n' \
| while read line; do
lf -remote "send $id echo $line"
done
elif [ $mode = 'move' ]; then
mv -n $list .
fi
lf -remote 'send load'
lf -remote 'send clear'
}}
cmd fzf_jump ${{
res="$(find . -maxdepth 3 | fzf-tmux --reverse --header='Jump to location')"
if [ -f "$res" ]; then
cmd="select"
elif [ -d "$res" ]; then
cmd="cd"
fi
lf -remote "send $id $cmd \"$res\""
}}
# Bindings
@ -105,8 +142,18 @@ map m
map n
map "'"
map '"'
map d
map p
map w
map y
map c
map u
map e
map /
# Basic Functions
cmap <esc> cmd-escape
map | top
map ¿ bottom
@ -122,8 +169,18 @@ map <f-9> paste
map <enter> open
map <delete> delete
map yy copy
map yn $basename -z $f | xsel -i -b
map yp $readlink -fn $f | xsel -i -b
map Y %cp -ri $fs .
map dd cut
map D %mv -i $fs .
map pp paste
map pr paste-rsync
map . set hidden!
map uu unselect
map uy clear
map S shell
# Rename with the filename on the command line
map ra $lf -remote "send $id push :rename<space>$f"
@ -135,7 +192,9 @@ map bg $setbg $f
map cx %chmod +x $f
map o open $f
map F $find | lf -remote "send $id select $(fzf --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
map <tab> $lf -remote "send $id select '$(fzf)'"
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf-tmux)\""
map F $find | lf -remote "send $id select $(fzf-tmux --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
# Movement
map gu cd ~/Documents/
@ -146,7 +205,7 @@ map g. cd ~/.config
map gs cd ~/.local/share
map gm cd ~/Music/Albums
map gb cd ~/bin
map gM cd /media
map gM cd /run/media/deadguy
map gR cd /
map gv cd ~/Videos/Learning
map gp cd ~/Pictures

View File

@ -25,8 +25,10 @@ bind pager <right> next-undeleted
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
set strict_threads
set uncollapse_jump # no collapse on unread message
set autoedit # Skip directly to composing
set edit_headers
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
@ -39,6 +41,11 @@ set skip_quoted_offset = 3
set sidebar_visible = no
set editor="nvim -c 'set textwidth=80'"
set status_on_top = yes
set send_charset="utf-8"
set assumed_charset="cp1252"
charset-hook ^iso-8859-1$ cp1252
set recall=no
set read_inc=100
set alias_format = " %4n %t %-20a %r "
set date_format ="%a %d %b %R"

View File

@ -1,7 +1,6 @@
{
"codeLens.enable": true,
"coc.preferences.currentFunctionSymbolAutoUpdate": true,
"coc.preferences.snippetStatusText": "Ⓢ ",
"coc.preferences.extensionUpdateCheck": "never",
"diagnostic.displayByAle": true,
"diagnostic.refreshOnInsertMode": true,
"diagnostic.refreshAfterSave": true,
@ -41,8 +40,9 @@
"list.source.grep.args": ["--vimgrep", "--hiden", "--no-heading"],
"list.source.mru.ignoreGitIgnore": true,
"list.previewSplitRight": true,
"python.analysis.diagnosticEnabled": false,
"suggest.enablePreview": true,
"suggest.snippetIndicator": "⮞",
"suggest.snippetIndicator": " ⮞",
"suggest.triggerCompletionWait": 100,
"suggest.echodocSupport": true,
"suggest.maxPreviewWidth": 100,

View File

@ -1,16 +1,3 @@
setlocal ts=4
setlocal sts=4
setlocal sw=4
setlocal et
setlocal tw=80
setlocal colorcolumn=79
setlocal smartindent
setlocal autoindent
setlocal fileformat=unix
setlocal formatoptions+=croq
setlocal omnifunc=pythoncomplete#Complete
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class,with
augroup pystuff
autocmd!
autocmd BufNewFile *.py 0r ~/.config/nvim/templates/py.skeleton
@ -21,15 +8,5 @@ nnoremap <buffer> <LocalLeader>i :!isort %<CR><CR>
nnoremap <buffer> <silent> <LocalLeader>= :ALEFix<CR>
nnoremap <buffer> <localleader>c I#<esc>
let g:ale_python_mypy_options = "--ignore-missing-imports"
let g:ale_python_pylint_options = "--disable=C"
let g:ale_python_flake8_options = "--ignore=E221"
let g:move_key_modifier = 'N'
" Check Python files with flake8 and pylint.
let b:ale_linters = ['pyls', 'flake8', 'pylint']
" Fix Python files with autopep8 and yapf.
let b:ale_fixers = ['autopep8', 'remove_trailing_lines', 'isort', 'yapf']
" Disable warnings about trailing whitespace for Python files.
let b:ale_warn_about_trailing_whitespace = 0

View File

@ -5,7 +5,7 @@ let g:python_host_skip_check=1 " Skip python 2 host check
let g:python3_host_prog = '/usr/bin/python3'
let g:node_host_prog = '/usr/local/bin/neovim-node-host'
let g:tagbar_ctags_bin = '/usr/bin/ctags'
let python_highlight_all=1 " full python syntax highlighting
let python_highlight_all=1 " full python syntax highlighting
" }}}
" Plugins {{{
call plug#begin('~/.config/nvim/plugged')
@ -16,6 +16,7 @@ Plug 'mhartington/nvim-typescript', {'do': './install.sh', 'for': 'typescript'}
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'sheerun/vim-polyglot'
Plug 'liuchengxu/vista.vim'
Plug 'jpalardy/vim-slime'
Plug 'tmsvg/pear-tree'
Plug 'tpope/vim-commentary'
Plug 'honza/vim-snippets'
@ -66,13 +67,13 @@ set softtabstop=4 " While performing editing operations
set shiftround " Round indent to multiple of 'shiftwidth'
set breakindent " Keep indentation
set expandtab
set nosmarttab
set title
set redrawtime=500
set ttimeoutlen=10
set nowritebackup
set completeopt-=preview
set nostartofline
set nosmarttab
set modeline
set undofile
set undolevels=1000
@ -101,6 +102,7 @@ let mapleader="\<SPACE>"
let maplocalleader=','
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
let g:polyglot_disabled = ['javascript', 'python']
let g:markdown_fenced_languages = ['vim', 'help']
" }}}
" {{{ Ale
@ -121,6 +123,10 @@ let g:ale_virtualtext_cursor = 1
let g:ale_loclist_msg_format = '[%linter%] %s% (code)% [%severity%]'
let g:ale_set_highlights = 1
let g:ale_set_signs = 1
let g:ale_python_mypy_options = '--ignore-missing-imports'
let g:ale_python_pylint_options = '--disable=C'
let g:ale_python_flake8_options = '--ignore=E221'
let g:move_key_modifier = 'N'
let g:ale_linter_aliases = {
\ 'jsx': ['css', 'javascript'],
@ -137,6 +143,7 @@ let g:ale_linters = {
\ 'bash': ['shellcheck'],
\ 'sh': ['shellcheck'],
\ 'vim': ['vint'],
\ 'python': ['pyls', 'flake8', 'pylint']
\}
let g:ale_fixers = {
\ 'javascript': ['prettier_standard'],
@ -147,6 +154,7 @@ let g:ale_fixers = {
\ 'css': ['stylelint'],
\ 'html': ['prettier'],
\ 'markdown': ['prettier'],
\ 'python': ['autopep8', 'remove_trailing_lines', 'isort', 'yapf']
\}
let g:ale_pattern_options = {
\ '\.min\.js$': {'ale_linters': [], 'ale_fixers': []},
@ -200,6 +208,11 @@ endfunction
imap <C-j> <Plug>(coc-snippets-expand-jump)
let g:coc_snippet_next = '<tab>'
let g:coc_snippet_prev = '<S-TAB>'
" Python
nnoremap <silent>gp :CocCommand python.execInTerminal<CR>
nnoremap <silent>gr :CocCommand python.startREPL<CR>
"}}}
" Vista {{{
let g:vista#renderer#enable_icon = 1
@ -215,7 +228,6 @@ let g:vista_executive_for = {
nnoremap <silent> <F11> :Vista!!<cr>
" }}}
" JS {{{
let g:polyglot_disabled = ['javascript']
let g:vim_jsx_pretty_colorful_config = 1
let g:jsx_ext_required = 1
let g:yats_host_keyword = 1
@ -315,7 +327,8 @@ function! Statusline()
let b:status.=LinePasteMode()
let b:status.='%1* '
let b:status.='%= '
let b:status.='%6*'
let b:status.=coc#status()
let b:status.=' %6*'
let b:status.=LinterStatus()
let b:status.='%3* %p%% %c '
return b:status
@ -443,6 +456,9 @@ if !exists('autocommands_loaded') && has('autocmd')
endif
" }}}
" REPL {{{
let g:slime_target = 'neovim'
let g:slime_python_ipython = 1
let g:my_active_terminal_job_id = -1
function! LaunchTerminal() range
@ -457,7 +473,7 @@ function! LaunchSC() range abort
call SetActiveTerminalJobID()
call jobsend(g:my_active_terminal_job_id, "scsynth -u 57110\r")
sleep 2200ms
silent exe 'normal! G'
silent exe "normal! G"
silent exe "normal! :vsplit\n"
silent exe "normal! :terminal\n"
call SetActiveTerminalJobID()
@ -468,6 +484,13 @@ function! LaunchSC() range abort
silent exe 'normal! G'
endfunction
function! LaunchIpython() range abort
call LaunchTerminal()
call jobsend(g:my_active_terminal_job_id, "ipython\r")
sleep 2200ms
silent exe "normal! G"
endfunction
function! LaunchFoxDot() range abort
call LaunchTerminal()
call jobsend(g:my_active_terminal_job_id, "ipython\r")
@ -478,35 +501,12 @@ endfunction
function! SetActiveTerminalJobID()
let g:my_active_terminal_job_id = b:terminal_job_id
echom 'Active terminal job ID set to ' . g:my_active_terminal_job_id
endfunction
function! LineFlash(blinktime)
redraw!
exec 'sleep ' . float2nr(a:blinktime * 1000) . 'm'
silent exe 'normal! vv'
endfunction
function! SendToFoxdot() range abort
" Yank the last selection into register 'a'
silent exe 'normal! gv"ay'
" Flash selection
call LineFlash(0.3)
" Send register 'a' into the terminal
call jobsend(g:my_active_terminal_job_id, @a)
" Pause a moment, then send a carriage return to trigger its evaluation
sleep 210ms
call jobsend(g:my_active_terminal_job_id, "\r")
endfunction
function! SilenceFoxDot() abort
call jobsend(g:my_active_terminal_job_id, "Clock.clear()\r")
echom "Active terminal job ID set to " . g:my_active_terminal_job_id
endfunction
map <silent> <Leader>xi :call LaunchIpython()<CR>
map <silent> <Leader>xs :call LaunchSC()<CR>
map <silent> <Leader>xd :call LaunchFoxDot()<CR>
map <silent> <Leader>xx :call SendToFoxdot()<CR>
map <silent> <Leader>x. :call SilenceFoxDot()<CR>
map <silent> <Leader>xf :set filetype=foxdot<CR>
"}}}
" Vim-Tmux Navigator {{{
@ -521,9 +521,6 @@ if &term =~? '^screen' && !has('nvim') | exe "set t_ts=\e]2; t_fs=\7" | endif
" Plug
nnoremap <leader>pu :PlugUpdate<CR>
nnoremap ¿ G
nnoremap <Bar> gg
" Ñ master race
nnoremap ñ ;
nnoremap Ñ ,
@ -557,12 +554,16 @@ nnoremap <silent> <leader>Q :qa!<CR>
" Fast leave insert mode
cnoremap jk <C-c>
" Fast beginning and end of document
nnoremap ¿ G
nnoremap <Bar> gg
" Splits
nnoremap <leader>T :terminal<CR>
nnoremap <leader>s :split<CR>
nnoremap <leader>v :vsplit<CR>
nnoremap <leader>nv :vnew<CR>
nnoremap <leader>ns :new<CR>
nnoremap <silent> <leader>T :call LaunchTerminal()<CR>
nnoremap <silent> <leader>s :split<CR>
nnoremap <silent> <leader>v :vsplit<CR>
nnoremap <silent> <leader>nv :vnew<CR>
nnoremap <silent> <leader>ns :new<CR>
" My vim wants to enter all the time, enter all the time
nnoremap <silent> <CR> i<CR><ESC>
@ -640,6 +641,10 @@ inoremap <A-k> <Esc><C-w>k
inoremap <A-l> <Esc><C-w>l
"}}}
"Visual {{{
" Fast beginning and end of document
vnoremap ¿ G
vnoremap <Bar> gg
" Visual mode pressing # searches for the current selection
vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>

View File

@ -24,6 +24,7 @@ syn keyword foxdotSynths
\ dirt
\ crunch
\ rave
\ jbass
\ scatter
\ charm
\ bell

View File

@ -66,7 +66,6 @@ set one_indexed true
set save_tabs_on_exit false
set wrap_scroll true
set global_inode_type_filter
set size_in_bytes false
# == Command Aliases in the Console
alias e edit

View File

@ -11,8 +11,7 @@ configuration {
case-sensitive: false;
cycle: true;
auto-select: true;
matching: "fuzzy";
tokenize: true;
tokenize: false;
fullscreen: false;
threads: 0;
scroll-method: 1;
@ -22,7 +21,7 @@ configuration {
drun-display-format: "{name}";
drun-match-fields: "name,exec";
combi-hide-mode-prefix: true;
window-match-fields: "all";
window-match-fields: "title,name";
window-command: "xkill -id {window}";
window-format: "{w:8}{c:16}{t}";
pid: "/run/user/1000/rofi.pid";

View File

@ -8,23 +8,17 @@ super + {_,shift} + w
super + f
bspc node -t $(bspc query -N -n -n .tiled >/dev/null && echo floating || echo tiled)
super + shift + f
bspc node -t $(bspc query -N -n -n .tiled >/dev/null && echo fullscreen || echo tiled)
super + {_,shift} + {h,j,k,l}
bspc node -{f,s} {west,south,north,east}
super + ctrl + {h,j,k,l}
agrandar.sh {west,south,north,east}
super + alt + {h,j,k,l}
bspc node -p {west,south,north,east}
super + {_,shift,ctrl,alt} + {h,j,k,l}
{foco,mover,agrandar,bspc node -p} {west,south,north,east}
super + alt + space
bspc node -p cancel
super + {_, shift +} {1-9,0}
bspc {desktop -f,node -d} {1-9,10} && notifocus
super + {1-9,0}
bspc desktop -f {1-9,10} && notifocus
super + shift + {1-9,0}
bspc node -d {1-9,10}
super + {braceleft,braceright}
bspc desktop -f {prev.occupied,next.occupied}
@ -64,22 +58,13 @@ super + {t,b,v,q,x,c}
{subl,$BROWSER,pavucontrol,powermenu,$TERMINAL,gsimplecal}
super + z
termite --name=multi
termite --name=multi -e termux
super + n
termite --name=flota -e nmtui
super + {n,m}
termite --name=flota -e {nmtui,brandr}
super + alt + z
termite --name=flota
super + space
rofi -show drun
super + s
rofi -theme customenu -show window
super + r
rofi -theme dmenu2 -show run
super + {space,s,r}
rofi {-show drun,-theme customenu -show window,-theme dmenu2 -show run}
ctrl + alt + x
xkill

View File

@ -1,8 +1,6 @@
[options]
# font = Monaco 11
# font = MonacoB2 Nerd Font Mono Regular 10
# font = NotoSansMono Nerd Font Regular 9.5
font = RobotoMono Nerd Font Mono Regular 10
font = JetBrains Mono Regular 10.5
hyperlinks = true
icon_name = terminal
scroll_on_output = false
@ -21,7 +19,7 @@ cursor_blink = off
size_hints = false
filter_unmatched_urls = true
cursor_shape = underline
# cell_width_scale = 1.3
cell_width_scale = 1.2
# cell_height_scale = 1.4
[colors]

View File

@ -19,6 +19,7 @@ alias kat='cat'
alias nb='newsboat --quiet'
alias sxiv='sxiv-rifle -p -b -a -q'
alias yt='mpsyt'
alias pudb='python -m pudb.run'
# Git
alias git='lab'

View File

@ -1,10 +1,5 @@
# -*- mode: shell-script -*-
# vim:ft=zsh
# Tmux {{{
if command -v tmux >/dev/null 2>&1; then
test -z "$TMUX" && (tmux new -A -s "Z")
fi
# }}}
# Completion Dots {{{
# if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"

View File

@ -50,7 +50,7 @@ set -g status-left ''
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
set -g window-status-activity-style 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},}}"

1
.zshrc
View File

@ -40,7 +40,6 @@ setopt PATH_DIRS
setopt AUTO_MENU
setopt AUTO_LIST
setopt AUTO_PARAM_SLASH
setopt COMPLETE_ALIASES
setopt MARK_DIRS
setopt LIST_PACKED
setopt MAGIC_EQUAL_SUBST

View File

@ -3,6 +3,7 @@ advcp
alsa-utils
android-tools
android-udev
arandr
atool
audacity
autoconf
@ -11,16 +12,14 @@ autopep8
bat
bison
blueman
brandr
bspwm
cadence
compton-conf
chafa
cpupower
crda
cronie
ctags
dash
dbeaver
dfc
dhclient
dhcpcd
@ -40,8 +39,8 @@ fasd
fd
ffmpegthumbnailer
file-roller
filezilla
firefox
flex
gcc
ghostscript
gimp-plugin-gmic
@ -73,6 +72,7 @@ isync
jfsutils
jp2a
jq
jre11-openjdk
libmatroska
libzip
licenses
@ -107,8 +107,8 @@ nfs-utils
nilfs-utils
notmuch
noto-fonts-cjk
noto-fonts-emoji
ntfs-3g
obs-studio
offlineimap
os-prober
p7zip
@ -127,7 +127,6 @@ perl-term-readline-gnu
perl-text-charwidth
picom
pkgbrowser
postgresql
prettier
pulseaudio-bluetooth
pulseaudio-jack
@ -150,9 +149,11 @@ python-virtualenv
python-wheel
qalculate-gtk
qt5ct
ranger
realtime-privileges
reiserfsprogs
ripgrep
rofi
rp-pppoe
rsync
rtirq

View File

@ -1,6 +1,6 @@
advcp
bashmount
bfs
colort-git
create-react-app
figlet-fonts
gimp-paint-studio
@ -13,7 +13,6 @@ gimp-plugin-saveforweb
gimp-plugin-scale-layer-to-image-size
git-extras
godot
gtk-theme-minwaita
lab
lf
lscolors-git
@ -22,14 +21,12 @@ nerd-fonts-roboto-mono
otf-san-francisco
perl-extract-url
pmount
pureref
python-lolcat
python-pysdl2
realtimeconfigquickscan-git
simple-mtpfs
soulseekqt
stylelint
syncterm
tcllib
terminus-font-ll2-td1
toilet-fonts

View File

@ -4,7 +4,7 @@ function () {
# Bookmarks
local -A bookmarks=(
'nvim' '~/.config/nvim/init.vim'
'irc' '~/.irssi/config'
'lf' '~/.config/lf/lfrc'
'mpv' '~/.config/mpv/mpv.conf'
'xres' '~/.Xresources'
'rss' '~/.config/newsboat/config'

View File

@ -16,7 +16,7 @@ syncandnotify() {
# Extract subject and sender from mail.
from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | head -n-1 | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | sed 's/^Subject: //' | sed 's/^{[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//' | tr -d '\n')
notify-send --apn-name="neomutt" -i ~/Pictures/.icn/correo.png "New message in $acc" "$from: $subject" &
notify-send -i ~/Pictures/.icn/correo.png "New message in $acc" "$from: $subject" &
done
fi
}

View File

@ -37,7 +37,7 @@ screencast() { \
jacka() { \
ffmpeg -y \
-thread_queue_size 4096 \
-f pulse -i 1 \
-f jack -i jack_out.monitor \
-ac 2 -channel_layout stereo -async 1 \
-c:a flac "$HOME/Videos/Tape/$(date '+%y%m%d-%H%M-%S').flac"
echo $! > /tmp/recordingpid