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 -- !
|
||||||
XConsole*foreground: #D6D5D3
|
XConsole*foreground: #D6D5D3
|
||||||
XConsole*background: #121212
|
XConsole*background: #121212
|
||||||
XConsole*font: Terminus:pixelsize=11
|
!XConsole*font: Terminus:pixelsize=11
|
||||||
XConsole*borderWidth: 0
|
XConsole*borderWidth: 0
|
||||||
XConsole*scrollVertical: Never
|
XConsole*scrollVertical: Never
|
||||||
XConsole*scrollHorizontal: Never
|
XConsole*scrollHorizontal: Never
|
||||||
@ -204,7 +204,7 @@ URxvt*scrollBar: false
|
|||||||
|
|
||||||
URxvt*intensityStyles: false
|
URxvt*intensityStyles: false
|
||||||
|
|
||||||
!URxvt.depth: 24
|
URxvt.depth: 24
|
||||||
URxvt.jumpScroll: true
|
URxvt.jumpScroll: true
|
||||||
URxvt.iso14755: true
|
URxvt.iso14755: true
|
||||||
URxvt.letterSpace: 0
|
URxvt.letterSpace: 0
|
||||||
|
67
.bin/_config
67
.bin/_config
@ -1,51 +1,64 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# FONTS
|
#
|
||||||
|
# PIM / DOCUMENT DIRECTORY
|
||||||
|
#
|
||||||
|
|
||||||
FONTNAME="Terminus"
|
PIMDIR="${HOME}/Documents"
|
||||||
FONTSIZE_SMALL=18
|
|
||||||
FONTSIZE_BIG=26
|
|
||||||
FONTSIZE_DMENU=$FONTSIZE_SMALL
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# COLORS
|
||||||
|
#
|
||||||
|
|
||||||
|
COLOR_NB="#181818"
|
||||||
|
COLOR_NF="#707070"
|
||||||
|
COLOR_SB="#222222"
|
||||||
|
COLOR_SF="#FFA600"
|
||||||
|
|
||||||
|
#
|
||||||
# TERMINALS
|
# TERMINALS
|
||||||
#
|
#
|
||||||
#STERM="urxvtc -fn xft:${FONTNAME}:pixelsize=${FONTSIZE_SMALL}"
|
|
||||||
STERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_SMALL}"
|
STERM="st -f Terminus:pixelsize=18"
|
||||||
BTERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_BIG}"
|
BTERM="st -f Terminus:pixelsize=26"
|
||||||
HTERM="st -f spleen:pixelsize=32"
|
HTERM="st -f spleen:pixelsize=32"
|
||||||
|
|
||||||
DFONT=${FONTNAME}:pixelsize=${FONTSIZE_DMENU}
|
#
|
||||||
[ "$WM" == "notion" ] \
|
# DMENU
|
||||||
&& DMENUOPTS="-fn $DFONT -nb #181818 -nf #707070 -sf #FFA600 -sb #222222 -l 18 -i -f"
|
#
|
||||||
|
|
||||||
[ "$WM" == "bspwm" ] \
|
DMENUOPTS="-fn Terminus:pixelsize=17 \
|
||||||
&& DMENUOPTS="-fn $DFONT -nb #222222 -nf #707070 -sf #CCCCCC -sb #222222 -i -f"
|
-nb $COLOR_NB \
|
||||||
|
-nf $COLOR_NF \
|
||||||
[ "$WM" == "spectrwm" ] \
|
-sf $COLOR_SF \
|
||||||
&& DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f"
|
-sb $COLOR_SB \
|
||||||
|
-i \
|
||||||
|
-f"
|
||||||
|
|
||||||
DMENU_CMD="dmenu $DMENUOPTS"
|
DMENU_CMD="dmenu $DMENUOPTS"
|
||||||
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
||||||
|
|
||||||
notify_func() {
|
#
|
||||||
P=" "
|
# NOTIFY
|
||||||
/usr/local/bin/notify-send \
|
#
|
||||||
" $(date +%H:%M) $P $@ $P"
|
|
||||||
}
|
NOTIFY_CMD() {
|
||||||
NOTIFY_CMD=notify_func
|
notify-send -- "$@ ($(date +%H:%M))"
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# FUNCTIONS
|
||||||
|
#
|
||||||
|
|
||||||
# CHECK OR INSTALL
|
|
||||||
needs() {
|
needs() {
|
||||||
pkg_info -az | grep -q ^$1$ \
|
pkg_info -az | grep -q ^$1$ \
|
||||||
|| pkg_add $1
|
|| doas pkg_add $1
|
||||||
}
|
}
|
||||||
|
|
||||||
# PIM
|
|
||||||
#
|
#
|
||||||
PIMDIR="${HOME}/Documents"
|
|
||||||
|
|
||||||
# CONNECT TO GPG-AGENT
|
# CONNECT TO GPG-AGENT
|
||||||
#
|
#
|
||||||
|
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
export GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:0:1"
|
export GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:0:1"
|
||||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#/bin/sh -xe
|
#/bin/sh -xe
|
||||||
. ${HOME}/.bin/_config
|
. ${HOME}/.bin/_config
|
||||||
needs tesseract
|
|
||||||
doas pkg_add tesseract tesseract-deu ocrmypdf
|
|
||||||
|
|
||||||
mkdir -p ${PIMDIR}/documents/_incoming
|
mkdir -p ${PIMDIR}/documents/_incoming
|
||||||
mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/
|
mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#/bin/sh -xe
|
#/bin/sh -xe
|
||||||
. ${HOME}/.bin/_config
|
. ${HOME}/.bin/_config
|
||||||
|
|
||||||
|
needs pdfarranger--
|
||||||
|
|
||||||
cd ${PIMDIR}/documents
|
cd ${PIMDIR}/documents
|
||||||
|
|
||||||
_doc=$(ls -1 _incoming | head -1)
|
_doc=$(ls -1 _incoming | head -1)
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
#/bin/sh -xe
|
#/bin/sh -xe
|
||||||
. ${HOME}/.bin/_config
|
. ${HOME}/.bin/_config
|
||||||
|
|
||||||
|
needs tesseract--
|
||||||
|
needs tesseract-deu--
|
||||||
|
needs tesseract-eng--
|
||||||
|
needs ocrmypdf--
|
||||||
|
|
||||||
cd ${PIMDIR}/documents/_incoming
|
cd ${PIMDIR}/documents/_incoming
|
||||||
find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -t -r -I{} ocrmypdf -l deu $* "{}" "{}"
|
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
|
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 muttrc="vim ~/.mutt/rc-common"
|
||||||
alias vimrc="vim ~/.vim/vimrc"
|
alias vimrc="vim ~/.vim/vimrc"
|
||||||
alias hcrc="vim ~/.config/herbstluftwm/autostart"
|
alias hcrc="vim ~/.config/herbstluftwm/autostart"
|
||||||
|
alias hc="herbstclient"
|
||||||
alias bspwmrc="vim ~/.config/bspwm/bspwmrc"
|
alias bspwmrc="vim ~/.config/bspwm/bspwmrc"
|
||||||
alias sxhkdrc="vim ~/.config/bspwm/sxhkdrc"
|
alias sxhkdrc="vim ~/.config/bspwm/sxhkdrc"
|
||||||
alias vimbrc="vim ~/.config/vimb/config"
|
alias vimbrc="vim ~/.config/vimb/config"
|
||||||
alias exrc="vim ~/.exrc"
|
alias exrc="vim ~/.exrc"
|
||||||
|
|
||||||
# update website
|
alias web-ebay="chrome https://www.ebay-kleinanzeigen.de/m-nachrichten.html &"
|
||||||
alias web-update='ssh -t home.codevoid.de "cd web && make update && make"'
|
alias web-scottsbasslessons="chrome https://scottsbasslessons.com &"
|
||||||
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 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 refake="rm -f pkg/*.orig; make clean=fake && make fake"
|
||||||
alias reinstall="remake && make reinstall"
|
alias reinstall="remake && make reinstall"
|
||||||
|
|
||||||
|
|
||||||
make-install() {
|
make-install() {
|
||||||
make install \
|
make install \
|
||||||
&& doas pkg_add -aa "$(make show=FULLPKGNAME)"
|
&& doas pkg_add -aa "$(make show=FULLPKGNAME)"
|
||||||
|
@ -69,12 +69,12 @@ set-option -g allow-rename off
|
|||||||
set -g set-titles off
|
set -g set-titles off
|
||||||
|
|
||||||
# Reduce delay for escape key press
|
# 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
|
# we can do utf lines
|
||||||
set -as terminal-overrides ",*:U8=0"
|
set -sa terminal-overrides ",*:U8=0:"
|
||||||
|
|
||||||
set -g aggressive-resize off
|
set -g aggressive-resize off
|
||||||
set -g alternate-screen on
|
set -g alternate-screen on
|
||||||
|
@ -52,7 +52,7 @@ set textwidth=72
|
|||||||
set formatprg=par\ -w72q
|
set formatprg=par\ -w72q
|
||||||
|
|
||||||
set list
|
set list
|
||||||
set listchars=tab:»·,trail:•
|
set listchars=tab:>_,trail:>
|
||||||
set fillchars=vert:\|,eob:\
|
set fillchars=vert:\|,eob:\
|
||||||
|
|
||||||
set showcmd
|
set showcmd
|
||||||
|
Loading…
Reference in New Issue
Block a user