Allows you to save & restore kitty sessions, with all kitty OS windows, kitty tabs & kitty windows restored.
Doesn’t restore OS window sizes. See here for Window Workspace Placement Save & Restore.
Modifications by RanzQ:
-
Add shell scripts
-
Fix cd for windows
-
Automatic titles from cd
-
Launch shell only
Requires python 3 and kitty.
Link dump and restore scripts to bin:
ln -s /home/<user>/kitty-save-session/kitty-dump.sh .local/bin/kitty-dump
ln -s /home/<user>/kitty-save-session/kitty-restore.sh .local/bin/kitty-restore
Modify kitty.desktop to use single instance (this allows kitty-restore && exit)
Exec=sh -c "/home/<user>/.local/kitty.app/bin/kitty --single-instance"
# Dump the current kitty session:
kitty-dump
# Restore the session (and exit current kitty):
kitty-restore && exit