diff --git a/.Xdefaults b/.Xdefaults index d2c9806..657798f 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -169,7 +169,7 @@ xterm*color15: #eee8d5 ! -- XCONSOLE -- ! XConsole*foreground: #D6D5D3 XConsole*background: #121212 -XConsole*font: Terminus:pixelsize=11 +!XConsole*font: Terminus:pixelsize=11 XConsole*borderWidth: 0 XConsole*scrollVertical: Never XConsole*scrollHorizontal: Never @@ -204,7 +204,7 @@ URxvt*scrollBar: false URxvt*intensityStyles: false -!URxvt.depth: 24 +URxvt.depth: 24 URxvt.jumpScroll: true URxvt.iso14755: true URxvt.letterSpace: 0 diff --git a/.bin/_config b/.bin/_config index af94778..0f2522d 100644 --- a/.bin/_config +++ b/.bin/_config @@ -1,51 +1,64 @@ #!/bin/sh -# FONTS +# +# PIM / DOCUMENT DIRECTORY +# -FONTNAME="Terminus" -FONTSIZE_SMALL=18 -FONTSIZE_BIG=26 -FONTSIZE_DMENU=$FONTSIZE_SMALL +PIMDIR="${HOME}/Documents" +# +# COLORS +# + +COLOR_NB="#181818" +COLOR_NF="#707070" +COLOR_SB="#222222" +COLOR_SF="#FFA600" + +# # TERMINALS # -#STERM="urxvtc -fn xft:${FONTNAME}:pixelsize=${FONTSIZE_SMALL}" -STERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_SMALL}" -BTERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_BIG}" + +STERM="st -f Terminus:pixelsize=18" +BTERM="st -f Terminus:pixelsize=26" HTERM="st -f spleen:pixelsize=32" -DFONT=${FONTNAME}:pixelsize=${FONTSIZE_DMENU} -[ "$WM" == "notion" ] \ - && DMENUOPTS="-fn $DFONT -nb #181818 -nf #707070 -sf #FFA600 -sb #222222 -l 18 -i -f" +# +# DMENU +# -[ "$WM" == "bspwm" ] \ - && DMENUOPTS="-fn $DFONT -nb #222222 -nf #707070 -sf #CCCCCC -sb #222222 -i -f" - -[ "$WM" == "spectrwm" ] \ - && DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f" +DMENUOPTS="-fn Terminus:pixelsize=17 \ + -nb $COLOR_NB \ + -nf $COLOR_NF \ + -sf $COLOR_SF \ + -sb $COLOR_SB \ + -i \ + -f" DMENU_CMD="dmenu $DMENUOPTS" DMENURUN_CMD="dmenu_run $DMENUOPTS" -notify_func() { - P=" " - /usr/local/bin/notify-send \ - " $(date +%H:%M) $P $@ $P" -} -NOTIFY_CMD=notify_func +# +# NOTIFY +# + +NOTIFY_CMD() { + notify-send -- "$@ ($(date +%H:%M))" +} + +# +# FUNCTIONS +# -# CHECK OR INSTALL needs() { pkg_info -az | grep -q ^$1$ \ - || pkg_add $1 + || doas pkg_add $1 } -# PIM # -PIMDIR="${HOME}/Documents" - # CONNECT TO GPG-AGENT # + export GPG_TTY=$(tty) export GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:0:1" export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) diff --git a/.bin/documents-import b/.bin/documents-import index 8d2441a..2b1b7c5 100755 --- a/.bin/documents-import +++ b/.bin/documents-import @@ -1,7 +1,5 @@ #/bin/sh -xe . ${HOME}/.bin/_config -needs tesseract -doas pkg_add tesseract tesseract-deu ocrmypdf mkdir -p ${PIMDIR}/documents/_incoming mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/ diff --git a/.bin/documents-next b/.bin/documents-next index 9967537..b23b17a 100755 --- a/.bin/documents-next +++ b/.bin/documents-next @@ -1,6 +1,8 @@ #/bin/sh -xe . ${HOME}/.bin/_config +needs pdfarranger-- + cd ${PIMDIR}/documents _doc=$(ls -1 _incoming | head -1) diff --git a/.bin/documents-ocr b/.bin/documents-ocr index a031830..0d1a970 100755 --- a/.bin/documents-ocr +++ b/.bin/documents-ocr @@ -1,5 +1,10 @@ #/bin/sh -xe . ${HOME}/.bin/_config +needs tesseract-- +needs tesseract-deu-- +needs tesseract-eng-- +needs ocrmypdf-- + cd ${PIMDIR}/documents/_incoming find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -t -r -I{} ocrmypdf -l deu $* "{}" "{}" diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index 6470055..44600a1 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -259,4 +259,4 @@ bind[wind_kill] = MOD+Shift+q bind[restart] = MOD+Shift+r -autorun = ws[10]:xcons +# autorun = ws[10]:xcons diff --git a/.kshrc b/.kshrc index 0b1ecab..a1fd674 100644 --- a/.kshrc +++ b/.kshrc @@ -126,21 +126,19 @@ alias kshrc="vim ~/.kshrc" alias muttrc="vim ~/.mutt/rc-common" alias vimrc="vim ~/.vim/vimrc" alias hcrc="vim ~/.config/herbstluftwm/autostart" +alias hc="herbstclient" alias bspwmrc="vim ~/.config/bspwm/bspwmrc" alias sxhkdrc="vim ~/.config/bspwm/sxhkdrc" alias vimbrc="vim ~/.config/vimb/config" alias exrc="vim ~/.exrc" -# update website -alias web-update='ssh -t home.codevoid.de "cd web && make update && make"' -alias web-new='ssh -t home.codevoid.de "cd web && make new"' -alias web-edit='ssh -t home.codevoid.de "cd web && make edit"' +alias web-ebay="chrome https://www.ebay-kleinanzeigen.de/m-nachrichten.html &" +alias web-scottsbasslessons="chrome https://scottsbasslessons.com &" -alias ebay="chrome https://www.ebay-kleinanzeigen.de/m-nachrichten.html &" -alias sbl="chrome https://scottsbasslessons.com &" alias refake="rm -f pkg/*.orig; make clean=fake && make fake" alias reinstall="remake && make reinstall" + make-install() { make install \ && doas pkg_add -aa "$(make show=FULLPKGNAME)" diff --git a/.tmux.conf b/.tmux.conf index 8774970..2a849b2 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -69,12 +69,12 @@ set-option -g allow-rename off set -g set-titles off # Reduce delay for escape key press -set -sg escape-time 10 +set -sg escape-time 1000 -set -g default-terminal "tmux-256color" +# set -g default-terminal "tmux-256color" # we can do utf lines -set -as terminal-overrides ",*:U8=0" +set -sa terminal-overrides ",*:U8=0:" set -g aggressive-resize off set -g alternate-screen on diff --git a/.vim/vimrc b/.vim/vimrc index af78f09..04fe25a 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -52,7 +52,7 @@ set textwidth=72 set formatprg=par\ -w72q set list -set listchars=tab:»·,trail:• +set listchars=tab:>_,trail:> set fillchars=vert:\|,eob:\ set showcmd