Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jubnzv/pocketbook-sync
- Owner: jubnzv
- Created: 2020-11-08T05:59:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-08T10:49:46.000Z (almost 4 years ago)
- Last Synced: 2024-10-19T08:14:58.802Z (18 days ago)
- Topics: cli, pocketbook, utility, zathura
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: 103New 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