76 lines
1.0 KiB
Bash
76 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
#
|
|
# PIM / DOCUMENT DIRECTORY
|
|
#
|
|
|
|
PIMDIR="${HOME}/Documents"
|
|
|
|
#
|
|
# COLORS
|
|
#
|
|
|
|
BACKGROUND="#002020"
|
|
|
|
COLOR_NB="#001010"
|
|
COLOR_NF="#008080"
|
|
COLOR_SB="#004040"
|
|
COLOR_SF="#EEEEEE"
|
|
|
|
#
|
|
# TERMINALS
|
|
#
|
|
|
|
STERM="st -f TamzenForPowerline:pixelsize=16"
|
|
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
|
|
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=22"
|
|
|
|
#
|
|
# DMENU
|
|
#
|
|
|
|
DMENUOPTS="-fn TamzenForPowerline:pixelsize=16 \
|
|
-nb $COLOR_NB \
|
|
-nf $COLOR_NF \
|
|
-sf $COLOR_SF \
|
|
-sb $COLOR_SB \
|
|
-i \
|
|
-f"
|
|
|
|
DMENU_CMD="dmenu $DMENUOPTS"
|
|
#DMENU_CMD="rofi -dmenu"
|
|
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
|
#DMENURUN_CMD="rofi -show run"
|
|
|
|
#
|
|
# 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
|
|
}
|
|
|
|
#
|
|
# CONNECT TO GPG-AGENT
|
|
#
|
|
|
|
[ -f ~/.ksh/gnupg.ksh ] \
|
|
&& . ~/.ksh/gnupg.ksh
|