mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-04 11:47:37 +00:00
feat(config): add kitty pre‑shutdown session save and config updates
This commit is contained in:
1 parent
cae4fb8766
commit
7e2ae53560
6 files changed
+84
-45
No files matched your search
@@ -35,7 +35,7 @@ action_alias launch_os launch --cwd=current --type=os-window
|
||||
action_alias launch_ov launch --cwd=current --type=overlay
|
||||
action_alias launch_tb launch --cwd=current --type=tab
|
||||
action_alias launch_hs launch --cwd=current --location=hsplit --bias=25
|
||||
action_alias launch_vs launch --cwd=current --location=vsplit --bias=30
|
||||
action_alias launch_vs launch --cwd=current --location=vsplit --bias=33
|
||||
action_alias launch_vs50 launch --cwd=current --location=vsplit --bias=50
|
||||
|
||||
# panes = kitty windows
|
||||
@@ -84,12 +84,10 @@ map alt+o goto_tab 9
|
||||
# reopens today's session unless another running kitty already owns it: tabs,
|
||||
# splits, cwds, each shell's scrollback and the program running in it. Tabs
|
||||
# made with *_with_cwd / --cwd=current join it and are saved ~1s after each
|
||||
# change. ctrl+shift+d reopens any earlier day.
|
||||
# change, and right before shutdown/reboot (kitty-day-save.service). `tv
|
||||
# kitty-days` opens any earlier day in a new kitty.
|
||||
geninclude day_session.py
|
||||
watcher day_session.py
|
||||
map ctrl+shift+d kitten day_session.py
|
||||
# show only the active day's tabs (plus tabs outside any session)
|
||||
tab_bar_filter session:~ or session:^$
|
||||
|
||||
# split nav (vim-aware)
|
||||
map ctrl+h kitten pass_keys.py neighboring_window left ctrl+h
|
||||
@@ -103,9 +101,11 @@ map super+up resize_window taller
|
||||
map super+down resize_window shorter 3
|
||||
|
||||
tab_bar_style powerline
|
||||
tab_powerline_style slanted
|
||||
tab_bar_align center
|
||||
tab_powerline_style angled
|
||||
tab_bar_align left
|
||||
tab_bar_edge top
|
||||
# always shown, even with one tab: it carries the stack-layout pane indicator
|
||||
tab_bar_min_tabs 1
|
||||
|
||||
# Titles come from ~/.config/kitty/tab_bar.py (`{custom}`): the repo the tab's
|
||||
# cwd belongs to, or the file nvim is editing when nvim is the active process.
|
||||
|
||||
Reference in new issue
Block a user