f2ddf78fe4
Allows saving the current session with a keypress The session can then be restored via a right-click option in the kitty application
8 lines
318 B
Bash
Executable File
8 lines
318 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Dump the current kitty session:
|
|
kitty @ ls >~/.config/kitty/save_session/kitty-dump.json
|
|
# Convert this JSON file into a kitty session file:
|
|
cat kitty-dump.json | python3 ~/.config/kitty/save_session/kitty-convert-dump.py >~/.config/kitty/sessions/saved-session.conf
|
|
# Close the generator window:
|