Update 2024-03-23 09:50 OpenBSD/amd64-x13
This commit is contained in:
parent
9a4558a37b
commit
2a4a6d23d5
10
.bin/_config
10
.bin/_config
@ -60,8 +60,14 @@ NOTIFY_CMD() {
|
||||
#
|
||||
|
||||
needs() {
|
||||
pkg_info -az | grep -q ^$1$ \
|
||||
|| doas pkg_add $1
|
||||
local add
|
||||
list=$(pkg_info -az)
|
||||
for x in $@
|
||||
do echo "$list" | grep -q ^$x$ \
|
||||
|| add="$add $x"
|
||||
done
|
||||
[ ! -z "$add" ] \
|
||||
&& doas pkg_add -- $add
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -1,6 +1,5 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
|
||||
needs pdfarranger--
|
||||
|
||||
cd ${PIMDIR}/documents
|
||||
|
@ -1,10 +1,7 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
|
||||
needs tesseract--
|
||||
needs tesseract-deu--
|
||||
needs tesseract-eng--
|
||||
needs ocrmypdf--
|
||||
needs tesseract-- tesseract-deu-- tesseract-eng-- ocrmypdf--
|
||||
|
||||
cd ${PIMDIR}/documents/_incoming
|
||||
find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -t -r -I{} ocrmypdf -l deu $* "{}" "{}"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
needs git--
|
||||
|
||||
cd ${PIMDIR}
|
||||
git add *
|
||||
|
@ -14,8 +14,8 @@ GAP=$(( RESH / 12 ))
|
||||
H=$(( RESH - 2 * GAP ))
|
||||
V=$(( RESV - 2 * GAP ))
|
||||
|
||||
COLUMNS=198
|
||||
ROWS=46
|
||||
COLUMNS=176
|
||||
ROWS=37
|
||||
|
||||
# set the quirk in .config/spectrwm/spectrwm.conf
|
||||
# quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
|
||||
|
BIN
.bin/yt-dlp
BIN
.bin/yt-dlp
Binary file not shown.
@ -254,15 +254,14 @@ bind[ws_7] = MOD+7
|
||||
bind[ws_8] = MOD+8
|
||||
bind[ws_9] = MOD+9
|
||||
bind[ws_10] = MOD+0
|
||||
bind[ws_empty] = MOD+e
|
||||
bind[ws_next_all] = MOD+Page_Down
|
||||
bind[ws_prev_all] = MOD+Page_Up
|
||||
bind[rg_next] = MOD+dead_circumflex
|
||||
|
||||
bind[ws_prior] = MOD+Tab
|
||||
|
||||
# MOVE WINDOW TO OTHER WS
|
||||
bind[rg_next] = MOD+dead_circumflex
|
||||
bind[rg_move_next] = MOD+Shift+dead_circumflex
|
||||
bind[ws_next_move] = MOD+Shift+Page_Down
|
||||
bind[ws_prev_move] = MOD+Shift+Page_Up
|
||||
bind[mvws_1] = MOD+Shift+1
|
||||
bind[mvws_2] = MOD+Shift+2
|
||||
bind[mvws_3] = MOD+Shift+3
|
||||
@ -273,8 +272,10 @@ bind[mvws_7] = MOD+Shift+7
|
||||
bind[mvws_8] = MOD+Shift+8
|
||||
bind[mvws_9] = MOD+Shift+9
|
||||
bind[mvws_10] = MOD+Shift+0
|
||||
bind[ws_empty] = MOD+e
|
||||
bind[ws_empty_move] = MOD+Shift+e
|
||||
bind[ws_next_move] = MOD+Shift+Page_Down
|
||||
bind[ws_prev_move] = MOD+Shift+Page_Up
|
||||
bind[rg_move_next] = MOD+Shift+dead_circumflex
|
||||
|
||||
# RENAME WS
|
||||
bind[name_workspace] = MOD+r
|
||||
@ -288,4 +289,5 @@ bind[swap_prev] = MOD+Shift+Up
|
||||
bind[wind_del] = MOD+q
|
||||
bind[wind_kill] = MOD+Shift+q
|
||||
|
||||
# RESTART WM
|
||||
bind[restart] = MOD+Shift+r
|
||||
|
File diff suppressed because one or more lines are too long
4
.kshrc
4
.kshrc
@ -94,9 +94,9 @@ RESET="\[$(tput op)\]"
|
||||
|
||||
if [ $(id -u) -eq 0 ]
|
||||
then
|
||||
PS1="${x}${RED}\\$ ${RESET}${x}"
|
||||
PS1="${x}${RED}\${?}|\w\\$ ${RESET}${x}"
|
||||
else
|
||||
PS1="${x}${GREY}\\$ ${RESET}${x}"
|
||||
PS1="${x}${GREY}\${?}|\w\\$ ${RESET}${x}"
|
||||
fi
|
||||
|
||||
########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user