dgy
/
hexagons
Archived
1
0
Fork 0

ya ni se. sigo toqueteando los mismos 5 archivos de siempre mitad por terco mitad por obsesivo. compton cambio de nombre

This commit is contained in:
deadguy 2019-12-20 18:08:06 -03:00
parent 8af3cdc3bd
commit 81be7a21e4
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
13 changed files with 196 additions and 218 deletions

View File

@ -1,4 +1,50 @@
{
"codeLens.enable": true,
"coc.preferences.currentFunctionSymbolAutoUpdate": true,
"coc.preferences.snippetStatusText": "Ⓢ ",
"diagnostic.displayByAle": true,
"diagnostic.refreshOnInsertMode": true,
"diagnostic.refreshAfterSave": true,
"diagnostic.checkCurrentLine": true,
"diagnostic.maxWindowHeight": 20,
"diagnostic.errorSign": "✖",
"diagnostic.warningSign": "⚠",
"diagnostic.infoSign": "●",
"diagnostic.hintSign": "○",
"emmet.includeLanguages": {
"html.handlebars": "html",
"javascript": "javascriptreact"
},
"eslint.trace.server": "verbose",
"eslint.packageManager": "yarn",
"eslint.autoFix": false,
"eslint.autoFixOnSave": false,
"explorer.width": 30,
"explorer.icon.expanded": "▾",
"explorer.icon.collapsed": "▸",
"explorer.icon.enableNerdfont": true,
"explorer.buffer.columns": ["selection", "bufnr", "name", "modified"],
"explorer.file.columns": [
"git",
"selection",
"clip",
"indent",
"icon",
"filename"
],
"explorer.keyMappings": {
"v": "openInVsplit",
"s": "openInSplit",
"f": "addFile",
"D": "addDirectory",
"dd": "deleteForever",
"b": "search"
},
"list.source.files.command": "fd",
"list.source.files.args": ["-t", "f", "-S", "-2m", "-F", "-H"],
"list.source.grep.args": ["--vimgrep", "--hiden", "--no-heading"],
"list.source.mru.ignoreGitIgnore": true,
"list.previewSplitRight": true,
"suggest.enablePreview": true,
"suggest.snippetIndicator": "►",
"suggest.triggerCompletionWait": 100,
@ -31,77 +77,17 @@
"typeParameter": "\uf728",
"default": "\uf29c"
},
"diagnostic.displayByAle": true,
"diagnostic.refreshOnInsertMode": true,
"diagnostic.refreshAfterSave": true,
"diagnostic.checkCurrentLine": true,
"diagnostic.maxWindowHeight": 20,
"diagnostic.errorSign": "✖",
"diagnostic.warningSign": "⚠",
"diagnostic.infoSign": "●",
"diagnostic.hintSign": "○",
"coc.preferences.formatOnSaveFiletypes": [
"markdown",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json",
"graphql",
"css",
"scss",
"html"
],
"coc.preferences.currentFunctionSymbolAutoUpdate": true,
"coc.preferences.snippetStatusText": "Ⓢ ",
"codeLens.enable": true,
"signature.triggerSignatureWait": 100,
"session.saveOnVimLeave": false,
"list.source.files.command": "fd",
"list.source.files.args": ["-t", "f", "-S", "-2m", "-F", "-H"],
"list.source.grep.args": ["--vimgrep", "--hiden", "--no-heading"],
"list.source.mru.ignoreGitIgnore": true,
"list.previewSplitRight": true,
"explorer.width": 30,
"explorer.icon.expanded": "▾",
"explorer.icon.collapsed": "▸",
"explorer.icon.enableNerdfont": true,
"explorer.buffer.columns": ["selection", "bufnr", "name", "modified"],
"explorer.file.columns": [
"git",
"selection",
"clip",
"indent",
"icon",
"filename"
],
"explorer.keyMappings": {
"v": "openInVsplit",
"s": "openInSplit",
"f": "addFile",
"D": "addDirectory",
"dd": "deleteForever",
"b": "search"
"snippets.extends": {
"javascriptreact": ["javascript"],
"typescript": ["javascript"]
},
"emmet.includeLanguages": {
"html.handlebars": "html",
"javascript": "javascriptreact"
},
"tsserver.enableJavascript": true,
"tslint.enable": true,
"tslint.autoFixOnSave": true,
"eslint.trace.server": "verbose",
"eslint.autoFix": true,
"eslint.autoFixOnSave": true,
"eslint.filetypes": [
"javascript",
"javascript.jsx",
"typescript",
"typescriptreact",
"javascriptreact"
]
// "prettier.eslintIntegration": true,
// "prettier.stylelintIntegration": true,
// "prettier.disableSuccessMessage": true,
// "prettier.onlyUseLocalVersion": true
"tsserver.npm": "/home/deadguy/.yarn/bin/yarn",
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true
}

