dotfiles/.bin/_config

71 lines
923 B
Plaintext
Raw Normal View History

2022-12-05 11:21:53 +01:00
#!/bin/sh
#
# PIM / DOCUMENT DIRECTORY
#
PIMDIR="${HOME}/Documents"
#
# COLORS
#
2022-12-05 11:21:53 +01:00
BACKGROUND="#002020"
COLOR_NB="#002020"
COLOR_NF="#008080"
COLOR_SB="#004040"
COLOR_SF="#EEEEEE"
#
2022-12-05 11:21:53 +01:00
# TERMINALS
#
STERM="st -f Terminus:pixelsize=18"
BTERM="st -f Terminus:pixelsize=26"
HTERM="st -f spleen:pixelsize=32"
#
# DMENU
#
2022-12-05 11:21:53 +01:00
DMENUOPTS="-fn Terminus:pixelsize=20 \
-nb $COLOR_NB \
-nf $COLOR_NF \
-sf $COLOR_SF \
-sb $COLOR_SB \
-i \
-f"
2022-12-05 11:21:53 +01:00
DMENU_CMD="dmenu $DMENUOPTS"
#DMENU_CMD="rofi -dmenu"
2022-12-05 11:21:53 +01:00
DMENURUN_CMD="dmenu_run $DMENUOPTS"
#DMENURUN_CMD="rofi -show run"
2022-12-05 11:21:53 +01:00
#
# 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
}
2022-12-05 11:21:53 +01:00
#
# CONNECT TO GPG-AGENT
#
[ -f ~/.ksh/gnupg.ksh ] \
&& . ~/.ksh/gnupg.ksh