dotfiles/.bin/_config

81 lines
1.1 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
# COLOR_NB="#181818"
# COLOR_NF="#707070"
# COLOR_SB="#222222"
# COLOR_SF="#CCCCCC"
COLOR_NB="#181818"
COLOR_NF="#707070"
COLOR_SF="#000000"
COLOR_SB="#AF5F00"
#
2022-12-05 11:21:53 +01:00
# TERMINALS
#
FONT=IosevkaTerm
# FONT=TerminessNerdFont
# FONT=Spleen
# FONT=JetBrainsMonoNerdFont
# FONT=FuraCodeNerdFontMono
SIZE=18
STERM="st -f $FONT:pixelsize=$SIZE"
BTERM="st -f $FONT:pixelsize=$(( SIZE + 6 ))"
HTERM="st -f $FONT:pixelsize=$(( SIZE + 12 ))"
#
# DMENU
#
2022-12-05 11:21:53 +01:00
DMENUOPTS="-fn Terminus:pixelsize=20:style=bold \
-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"
DMENURUN_CMD="dmenu_run $DMENUOPTS"
#
# NOTIFY
#
NOTIFY_CMD() {
( echo "$(date +%H:%M) | $1" | xnotify ) &
}
#
# FUNCTIONS
#
needs() {
local add
list=$(pkg_info -az)
for x in $@
do echo "$list" | grep -q ^$x$ \
|| add="$add $x"
done
[ ! -z "$add" ] \
&& doas pkg_add -- $add
}
2022-12-05 11:21:53 +01:00
#
# CONNECT TO GPG-AGENT
#
[ -f ~/.ksh/gnupg.ksh ] \
&& . ~/.ksh/gnupg.ksh