Update 2023-12-12 08:39 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2023-12-12 08:39:33 +01:00
parent 5ca55ce576
commit 0c920d803b
9 changed files with 58 additions and 42 deletions

View File

@@ -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)