Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jubnzv/pocketbook-sync

CLI utility for syncing book positions between PocketBook E-reader and Zathura.
https://github.com/jubnzv/pocketbook-sync

cli pocketbook utility zathura

Last synced: 7 days ago
JSON representation

CLI utility for syncing book positions between PocketBook E-reader and Zathura.

Awesome Lists containing this project

README

        

# pocketbook-sync

A CLI utility for synchronize the positions in the books between [PocketBook 740](https://pocketbook.ru/shop/ustroystva/pocketbook-740-chernyy/) E-reader and [zathura](https://pwmt.org/projects/zathura/) document viewer.

## Building from source

Install Qt libraries and use:

```bash
cmake .
make -j$(nproc)
```

## Usage

```
Usage: ./pbsync [options] mount-point zathura-history prefix
A CLI utility for syncing book positions between PocketBook e-reader and zathura.

Options:
-h, --help Displays help on commandline options.
--help-all Displays help including Qt specific options.
-v, --version Displays version information.

Arguments:
mount-point PocketBook mount point: path with "system" directory.
zathura-history Zathura history file.
prefix Prefix to books location on this device.
```

Here is an example of usage in my environment.

I store books in ~/Documents on my desktop system. The same directory (including all files with the same paths) is located in MicroSD card on my PocketBook device.

The following command fetch the book positions from the E-reader database and updates them in the zathura history file:

```
$ pbsync /media/jubnzv/PB740 /home/jubnzv/.local/share/zathura/history /home/jubnzv/

Updated positions:
"/home/jubnzv/Documents/C++/Stepanov_ From Mathematics to Generic Programming.pdf" page: 103

New zathura history was saved at /home/jubnzv/.local/share/zathura/history.new

Check the difference using:
diff /home/jubnzv/.local/share/zathura/history{,.new}

To apply these changes use:
mv /home/jubnzv/.local/share/zathura/history{,.new}
```

## License
MIT