Update 2023-11-28 21:33 OpenBSD/amd64-x13
This commit is contained in:
parent
5df741efe6
commit
c91ec73306
@ -5,8 +5,10 @@ Xcursor.size:
|
||||
Xcursor.theme:
|
||||
xterm.cursorTheme:
|
||||
|
||||
! -- XFS -- !
|
||||
! -- XFT -- !
|
||||
Xft.dpi: 96
|
||||
Xft.rgba: none
|
||||
Xft.lcdfilter: 0
|
||||
|
||||
! -- XIDLE -- !
|
||||
XIdle*position: sw
|
||||
@ -135,7 +137,7 @@ gnuplot*line8Color: coral
|
||||
|
||||
! -- XTERM -- !
|
||||
xterm*loginShell:true
|
||||
xterm*faceName: FuraCodeNerdFont
|
||||
xterm*faceName: Terminus
|
||||
xterm*faceSize: 13
|
||||
xterm*allowTitleOps: false
|
||||
xterm*bufferedFPS: 60
|
||||
|
18
.bin/_config
18
.bin/_config
@ -5,6 +5,7 @@
|
||||
SFONT="-slavfox-cozettehidpi-medium-r-normal--26-240-75-75-m-120-iso10646-1"
|
||||
BFONT="-slavfox-cozette-medium-r-normal--13-120-75-75-m-60-iso10646-1"
|
||||
HFONT="FuraCodeNerdFontMono:pixelsize=28"
|
||||
HFONT="LuxiMono:pixelsize=28"
|
||||
|
||||
DFONT="CozetteHidpi:pixelsize=26"
|
||||
NFONT="Termsyn:pixelsize=9"
|
||||
@ -28,16 +29,17 @@ DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f"
|
||||
DMENU_CMD="dmenu $DMENUOPTS"
|
||||
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
||||
|
||||
notify_func() { /usr/local/bin/notify-send " $(date +%H:%M) $@ "; }
|
||||
notify_func() {
|
||||
/usr/local/bin/notify-send \
|
||||
" $(date +%H:%M) $@ "
|
||||
}
|
||||
NOTIFY_CMD=notify_func
|
||||
|
||||
# DEVELOPMENT
|
||||
#
|
||||
# [ ! -d "${HOME}/.dev" ] && mkdir "${HOME}/.dev"
|
||||
# [ ! -f "${HOME}/.dev/dir" ] && pwd > "${HOME}/.dev/dir"
|
||||
#
|
||||
# DEVDIRPATH=${HOME}/.dev
|
||||
# DEVDIR="$(cat "${DEVDIRPATH}/dir")"
|
||||
# CHECK OR INSTALL
|
||||
needs() {
|
||||
pkg_info -az | grep -q ^$1$ \
|
||||
|| pkg_add $1
|
||||
}
|
||||
|
||||
# PIM
|
||||
#
|
||||
|
34
.bin/dexec_vpn
Executable file
34
.bin/dexec_vpn
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ~/.bin/_config
|
||||
|
||||
LIST="$(cat /etc/wireguard/vpnlist.txt)"
|
||||
SEL="$(print "$LIST\ndeactivate" | cut -d' ' -f1 | $DMENU_CMD -l 20 -p "VPN")"
|
||||
|
||||
[ -z "$SEL" ] && exit 0
|
||||
|
||||
if [ "$SEL" == "deactivate" ]
|
||||
then
|
||||
ACTIVE=$(ifconfig | grep wg-quick | cut -d: -f3 | tr -d " ")
|
||||
if [ ! -z "$ACTIVE" ]
|
||||
then
|
||||
doas wg-quick down $ACTIVE && $NOTIFY_CMD "VPN: disconnected"
|
||||
sleep 1
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
HOST="$(echo "$LIST" | fgrep "$SEL" | cut -d' ' -f2)"
|
||||
|
||||
cat /etc/wireguard/template.conf | sed "s/XXXXXX/$HOST/g" > /tmp/vpn.conf
|
||||
|
||||
doas mv /tmp/vpn.conf /etc/wireguard/vpn.conf
|
||||
|
||||
ACTIVE=$(ifconfig | grep wg-quick | cut -d: -f3 | tr -d " ")
|
||||
if [ ! -z "$ACTIVE" ]
|
||||
then
|
||||
doas wg-quick down $ACTIVE && $NOTIFY_CMD "VPN: disconnected"
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
doas wg-quick up vpn && $NOTIFY_CMD "VPN: $HOST"
|
@ -1,5 +1,7 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
|
||||
needs pdfgrep
|
||||
|
||||
cd ${PIMDIR}/documents
|
||||
pdfgrep --cache -n -H "${*}" *.pdf
|
||||
|
@ -1,6 +1,6 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
|
||||
needs tesseract
|
||||
doas pkg_add tesseract tesseract-deu ocrmypdf
|
||||
|
||||
mkdir -p ${PIMDIR}/documents/_incoming
|
||||
|
25
.bin/xcons
Executable file
25
.bin/xcons
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# set the following quirk in .config/spectrwm/spectrwm.conf
|
||||
# quirk[XConsole] = FLOAT + ANYWHERE
|
||||
|
||||
# get XConsole window id
|
||||
WID=$(wmctrl -x -l XConsole | fgrep '.XConsole' | cut -d" " -f1)
|
||||
|
||||
if [ -z "$WID" ]
|
||||
then
|
||||
xconsole &
|
||||
else
|
||||
# check if window is iconfified or on another WS (or both)
|
||||
if xwininfo -id $WID | fgrep -q IsUnMapped
|
||||
then
|
||||
# move window to current workspace
|
||||
#wmctrl -i -r $WID -t $(xprop -root _NET_CURRENT_DESKTOP | cut -d'=' -f2)
|
||||
wmctrl -i -r $WID -t $_SWM_WS
|
||||
# remove hidden flag
|
||||
wmctrl -i -r $WID -b remove,hidden
|
||||
else
|
||||
# window is visible => hide
|
||||
wmctrl -i -r $WID -b add,hidden
|
||||
fi
|
||||
fi
|
@ -6,22 +6,13 @@
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="hinting" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="hintstyle" mode="assign">
|
||||
<const>hintslight</const>
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
<edit name="rgba" mode="assign">
|
||||
<const>bgr</const>
|
||||
</edit>
|
||||
<edit name="autohint" mode="assign">
|
||||
<bool>true</bool>
|
||||
<const>none</const>
|
||||
</edit>
|
||||
<edit name="lcdfilter" mode="assign">
|
||||
<const>lcdlight</const>
|
||||
</edit>
|
||||
<edit name="dpi" mode="assign">
|
||||
<double>96</double>
|
||||
<const>lcdnone</const>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
|
@ -100,6 +100,8 @@ click_to_raise = 1
|
||||
# +--------------------------------------------------
|
||||
|
||||
quirk[mpv] = FLOAT + ANYWHERE + FOCUSPREV
|
||||
quirk[hl] = FLOAT + ANYWHERE + FOCUSPREV
|
||||
quirk[hashlink] = FLOAT + ANYWHERE + FOCUSPREV
|
||||
quirk[scratchpad] = FLOAT + ANYWHERE + FOCUSPREV
|
||||
quirk[XConsole:xconsole] = FLOAT + ANYWHERE + NOFOCUSCYCLE + NOFOCUSONMAP
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user