2022-12-05 11:21:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
#
|
|
|
|
# PIM / DOCUMENT DIRECTORY
|
|
|
|
#
|
|
|
|
|
|
|
|
PIMDIR="${HOME}/Documents"
|
2023-11-23 13:23:56 +01:00
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
#
|
|
|
|
# COLORS
|
|
|
|
#
|
2022-12-05 11:21:53 +01:00
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
COLOR_NB="#181818"
|
|
|
|
COLOR_NF="#707070"
|
|
|
|
COLOR_SB="#222222"
|
2023-12-17 11:58:59 +01:00
|
|
|
COLOR_SF="#CCCCCC"
|
2023-12-12 08:39:33 +01:00
|
|
|
|
|
|
|
#
|
2022-12-05 11:21:53 +01:00
|
|
|
# TERMINALS
|
|
|
|
#
|
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
STERM="st -f Terminus:pixelsize=18"
|
|
|
|
BTERM="st -f Terminus:pixelsize=26"
|
|
|
|
HTERM="st -f spleen:pixelsize=32"
|
2023-11-08 11:02:15 +01:00
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
#
|
|
|
|
# DMENU
|
|
|
|
#
|
2022-12-05 11:21:53 +01:00
|
|
|
|
2023-12-17 11:58:59 +01:00
|
|
|
DMENUOPTS="-fn Terminus:pixelsize=20 \
|
2023-12-12 08:39:33 +01:00
|
|
|
-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"
|
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
#
|
|
|
|
# NOTIFY
|
|
|
|
#
|
|
|
|
|
|
|
|
NOTIFY_CMD() {
|
|
|
|
notify-send -- "$@ ($(date +%H:%M))"
|
2023-11-28 21:33:15 +01:00
|
|
|
}
|
2023-11-23 13:23:56 +01:00
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
#
|
|
|
|
# FUNCTIONS
|
|
|
|
#
|
|
|
|
|
2023-11-28 21:33:15 +01:00
|
|
|
needs() {
|
|
|
|
pkg_info -az | grep -q ^$1$ \
|
2023-12-12 08:39:33 +01:00
|
|
|
|| doas pkg_add $1
|
2023-11-28 21:33:15 +01:00
|
|
|
}
|
2023-05-21 14:36:14 +02:00
|
|
|
|
2022-12-05 11:21:53 +01:00
|
|
|
#
|
|
|
|
# CONNECT TO GPG-AGENT
|
|
|
|
#
|
2023-12-12 08:39:33 +01:00
|
|
|
|
2022-12-05 11:21:53 +01:00
|
|
|
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
|