dotfiles/.bin/_config
2024-03-17 18:13:15 +01:00

73 lines
960 B
Bash

#!/bin/sh
#
# PIM / DOCUMENT DIRECTORY
#
PIMDIR="${HOME}/Documents"
#
# COLORS
#
# COLOR_NB="#181818"
# COLOR_NF="#707070"
# COLOR_SB="#222222"
# COLOR_SF="#CCCCCC"
COLOR_NB="#181818"
COLOR_NF="#707070"
COLOR_SF="#000000"
COLOR_SB="#AF5F00"
#
# TERMINALS
#
STERM="st -f TerminessNerdFont:pixelsize=18"
BTERM="st -f TerminessNerdFont:pixelsize=24"
HTERM="st -f spleen:pixelsize=32"
#
# DMENU
#
DMENUOPTS="-fn Terminus:pixelsize=20:style=bold \
-nb $COLOR_NB \
-nf $COLOR_NF \
-sf $COLOR_SF \
-sb $COLOR_SB \
-i \
-f"
DMENU_CMD="dmenu $DMENUOPTS"
DMENURUN_CMD="dmenu_run $DMENUOPTS"
#
# NOTIFY
#
NOTIFY_CMD() {
twmnc -i "${VAR##*/}" \
-d 5000 \
-t "$(date +%H:%M)" \
-c "$@"
}
#
# FUNCTIONS
#
needs() {
pkg_info -az | grep -q ^$1$ \
|| doas pkg_add $1
}
#
# CONNECT TO GPG-AGENT
#
[ -f ~/.ksh/gnupg.ksh ] \
&& . ~/.ksh/gnupg.ksh