2022-12-05 11:21:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# FONTS
|
2023-11-23 13:23:56 +01:00
|
|
|
|
2023-12-04 17:43:36 +01:00
|
|
|
FONTNAME="Terminus"
|
|
|
|
FONTSIZE_SMALL=18
|
|
|
|
FONTSIZE_BIG=26
|
2023-12-04 23:48:52 +01:00
|
|
|
FONTSIZE_DMENU=$FONTSIZE_SMALL
|
2022-12-05 11:21:53 +01:00
|
|
|
|
|
|
|
# TERMINALS
|
|
|
|
#
|
2023-12-04 17:43:36 +01:00
|
|
|
STERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_SMALL}"
|
|
|
|
BTERM="st -f ${FONTNAME}:pixelsize=${FONTSIZE_BIG}"
|
2023-12-05 07:51:35 +01:00
|
|
|
HTERM="st -f spleen:pixelsize=32"
|
2022-12-05 11:21:53 +01:00
|
|
|
|
2023-12-04 17:43:36 +01:00
|
|
|
DFONT=${FONTNAME}:pixelsize=${FONTSIZE_DMENU}
|
|
|
|
[ "$WM" == "notion" ] \
|
|
|
|
&& DMENUOPTS="-fn $DFONT -nb #181818 -nf #707070 -sf #FFA600 -sb #222222 -l 18 -i -f"
|
2023-11-08 11:02:15 +01:00
|
|
|
|
2023-12-04 17:43:36 +01:00
|
|
|
[ "$WM" == "bspwm" ] \
|
|
|
|
&& DMENUOPTS="-fn $DFONT -nb #222222 -nf #707070 -sf #CCCCCC -sb #222222 -i -f"
|
2022-12-05 11:21:53 +01:00
|
|
|
|
2023-12-04 17:43:36 +01:00
|
|
|
[ "$WM" == "spectrwm" ] \
|
|
|
|
&& DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f"
|
2022-12-05 11:21:53 +01:00
|
|
|
|
|
|
|
DMENU_CMD="dmenu $DMENUOPTS"
|
|
|
|
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
|
|
|
|
2023-11-28 21:33:15 +01:00
|
|
|
notify_func() {
|
2023-12-04 17:43:36 +01:00
|
|
|
P=" "
|
2023-11-28 21:33:15 +01:00
|
|
|
/usr/local/bin/notify-send \
|
2023-12-04 17:43:36 +01:00
|
|
|
" $(date +%H:%M) $P $@ $P"
|
2023-11-28 21:33:15 +01:00
|
|
|
}
|
2023-11-23 13:23:56 +01:00
|
|
|
NOTIFY_CMD=notify_func
|
|
|
|
|
2023-11-28 21:33:15 +01:00
|
|
|
# CHECK OR INSTALL
|
|
|
|
needs() {
|
|
|
|
pkg_info -az | grep -q ^$1$ \
|
|
|
|
|| pkg_add $1
|
|
|
|
}
|
2023-05-21 14:36:14 +02:00
|
|
|
|
2022-12-05 11:21:53 +01:00
|
|
|
# PIM
|
|
|
|
#
|
2022-12-08 10:05:54 +01:00
|
|
|
PIMDIR="${HOME}/Documents"
|
2022-12-05 11:21:53 +01:00
|
|
|
|
|
|
|
# CONNECT TO GPG-AGENT
|
|
|
|
#
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
export GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:0:1"
|
|
|
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
export SSH_AUTH_SOCK_EXTRA=${SSH_AUTH_SOCK%%.ssh}.extra
|
|
|
|
gpg-connect-agent /bye
|