dotfiles/.bin/_config

76 lines
1.0 KiB
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="#001010"
COLOR_NF="#008080"
COLOR_SB="#004040"
COLOR_SF="#EEEEEE"
#
2022-12-05 11:21:53 +01:00
# TERMINALS
#
STERM="st -f TamzenForPowerline:pixelsize=16"
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=22"
#
# DMENU
#
2022-12-05 11:21:53 +01:00
DMENUOPTS="-fn TamzenForPowerline:pixelsize=16 \
-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 "$@"
#}
NOTIFY_CMD() {
echo "$@" \
| xnotify \
$NOTIFY_CMD_OPTS &
}
#
# 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