Update 2022-12-08 17:11 OpenBSD/amd64

This commit is contained in:
c0dev0id 2022-12-08 17:11:17 +01:00
parent d1d1f8255a
commit 89d75f8a6f
2 changed files with 11 additions and 1 deletions

View File

@ -15,11 +15,12 @@ case $SEL in
Documents)
DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25)
if [ ! -z "$DOC" ]; then
ACT=$(printf "View\nEdit\nEmail" | $DMENU_CMD -p Action)
ACT=$(printf "View\nEdit\nEmail\nDelete" | $DMENU_CMD -p Action)
case $ACT in
View) mupdf "$PIMDIR/documents/$DOC" ;;
Edit) pdfarranger "$PIMDIR/documents/$DOC" ;;
Email) texec "mutt -a \"$PIMDIR/documents/$DOC\"" ;;
Delete) mkdir -p /tmp/deleted_documents; mv "$PIMDIR/documents/$DOC" /tmp/deleted_documents/; ;;
esac
fi
;;

9
.bin/documents-update Executable file
View File

@ -0,0 +1,9 @@
#/bin/sh -xe
. ${HOME}/.bin/_config
cd ${PIMDIR}
git add *
git commit -am "Update $(date +"%Y-%m-%d %H:%M")"
git fetch
git rebase origin/main
git push