Skip to content

Allows you to save & restore kitty sessions, with all kitty OS windows, kitty tabs & kitty windows restored.

License

Notifications You must be signed in to change notification settings

RanzQ/kitty-save-session

 
 

Repository files navigation

Save & Restore Kitty Sessions

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

Requirements

Requires python 3 and kitty.

Usage

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

About

Allows you to save & restore kitty sessions, with all kitty OS windows, kitty tabs & kitty windows restored.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.8%
  • Shell 21.2%