84 lines
1.2 KiB
Bash
84 lines
1.2 KiB
Bash
#!/bin/sh
|
|
|
|
#
|
|
# PIM / DOCUMENT DIRECTORY
|
|
#
|
|
|
|
PIMDIR="${HOME}/Documents"
|
|
|
|
#
|
|
# COLORS
|
|
#
|
|
|
|
COLOR_NB="#181818"
|
|
COLOR_NF="#707070"
|
|
COLOR_SB="#222222"
|
|
COLOR_SF="#CCCCCC"
|
|
|
|
# SEL_ACTIVE
|
|
# selected frame
|
|
# border
|
|
# active tab fg
|
|
# active tab bg
|
|
# inactive tab fg
|
|
# inactive tab bg
|
|
|
|
# inactive frame
|
|
# border
|
|
# active tab fg
|
|
# active tab bg
|
|
# inactive tab fg
|
|
# inactive tab bg
|
|
|
|
#
|
|
# TERMINALS
|
|
#
|
|
|
|
STERM="st -f Terminus:pixelsize=18"
|
|
BTERM="st -f Terminus:pixelsize=26"
|
|
HTERM="st -f spleen:pixelsize=32"
|
|
|
|
#
|
|
# DMENU
|
|
#
|
|
|
|
DMENUOPTS="-fn Terminus:pixelsize=18 \
|
|
-nb $COLOR_NB \
|
|
-nf $COLOR_NF \
|
|
-sf $COLOR_SF \
|
|
-sb $COLOR_SB \
|
|
-i \
|
|
-f"
|
|
|
|
DMENU_CMD="dmenu $DMENUOPTS"
|
|
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
|
|
|
#
|
|
# NOTIFY
|
|
#
|
|
|
|
NOTIFY_CMD() {
|
|
notify-send -- "$@ ($(date +%H:%M))"
|
|
}
|
|
|
|
#
|
|
# FUNCTIONS
|
|
#
|
|
|
|
needs() {
|
|
pkg_info -az | grep -q ^$1$ \
|
|
|| doas pkg_add $1
|
|
}
|
|
|
|
#
|
|
# CONNECT TO GPG-AGENT
|
|
#
|
|
|
|
#eval $(keychain -Q -q --noask --agents ssh,gpg --noask --eval id_rsa)
|
|
|
|
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
|