Update 2023-12-12 08:39 OpenBSD/amd64-x13
This commit is contained in:
parent
5ca55ce576
commit
0c920d803b
@ -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
|
||||
|
67
.bin/_config
67
.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)
|
||||
|
@ -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/
|
||||
|
@ -1,6 +1,8 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
|
||||
needs pdfarranger--
|
||||
|
||||
cd ${PIMDIR}/documents
|
||||
|
||||
_doc=$(ls -1 _incoming | head -1)
|
||||
|
@ -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 $* "{}" "{}"
|
||||
|
@ -259,4 +259,4 @@ bind[wind_kill] = MOD+Shift+q
|
||||
|
||||
bind[restart] = MOD+Shift+r
|
||||
|
||||
autorun = ws[10]:xcons
|
||||
# autorun = ws[10]:xcons
|
||||
|
10
.kshrc
10
.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)"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user