diff --git a/.bin/_config b/.bin/_config index 8b94253..e3c2a72 100644 --- a/.bin/_config +++ b/.bin/_config @@ -5,7 +5,7 @@ # FONTS # DFONT="-xos4-terminus-medium-r-normal--26-200-72-72-c-100-iso10646-1" -SFONT="-xos4-terminus-medium-r-normal--14-200-72-72-c-100-iso10646-1" +SFONT="-xos4-terminus-medium-r-normal--18-200-72-72-c-100-iso10646-1" BFONT="-xos4-terminus-medium-r-normal--26-200-72-72-c-100-iso10646-1" HFONT="-xos4-terminus-medium-r-normal--38-200-72-72-c-100-iso10646-1" diff --git a/.bin/chrome b/.bin/chrome index 1c439c0..5a11106 100755 --- a/.bin/chrome +++ b/.bin/chrome @@ -3,7 +3,6 @@ --bwsi \ --disable-3d-apis \ --disable-angle-features=allowETCFormats \ - --disable-auto-reload \ --disable-breakpad \ --disable-client-side-phishing-detection \ --disable-component-cloud-policy \ @@ -16,7 +15,6 @@ --disable-notifications \ --disable-pinch \ --disable-vulkan-surface \ - --disable-software-rasterizer \ --disable-gpu-process-crash-limit \ --disable-chrome-browser-cloud-management \ --disable-field-trial-config \ @@ -24,20 +22,16 @@ --disable-cloud-print-proxy \ --enable-early-process-singleton \ --dbus-stub \ - --cros-disks-fake \ --disable-stack-profiler \ --disable-touch-drag-drop \ --disable-usb-keyboard-detect \ --disable-wayland-ime \ - --disable-windows10-custom-titlebar \ --disable-default-apps \ --disable-dev-shm-usage \ --disable-gaia-services \ --disable-gpu-early-init \ - --disable-gpu-process-for-dx12-info-collection \ --disable-histogram-customizer \ --disable-in-process-stack-traces \ - --disable-ios-password-suggestions \ --no-service-autorun \ --no-experiments \ --enable-low-end-device-mode \ @@ -54,7 +48,7 @@ --structured-metrics-disabled \ --wm-window-animations-disabled \ --new-window \ - --app="$@" + "$@" #--use-gl=egl \ # --disable-yuv-image-decoding \ diff --git a/.bin/dexec_pim b/.bin/dexec_pim index fb23510..388a369 100755 --- a/.bin/dexec_pim +++ b/.bin/dexec_pim @@ -15,12 +15,13 @@ case $SEL in Documents) DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25) if [ ! -z "$DOC" ]; then - ACT=$(printf "View\nCopy\nEdit\nEmail\nDelete" | $DMENU_CMD -p Action) + ACT=$(printf "View\nCopy\nEdit\nPrint\nEmail\nDelete" | $DMENU_CMD -p Action) case $ACT in View) mupdf "$PIMDIR/documents/$DOC" ;; Copy) echo "$PIMDIR/documents/$DOC" | xclip -r;; Edit) pdfarranger "$PIMDIR/documents/$DOC" ;; Email) texec "mutt -a \"$PIMDIR/documents/$DOC\"" ;; + Print) lpr "$PIMDIR/documents/$DOC" ;; Delete) mkdir -p /tmp/deleted_documents; mv "$PIMDIR/documents/$DOC" /tmp/deleted_documents/; ;; esac fi diff --git a/.bin/documents-import b/.bin/documents-import index adaf3f2..2b1b7c5 100755 --- a/.bin/documents-import +++ b/.bin/documents-import @@ -3,4 +3,5 @@ mkdir -p ${PIMDIR}/documents/_incoming mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/ +${HOME}/.bin/documents-update ${HOME}/.bin/documents-ocr diff --git a/.bin/documents-ocr b/.bin/documents-ocr index 33b61a8..a031830 100755 --- a/.bin/documents-ocr +++ b/.bin/documents-ocr @@ -2,5 +2,4 @@ . ${HOME}/.bin/_config cd ${PIMDIR}/documents/_incoming - -find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -I{} ocrmypdf -l deu $* "{}" "{}" +find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -t -r -I{} ocrmypdf -l deu $* "{}" "{}" diff --git a/.bin/sshot b/.bin/sshot index 05dd09f..9d9761e 100755 --- a/.bin/sshot +++ b/.bin/sshot @@ -19,7 +19,8 @@ test -f "${_file_tmp}" || exit 1 pngcrush -reduce "${_file_tmp}" -mv "${_file_tmp}" "${_file_out}" +cp "${_file_tmp}" "${_file_out}" +mv "${_file_tmp}" "~/Downloads/" scp "${_file_out}" "sdk@codevoid.de:/home/www/htdocs/gopher/p/${_filename}" printf '%s' "https://codevoid.de/I/p/${_filename}" | xclip diff --git a/.kshrc b/.kshrc index ab5a34a..6ca96a2 100644 --- a/.kshrc +++ b/.kshrc @@ -122,12 +122,13 @@ set bell-style none # configuration files alias kshrc="vim ~/.kshrc" alias muttrc="vim ~/.mutt/rc-common" -alias vimrc="vim ~/.vimrc" +alias vimrc="vim ~/.vim/vimrc" alias exrc="vim ~/.exrc" alias ebay="chrome https://www.ebay-kleinanzeigen.de/m-nachrichten.html &" alias sbl="chrome https://scottsbasslessons.com &" alias remake="make clean=all && make" +alias refake="rm -f pkg/*.orig; make clean=fake && make fake" alias reinstall="make clean=all && make && make reinstall" # remind diff --git a/.mutt/colors/codevoid b/.mutt/colors/codevoid index 56a94f8..6e4a85e 100644 --- a/.mutt/colors/codevoid +++ b/.mutt/colors/codevoid @@ -80,10 +80,13 @@ color body green default "> \\+.*" ##color index red default '~D' # deleted -color index color8 default '~f "foxy@free.fr"' -color index color8 default '~f "solene@perso.pw"' -color index color8 default '~f "jca@wxcvbn.org"' -color index color8 default '~f "@afresh1.com"' -color index color8 default '~f "@openbsd.org"' -color index color8 default '~f "@cvs.openbsd.org"' -color index color6 default '~f ".*openbsd.*@codevoid.de"' +#color index color8 default '~f "foxy@free.fr"' +#color index color8 default '~f "solene@perso.pw"' +#color index color8 default '~f "jca@wxcvbn.org"' +#color index color8 default '~f "@afresh1.com"' +#color index color8 default '~f "@openbsd.org"' +#color index color8 default '~f "@cvs.openbsd.org"' +#color index color6 default '~f ".*openbsd.*@codevoid.de"' +color index color249 default '~d>6w' +color index color243 default '~d>12w' +color index color238 default '~d>24w' diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 79ca541..0000000 --- a/.vimrc +++ /dev/null @@ -1,89 +0,0 @@ -" vim options -set mouse=v -set shm+=I -set hlsearch -set showcmd -set backspace=indent,eol,start -let g:is_posix=1 - -" file stuff -set undofile -set undodir=~/.local/vim/undo// -set backupdir=~/.local/vim/backup// -set directory=~/.local/vim/swapfiles// - -silent execute '!mkdir -p - \ ~/.local/vim/backup - \ ~/.local/vim/undo - \ ~/.local/vim/swapfiles' - -" code stuff -set tags="/home/sdk/.dev/tags" -silent execute 'cs add /home/sdk/.dev/cscope.out' -set csprg=cscope\ -C -set cst - -nnoremap ,s :cs find s -nnoremap ,g :cs find g -nnoremap ,d :cs find d -nnoremap ,c :cs find c -nnoremap ,t :cs find t -nnoremap ,f :cs find f -nnoremap ,i :cs find i -nnoremap ,a :cs find a -nnoremap ,b - -" show special characters -set list -set listchars=tab:»·,trail:• -set fillchars=vert:\|,eob:\ - -nnoremap # *`` - -nmap :TagbarToggle -let g:tagbar_ctags_bin = "ectags" - -xmap ga (EasyAlign) -nmap ga (EasyAlign) - -augroup code - au! - au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif - au BufRead,BufNewFile Makefile,/usr/src/*.c,/usr/src/*.h,*.gmk setl sw=8 ts=8 noet -augroup end - -" visual sugar -set formatprg=par\ -w72q - -hi LineNr ctermfg=15 -hi EndOfBuffer ctermfg=15 -hi SpecialKey ctermfg=238 - -"hi DiffAdd ctermbg=22 ctermfg=NONE cterm=NONE -"hi DiffDelete ctermbg=234 ctermfg=NONE cterm=NONE -"hi DiffChange ctermbg=234 ctermfg=NONE cterm=NONE -"hi DiffText ctermbg=NONE ctermfg=NONE cterm=NONE - -hi VertSplit ctermbg=NONE ctermfg=246 cterm=NONE -hi FoldColumn ctermbg=NONE ctermfg=251 cterm=NONE -hi Folded ctermbg=233 ctermfg=251 cterm=NONE - -hi SpellBad ctermbg=NONE ctermfg=124 - -match ErrorMsg '\(TODO\|FIXME\|XXX\|: error:.*\|\s\+$\| \+\ze\t\)' - -" vi compatible options (from .exrc) -set showmode -set showmatch -set ruler -set noflash -set number -set shiftwidth=4 -set tabstop=4 -set wrapmargin=4 -set expandtab -set tags=/home/sdk/.dev/tags -set wrapscan -set noedcompatible -set path=. -set cedit=