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
|
|
|
|
2024-01-21 21:52:18 +01:00
|
|
|
BACKGROUND="#002020"
|
|
|
|
|
2024-02-25 14:11:12 +01:00
|
|
|
COLOR_NB="#001010"
|
2024-01-21 21:52:18 +01:00
|
|
|
COLOR_NF="#008080"
|
|
|
|
COLOR_SB="#004040"
|
|
|
|
COLOR_SF="#EEEEEE"
|
2023-12-12 08:39:33 +01:00
|
|
|
|
|
|
|
#
|
2022-12-05 11:21:53 +01:00
|
|
|
# TERMINALS
|
|
|
|
#
|
|
|
|
|
2024-02-25 14:11:12 +01:00
|
|
|
STERM="st -f TamzenForPowerline:pixelsize=16"
|
|
|
|
BTERM="st -f JetBrainsMonoNerdFont:pixelsize=18"
|
|
|
|
HTERM="st -f JetBrainsMonoNerdFont:pixelsize=22"
|
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
|
|
|
|
2024-02-25 14:11:12 +01:00
|
|
|
DMENUOPTS="-fn TamzenForPowerline:pixelsize=16 \
|
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"
|
2024-01-08 23:06:28 +01:00
|
|
|
#DMENU_CMD="rofi -dmenu"
|
2022-12-05 11:21:53 +01:00
|
|
|
DMENURUN_CMD="dmenu_run $DMENUOPTS"
|
2024-01-21 12:06:39 +01:00
|
|
|
#DMENURUN_CMD="rofi -show run"
|
2022-12-05 11:21:53 +01:00
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
#
|
|
|
|
# NOTIFY
|
|
|
|
#
|
|
|
|
|
2024-02-25 14:11:12 +01:00
|
|
|
#NOTIFY_CMD() {
|
|
|
|
# twmnc -i "${VAR##*/}" \
|
|
|
|
# -d 5000 \
|
|
|
|
# -t "$(date +%H:%M)" \
|
|
|
|
# -c "$@"
|
|
|
|
#}
|
2023-12-12 08:39:33 +01:00
|
|
|
NOTIFY_CMD() {
|
2024-02-25 14:11:12 +01:00
|
|
|
echo "$@" \
|
|
|
|
| xnotify \
|
|
|
|
$NOTIFY_CMD_OPTS &
|
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
|
|
|
|
2024-01-05 12:30:05 +01:00
|
|
|
[ -f ~/.ksh/gnupg.ksh ] \
|
|
|
|
&& . ~/.ksh/gnupg.ksh
|