Update 2023-06-26 13:28 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-06-26 13:28:54 +02:00
parent 34834d3a5a
commit bf9b18702c
9 changed files with 20 additions and 109 deletions

View File

@ -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"

View File

@ -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 \

View File

@ -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

View File

@ -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

View File

@ -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 $* "{}" "{}"

View File

@ -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

3
.kshrc
View File

@ -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

View File

@ -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'

89
.vimrc
View File

@ -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 <cword><CR>
nnoremap ,g :cs find g <cword><CR>
nnoremap ,d :cs find d <cword><CR>
nnoremap ,c :cs find c <cword><CR>
nnoremap ,t :cs find t <cword><CR>
nnoremap ,f :cs find f <cword><CR>
nnoremap ,i :cs find i <cword><CR>
nnoremap ,a :cs find a <cword><CR>
nnoremap ,b <c-o>
" show special characters
set list
set listchars=tab:»·,trail:•
set fillchars=vert:\|,eob:\
nnoremap # *``
nmap <F12> :TagbarToggle<CR>
let g:tagbar_ctags_bin = "ectags"
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(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=