A simple Python script for saving open Zathura sessions.
Find a file
Kai Lindholm f34dae759b
All checks were successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/push/woodpecker/3 Pipeline was successful
ci/woodpecker/push/woodpecker/4 Pipeline was successful
ci/woodpecker/push/woodpecker/5 Pipeline was successful
Only try to get PID for Zathura.
2026-03-29 23:22:59 +03:00
.woodpecker.yaml Add Python packaging. 2025-08-06 16:42:36 +03:00
LICENSE Add a simple README and a LICENSE. 2025-08-05 23:31:19 +03:00
pyproject.toml Add Python packaging. 2025-08-06 16:42:36 +03:00
README.md Add a simple README and a LICENSE. 2025-08-05 23:31:19 +03:00
zathurasession.py Only try to get PID for Zathura. 2026-03-29 23:22:59 +03:00

Zathura-session

A simple Python script for saving open Zathura sessions. The open files, their current pages and the desktops the Zathura viewers are open are saved in a JSON file, from which they can be loaded again.

This requires that the window manager runs under X supports EWMH.

Usage

Save the current state:

$ zathura-session save

Show the saved sessions:

$ zathura-session list

Load the previous session:

$ zathura-session load