View File

@ -3,6 +3,7 @@ scriptencoding utf-8 " Set utf-8 as default scr
let g:loaded_python_provider=1 " Disable python 2 interface
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
" }}}
@ -19,25 +20,23 @@ Plug 'tmsvg/pear-tree'
Plug 'tpope/vim-commentary'
Plug 'honza/vim-snippets'
Plug 'mhartington/oceanic-next'
Plug 'christoomey/vim-tmux-navigator'
call plug#end()
" }}}
" Options {{{
set binary
set path+=** " Full tab completion with subfolders and all
set inccommand=nosplit " Live preview of substitutes and other similar commands
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
set fileencoding=utf-8 " The encoding written to file.
set inccommand=nosplit " Live preview of substitutes and other similar commands
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
set fileencoding=utf-8 " The encoding written to file.
set shell=/bin/zsh " Setting shell to zsh
set number " Line numbers on
set number " Line numbers on
set relativenumber " For easier line jumps
set noshowmode " Always hide mode
set laststatus=2 " Always show statusline
set showtabline=2 " Always Show tabline
set pumheight=12 " Completion window max size
set helpheight=12 " Minimum help window height
set noswapfile " New buffers will be loaded without creating a swapfile
set hidden " Enables to switch between unsaved buffers and keep undo history
set hidden " Enables to switch between unsaved buffers and keep undo history
set lazyredraw " Don't redraw while executing macros (better performance)
set showmatch " Show matching brackets when text indicator is over them
set matchpairs+=<:> " Add HTML brackets to pair matching
@ -53,19 +52,20 @@ set ignorecase " Ignore case by default
set cursorline " Hightlight the screen line of the cursor
set visualbell " Use visual bell instead of beeping
set scrolloff=5 " Keep this many lines padding when scrolling
set shortmess+=aoOIWcs " Shorten messages and don't show intro
set shortmess+=aoOIWcs " Shorten messages and don't show intro
set foldnestmax=10 " Deepest fold is 10 levels
set foldmethod=marker " Markers are used to specify folds.
set foldmethod=marker " Markers are used to specify folds.
set foldclose=all " Folds closed by default
set foldlevelstart=10
set foldlevelstart=10 " Don't auto open folds after this many levels
set selectmode=key " Shift + arrow keys for selecting text
set keymodel=startsel " This one complements the one above it
set keymodel=startsel " This one complements the one above it
set signcolumn=yes " Gutter for diagnostics and git status
set tabstop=4 " Number of spaces a <Tab> equals
set tabstop=8 " Number of spaces a <Tab> equals
set shiftwidth=4 " Number of spaces to use in auto(indent)
set softtabstop=4 " While performing editing operations
set shiftround " Round indent to multiple of 'shiftwidth'
set breakindent " Keep indentation
set expandtab
set title
set redrawtime=500
set ttimeoutlen=10
@ -78,15 +78,20 @@ set undofile
set undolevels=1000
set undoreload=10000
set undodir=$HOME/.config/nvim/undo
set formatoptions+=nj
set formatoptions+=nl
set pastetoggle=<F12>
set fillchars+=vert:\│
set grepprg=rg\ --vimgrep\ --hidden\ --no-heading
set grepformat=%f:%l:%c:%m,%f:%l:%m
set wildignore+=*.jpg,*.jpeg,*.bmp,*.gif,*.png " image
set wildignore+=*.manifest " gb
set wildignore+=*.o,*.obj,*.exe,*.dll,*.so,*.out,*.class " compiler
set wildignore+=*.swp,*.swo,*.swn " vim
set wildignore+=*/.git,*/.hg,*/.svn " vcs
if &diff
set textwidth=80
set textwidth=80
endif
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
@ -108,7 +113,7 @@ let g:ale_fix_on_save = 1
let g:ale_close_preview_on_insert = 1
let g:ale_sign_error = '✖'
let g:ale_sign_warning = '⚠'
let g:ale_sign_info = 'i'
let g:ale_sign_info = ''
let g:ale_set_balloons = 1
let g:ale_virtualtext_cursor = 1
let g:ale_loclist_msg_format = '[%linter%] %s% (code)% [%severity%]'
@ -128,6 +133,7 @@ let g:ale_linters = {
\ 'css': ['stylelint'],
\ 'scss': ['stylelint'],
\ 'bash': ['shellcheck'],
\ 'sh': ['shellcheck'],
\ 'vim': ['vint'],
\}
let g:ale_fixers = {
@ -149,7 +155,7 @@ nmap <silent> <F7> <Plug>(ale_previous_wrap)
nmap <silent> <F8> <Plug>(ale_next_wrap)
" }}}
" CoC {{{
let g:coc_global_extensions = ['coc-lists', 'coc-highlight', 'coc-tsserver', 'coc-emmet', 'coc-stylelint', 'coc-explorer', 'coc-css', 'coc-html', 'coc-json', 'coc-eslint', 'coc-snippets']
let g:coc_global_extensions = ['coc-lists', 'coc-highlight', 'coc-explorer', 'coc-snippets', 'coc-tsserver', 'coc-emmet', 'coc-stylelint', 'coc-vimlsp', 'coc-css', 'coc-html', 'coc-json', 'coc-eslint']
" Remap keys for gotos
nmap <silent> gd <Plug>(coc-definition)
@ -170,11 +176,9 @@ nnoremap <silent><F6> :CocConfig<CR>
" Lists
nnoremap <silent><F1> :<C-u>CocList -S --ignore-case helptags<CR>
nnoremap <silent><F2> :<C-u>CocList --ignore-case files<CR>
nnoremap <silent><F2> :<C-u>CocList -S --ignore-case files<CR>
nnoremap <silent><F3> :<C-u>CocList --normal buffers<CR>
nnoremap <silent><F4> :<C-u>CocList windows<CR>
nnoremap <silent><leader>p/ :<C-u>CocList -I grep<CR>
nnoremap <silent><leader>* :exe 'CocList -I --normal --input='.expand('<cword>').' words'<CR>
" <CR> to confirm completion
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<CR>"
@ -235,7 +239,7 @@ hi! CursorLineNr ctermbg=236 ctermfg=NONE guibg=#303030
hi! CursorLine ctermbg=236 ctermfg=NONE guibg=#303030
hi! SignColumn ctermbg=NONE guibg=NONE
hi! Folded ctermbg=NONE guibg=NONE
hi! TabLineFill cterm=None ctermbg=NONE guibg=#080808 guifg=#080808
hi! TabLineFill ctermfg=NONE ctermbg=NONE guibg=#080808 guifg=#080808
hi! TablineSel ctermfg=234 ctermbg=4 guibg=#008bbd guifg=#1c1c1c
hi! EndOfBuffer ctermbg=NONE ctermfg=NONE guibg=NONE guifg=#080808
hi! WildMenu ctermfg=228 ctermbg=0 guifg=#ffff00 guibg=#000000
@ -275,6 +279,19 @@ function! LinterStatus() abort
\)
endfunction
function! StatusDiagnostic() abort
let info = get(b:, 'coc_diagnostic_info', {})
if empty(info) | return '' | endif
let msgs = []
if get(info, 'error', 0)
call add(msgs, '✖ ' . info['error'])
endif
if get(info, 'warning', 0)
call add(msgs, '⚠ ' . info['warning'])
endif
return join(msgs, ' '). ' ' . get(g:, 'coc_status', '')
endfunction
function! ModeColor() abort
return get(s:modes, tolower(mode()), '%*')[0]
endfunction
@ -409,6 +426,7 @@ if !exists('autocommands_loaded') && has('autocmd')
aug inserts
au InsertEnter * setlocal nocursorline
au InsertLeave * setlocal cursorline
au InsertLeave * setlocal nopaste
au InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
au FocusLost,TabLeave * call PopOutOfInsertMode()
aug END
@ -493,12 +511,11 @@ map <silent> <Leader>x. :call SilenceFoxDot()<CR>
map <silent> <Leader>xf :set filetype=foxdot<CR>
"}}}
" Vim-Tmux Navigator {{{
let g:tmux_navigator_no_mappings = 1
nnoremap <silent> <M-h> :TmuxNavigateLeft<cr>
nnoremap <silent> <M-j> :TmuxNavigateDown<cr>
nnoremap <silent> <M-k> :TmuxNavigateUp<cr>
nnoremap <silent> <M-l> :TmuxNavigateRight<cr>
" Intelligently navigate tmux panes and Vim splits using the same keys.
" See https://sunaku.github.io/tmux-select-pane.html for documentation.
let progname = substitute($VIM, '.*[/\\]', '', '')
set title titlestring=%{progname}\ %f\ +%l\ #%{tabpagenr()}.%{winnr()}
if &term =~? '^screen' && !has('nvim') | exe "set t_ts=\e]2; t_fs=\7" | endif
"}}}
"Mappings {{{
"Normal {{{

