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-03-17 18:13:15 +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"
|
2024-01-21 21:52:18 +01:00
|
|
|
|
2023-12-12 08:39:33 +01:00
|
|
|
|
|
|
|
#
|
2022-12-05 11:21:53 +01:00
|
|
|
# TERMINALS
|
|
|
|
#
|
2024-09-26 07:40:24 +02:00
|
|
|
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 ))"
|
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-03-17 18:13:15 +01:00
|
|
|
DMENUOPTS="-fn Terminus:pixelsize=20:style=bold \
|
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() {
|
2024-05-16 22:06:24 +02:00
|
|
|
( echo "$(date +%H:%M) | $1" | xnotify ) &
|
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() {
|
2024-03-23 09:50:32 +01:00
|
|
|
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
|
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
|