This commit is contained in:
tavo-wasd 2024-02-23 16:45:53 -06:00
parent f094bef7d4
commit 257dd3e307
5 changed files with 27 additions and 15 deletions

View file

@ -1,13 +0,0 @@
[General]
Binary = calcurse
Hostname = cloud.tavo.one
Path = /remote.php/dav/calendars/tavo/default/
AuthMethod = basic
InsecureSSL = No
HTTPS = Yes
SyncFilter = event,apt,recur-event,recur-apt,todo,recur,cal
DryRun = No
Verbose = Yes
[Auth]
Username = tavo

17
scripts/contact Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
VDIR="$HOME/Documents/contacts"
QUERY="$(< /dev/null | menu 'Query contacts:' )"
[ -z "$QUERY" ] && exit 0
LIST="$(grep -ir "$QUERY" "$VDIR" | cut -d ':' -f 1 | uniq | tr '\n' ' ')"
NAME="$(for VCARD in $LIST ; do
grep -r 'FN' "$VCARD" | cut -d ':' -f 2
done | menu "'$QUERY' results:")"
[ -z "$NAME" ] && exit 0
grep -r "$NAME" "$VDIR" | cut -d ':' -f 1 | xargs sed \
-e '/^.*:VCARD/d;/^VERSION:/d;/^PRODID:/d;/^UID:/d;/^REV:/d' \
-e '/^FN:/d;/^N:/d;/^NICKNAME:/d' \
-e 's/^.*://g' |
menu "$NAME:" | tr -d '\n' | tr -d '^M' | wl-copy

View file

@ -23,10 +23,10 @@ get_layout() {
while true ; do
status=""
todo="$(get_todo)"
#todo="$(get_todo)"
! [ -z "$todo" ] && status="$status$separator$todo"
apts="$(get_apts)"
#apts="$(get_apts)"
! [ -z "$apts" ] && status="$status$separator$apts"
volume="$(volstat)"

6
scripts/vcard Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
VDIR="$HOME/Documents/contacts"
NAME="$(grep -r 'FN' "$VDIR" | cut -d ':' -f 3 | menu "VCARD:")"
[ -z "$NAME" ] && exit 0
grep -r "$NAME" "$VDIR" | cut -d ':' -f 1 | xargs qrencode -s 8 -t PNG -o - -r | display

View file

@ -148,6 +148,8 @@ bar {
}
}
for_window [class="Display-im6.q16"] floating enable
# Autostart
exec_always dunst
exec_always dbus-update-activation-environment WAYLAND_DISPLAY