avidseeker / awesome-syncthing

Awesome list of Syncthing integrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A curated list of offline-first apps

Note taking

Task Management

Export-based integrations

These require manual export/import to be synced.

Desktop integrations

  • KeePassDX - .kdbx password manager. Enable by selecting a synced database from "Open existing database". Read-only mode can be enabled to avoid sync conflicts from Settings > App settings > Write-protected.

Syncs .apkg flash cards. Known limitation for v2.15: Database needs to be downgraded on exit if viewed from PC. Current workaround is to install the Beta version and check "Use the new backend" from Settings > Advanced > Experimental. Note: Backup your data before attempting this. If Syncthing is running while Anki is open, you risk database corruption.

Setup:

  1. Locate AnkiDroid path. Defaults to /storage/emulated/0/AnkiDroid. Can be changed from Settings > Advanced > AnkiDroid directory.
  2. Sync with PC folder: ~/AnkiDecks using Syncthing.
  3. Locate Anki settings directory on desktop. Defaults to ~/.local/share/Anki2.
  4. Create a profile symlink to ~/AnkiDecks inside the settings directory:
ln -s ~/AnkiDecks ~/.local/share/Anki2/main
  1. Select the profile from Ctrl-Shift-P
  2. If you're using an older version of AnkiDroid, you have to downgrade every time you exit Anki from desktop, by Ctrl-Shift-P then "Downgrade and exit".

Syncs .ics calendar format. Can be used in one-way sync with calcurse by adding the following post-save hook in ~/.config/calcurse/hooks/post-save:

#!/bin/sh
cd "$SYNC_CAL_DIR" || exit 1
calcurse -c ./apts -x > main.ics

and running calcurse with -c "$SYNC_CAL_DIR/apts". Where $SYNC_CAL_DIR is the path of Syncthing directory.

From Android, you can either manually refresh the calendar or set up autosyncing interval. ICSx5 can be then used with a calendar app like Etar.

Email

In your ~/.profile

export \
    MAILRC="$XDG_CONFIG_HOME"/mail/mailrc \
    MAIL="$HOME"/Sync/mail/inbox.mbox

In your ~/.config/.mailrc:

set folder=mail
set expandaddr
set stealthmua
set from=mail@example.com
set folder=~/Sync/mail/ inbox=+inbox.mbox

Usage

Simply edit ~/Sync/mail/inbox.mbox in your editor. Here's a snippet you can add if you're using UltiSnips in Vim:

snippet main "Mail header"
From M `date "+%a %b %d %H:%M:%S %Y"`
Status: U
$0
endsnippet

This format is necessary for correct parsing of mail command, which we will use for notifications.

And add this to vimrc to associate files ending with .mbox with mbox filetype:

autocmd BufRead,BufNewFile *.mbox setfiletype mbox

Notifications

As simple as:

mail -H | grep -q '^ U' && notify-send "New mail"

Just put it in a script and add it as a cronjob.

About

Awesome list of Syncthing integrations

License:Creative Commons Zero v1.0 Universal