Update 2023-04-26 08:32 OpenBSD/amd64-x13
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
. $HOME/.bin/_config
|
||||
|
||||
SEL=$(printf "Notes\nDocuments\nContacts\nSlides" | $DMENU_CMD -p "Information System")
|
||||
SEL=$(print "Notes\nDocuments\nContacts\nCalendar\nSlides" | $DMENU_CMD -p "Information System")
|
||||
|
||||
case $SEL in
|
||||
Notes)
|
||||
@@ -26,16 +26,16 @@ case $SEL in
|
||||
fi
|
||||
;;
|
||||
Contacts)
|
||||
C=$(contactsearch | $DMENU_CMD -p Contacts -l 25)
|
||||
if [ ! -z "$C" ]; then
|
||||
_file=$(printf "$C" | cut -d" " -f1)
|
||||
if [ -f "$PIMDIR/contacts/$_file" ]; then
|
||||
texec "vim \"$PIMDIR/contacts/$_file\""
|
||||
else
|
||||
printf "Name:\nAddress:\nHome:\nWork:\nMail:\nWeb:\nBirthday:\n" >> "$PIMDIR/contacts/$_file"
|
||||
texec "vim \"$PIMDIR/contacts/$_file\""
|
||||
fi
|
||||
fi
|
||||
eval $(gnome-keyring-daemon --start --components=secrets)
|
||||
dbus-update-activation-environment --all
|
||||
export GNOME_KEYRING_CONTROL GNOME_KEYRING_SOCKET GNOME_KEYRING_PID
|
||||
gnome-contacts
|
||||
;;
|
||||
Calendar)
|
||||
eval $(gnome-keyring-daemon --start --components=secrets)
|
||||
dbus-update-activation-environment --all
|
||||
export GNOME_KEYRING_CONTROL GNOME_KEYRING_SOCKET GNOME_KEYRING_PID
|
||||
gnome-calendar
|
||||
;;
|
||||
Slides)
|
||||
P=$(ls -1 "$PIMDIR/slides/" | sort -hr | $DMENU_CMD -p Slides -l 25)
|
||||
|
||||
Reference in New Issue
Block a user