View File

@ -41,10 +41,6 @@ glx-no-rebind-pixmap = true;
# Shadows
# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 3;
@ -106,9 +102,7 @@ inactive-dim = 0.2;
blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-kern = "3x3box";
# blur-method = "kawase";
# blur-strength = 8;
blur-kern = "5x5box";
blur-background-exclude = [
"window_type = 'dock'",
@ -210,6 +204,8 @@ wintypes:
# focus: Whether to always consider windows of this type focused.
focus = true;
};
dnd = { shadow = false };
dock = { shadow = false };
};
# XSync

View File

@ -1,7 +1,7 @@
configuration {
modi: "run,drun,window";
combi-modi: "run,drun,window";
theme: "flat-orange";
theme: "customdark";
terminal: "termite";
run-command: "{cmd}";
run-shell-command: "termite --hold -e {cmd}";

View File

@ -73,10 +73,10 @@ super + alt + z
termite --name=flota
super + space
rofi -theme gshell -show drun
rofi -show drun
super + s
rofi -theme sbarr -show window
rofi -theme customenu -show window
super + r
rofi -theme dmenu2 -show run

View File

@ -4,14 +4,6 @@
if command -v tmux >/dev/null 2>&1; then
test -z "$TMUX" && (tmux new -A -s "Z")
fi
# When you clear the terminal with ctrl-l anything on-screen is not saved (this is compatible with xterm behavior).
# In contrast, GNU screen will first push anything on-screen into the scrollback buffer before clearing the screen.
tmux-clear-screen() {
for line in {1..$(( $LINES ))} ; do echo; done
zle clear-screen
}
zle -N tmux-clear-screen
bindkey "^L" tmux-clear-screen
# }}}
# Completion Dots {{{
# if you want red dots to be displayed while waiting for completion

View File

@ -97,4 +97,17 @@ foreach char ({a,i}${(s..)^:-'()[]{}<>bB'}) { bindkey -M viopp $char select-brac
export KEYTIMEOUT=1
# }}}
# Tmux clear screen {{{
tmux-clear-screen() {
for line in {1..$(( $LINES ))} ; do echo; done
zle clear-screen
}
zle -N tmux-clear-screen
bindkey "^L" tmux-clear-screen
#}}}
# Run with sudo {{{
run-with-sudo() { LBUFFER="sudo $LBUFFER" }
zle -N run-with-sudo
bindkey '^Xs' run-with-sudo
#}}}
# vim:foldmethod=marker:foldlevel=0

View File

@ -1,73 +0,0 @@
configuration {
show-icons: true;
font: "SF Pro Text 10";
display-drun: " ";
}
* {
background-color: transparent;
background: #000000aa;
background-alt: #E5E9F088;
text-color: #EFEFEF;
selected-text-color: #00364e;
primary: #A3BE8C;
urgent: #BF616A;
margin: 0;
padding: 0;
separator-style: "none";
hide-scrollbar: "true";
}
window {
transparency: "real";
background-color: @background;
fullscreen: true;
margin: 0 0 0 0;
padding: 10px;
children: [mainbox];
}
inputbar { children: [ entry ]; }
entry {
expand: false;
width: 36em;
margin: 40px -250px 40px 470px;
border-radius: 12;
padding: 10px;
background-color: #ffffff20;
border: 0px 0px solid 0px 0px;
border-color: @text-color;
}
listview {
columns: 6;
margin: 40px 80px 40px 80px;
}
element {
orientation: vertical;
padding: 10px 5px 10px 5px;
margin: 10px;
}
mainbox { children: [inputbar, listview]; }
element normal.urgent, element alternate.urgent, element selected.urgent { background-color: @urgent; }
element normal.active, element alternate.active, element selected, element selected.active {
background-color: @background-alt;
color: @selected-text-color;
border-radius: 6;
}
element-icon {
size: 48;
border: 0px;
}
element-text {
expand: true;
horizontal-align: 0.5;
}

View File

@ -76,26 +76,6 @@ bind-key T command-prompt 'rename-window %%'
bind-key S command-prompt 'rename-session %%'
bind-key r source-file $HOME/.tmux.conf \; display "Config Reloaded"
# Vim-Tmux Navigator para cambiar de panes aca y en vim
# https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n 'M-h' if-shell "$is_vim" 'send-keys M-h' 'select-pane -L'
bind-key -n 'M-j' if-shell "$is_vim" 'send-keys M-j' 'select-pane -D'
bind-key -n 'M-k' if-shell "$is_vim" 'send-keys M-k' 'select-pane -U'
bind-key -n 'M-l' if-shell "$is_vim" 'send-keys M-l' 'select-pane -R'
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
"bind-key -n 'M-\\' if-shell \"$is_vim\" 'send-keys M-\\' 'select-pane -l'"
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
"bind-key -n 'M-\\' if-shell \"$is_vim\" 'send-keys M-\\\\' 'select-pane -l'"
bind-key -T copy-mode-vi 'M-h' select-pane -L
bind-key -T copy-mode-vi 'M-j' select-pane -D
bind-key -T copy-mode-vi 'M-k' select-pane -U
bind-key -T copy-mode-vi 'M-l' select-pane -R
bind-key -T copy-mode-vi 'M-\' select-pane -l
# Redimensionar usando alt-flecha sin prefijo
bind-key -nr M-Left resize-pane -L 2
bind-key -nr M-Right resize-pane -R 2
@ -142,6 +122,75 @@ bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
# Prender y apagar statusbar
bind-key & set-option -g status
# Intelligently navigate tmux panes and Vim splits using the same keys.
# See https://sunaku.github.io/tmux-select-pane.html for documentation.
#
# +-------------+------------+-----------------------------+
# | inside Vim? | is Zoomed? | Action taken by key binding |
# +-------------+------------+-----------------------------+
# | No | No | Focus directional tmux pane |
# | No | Yes | Nothing: ignore key binding |
# | Yes | No | Seamlessly focus Vim / tmux |
# | Yes | Yes | Focus directional Vim split |
# +-------------+------------+-----------------------------+
#
vim_navigation_timeout=0.1 # number of seconds we give Vim to navigate
navigate=' \
pane_is_zoomed() { \
test #{window_zoomed_flag} -eq 1; \
}; \
pane_title_changed() { \
test "#{pane_title}" != "$(tmux display -p "##{pane_title}")"; \
}; \
command_is_vim() { \
case "${1%% *}" in \
(vi|?vi|vim*|?vim*|view|?view|vi??*) true ;; \
(*) false ;; \
esac; \
}; \
pane_contains_vim() { \
case "#{=3:pane_current_command}" in \
(ssh|sh) command_is_vim "#{=5:pane_title}" ;; \
(*) command_is_vim "#{=5:pane_current_command}" ;; \
esac; \
}; \
pane_contains_neovim_terminal() { \
test "#{=12:pane_title}" = "nvim term://"; \
}; \
navigate() { \
tmux_navigation_command=$1; \
vim_navigation_command=$2; \
vim_navigation_only_if=${3:-true}; \
if pane_contains_vim && eval "$vim_navigation_only_if"; then \
if pane_contains_neovim_terminal; then \
tmux send-keys C-\\ C-n; \
fi; \
eval "$vim_navigation_command"; \
if ! pane_is_zoomed; then \
sleep $vim_navigation_timeout; : wait for Vim to change title; \
if ! pane_title_changed; then \
eval "$tmux_navigation_command"; \
fi; \
fi; \
elif ! pane_is_zoomed; then \
eval "$tmux_navigation_command"; \
fi; \
}; \
navigate '
navigate_left=" $navigate 'tmux select-pane -L' 'tmux send-keys C-w h'"
navigate_down=" $navigate 'tmux select-pane -D' 'tmux send-keys C-w j'"
navigate_up=" $navigate 'tmux select-pane -U' 'tmux send-keys C-w k'"
navigate_right="$navigate 'tmux select-pane -R' 'tmux send-keys C-w l'"
navigate_back=" $navigate 'tmux select-pane -l || tmux select-pane -t1'\
'tmux send-keys C-w p' \
'pane_is_zoomed' "
bind-key -n M-h run-shell -b "$navigate_left"
bind-key -n M-j run-shell -b "$navigate_down"
bind-key -n M-k run-shell -b "$navigate_up"
bind-key -n M-l run-shell -b "$navigate_right"
bind-key -n M-\ run-shell -b "$navigate_back"
# Mejor soporte para mouse
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
set -g @scroll-speed-num-lines-per-scroll '3'

View File

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

View File

@ -14,7 +14,6 @@ blueman
brandr
bspwm
cadence
compton
compton-conf
cpupower
crda
@ -108,7 +107,6 @@ nfs-utils
nilfs-utils
notmuch
noto-fonts-cjk
npm
ntfs-3g
obs-studio
offlineimap
@ -127,6 +125,7 @@ perl-image-exiftool
perl-lwp-protocol-https
perl-term-readline-gnu
perl-text-charwidth
picom
pkgbrowser
postgresql
prettier
@ -214,7 +213,6 @@ xorg-xhost
xorg-xinit
xorg-xinput
xorg-xkill
xorg-xprop
xorg-xsetroot
xorg-xwininfo
xsel

View File

@ -7,6 +7,6 @@ if [[ $TRANS_PID ]]; then
transmission-remote --add "$@"
else
tsd
sleep 5
sleep 8
transmission-remote --add "$@"
fi

10
bin/tsd
View File

@ -9,10 +9,10 @@ echo "$line" |
grep -v "announcer.c:\|platform.c:\|announce done (tr-dht.c:" |
grep -v "Saved.*variant.c:" |
while read -r line; do
echo "$line" | grep -q "Queued for verification (verify.c:" &&
notify-send -i "$icon1" "Transmission Started" "${line#* * }"
echo "$line" | grep -q "changed from .Incomplete. to .Complete." &&
notify-send -i "$icon2" "Transmission Complete" "${line#* * }"
echo "$line" | systemd-cat --identifier="TransWrap" --priority=5
echo "$line" | grep -q "Queued for verification (verify.c:" &&
notify-send -i "$icon1" --app-name="Transmission Started" "${line#* * }"
echo "$line" | grep -q "changed from .Incomplete. to .Complete." &&
notify-send -i "$icon2" --app-name="Transmission Complete" "${line#* * }"
echo "$line" | systemd-cat --identifier="TransWrap" --priority=5
done > /dev/null 2>&1
done & disown