From feb1617a0b953f82935500c05c24a429552ee47c Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 5 Nov 2019 10:23:05 +0100 Subject: [PATCH] Split config file --- kitty/advanced.conf | 2 +- kitty/keyboard.conf | 12 ++++++++---- kitty/session_multiple.conf | 25 +++++++++++++++++++++++++ kitty/session_single_zsh.conf | 13 +++++++++++++ kitty/sessions.conf | 26 -------------------------- 5 files changed, 47 insertions(+), 31 deletions(-) create mode 100644 kitty/session_multiple.conf create mode 100644 kitty/session_single_zsh.conf delete mode 100644 kitty/sessions.conf diff --git a/kitty/advanced.conf b/kitty/advanced.conf index 294c477..f0a5df4 100644 --- a/kitty/advanced.conf +++ b/kitty/advanced.conf @@ -54,7 +54,7 @@ update_check_interval 24 #: available update. The default is to check every 24 hrs, set to zero #: to disable. -startup_session sessions.conf +startup_session session_multiple.conf #: Path to a session file to use for all kitty instances. Can be #: overridden by using the kitty --session command line option for diff --git a/kitty/keyboard.conf b/kitty/keyboard.conf index d169973..75c49ff 100644 --- a/kitty/keyboard.conf +++ b/kitty/keyboard.conf @@ -78,13 +78,15 @@ clear_all_shortcuts no #: Clipboard {{{ -map kitty_mod+c copy_to_clipboard +#map kitty_mod+c copy_to_clipboard +map super+0x63 copy_to_clipboard #: There is also a copy_or_interrupt action that can be optionally #: mapped to Ctrl+c. It will copy only if there is a selection and #: send an interrupt otherwise. -map kitty_mod+v paste_from_clipboard +#map kitty_mod+v paste_from_clipboard +map super+0x76 paste_from_clipboard map kitty_mod+s paste_from_selection map shift+insert paste_from_selection map kitty_mod+o pass_selection_to_program @@ -162,8 +164,10 @@ map kitty_mod+n new_os_window #: open a window with the current working directory. map kitty_mod+w close_window -map kitty_mod+] next_window -map kitty_mod+[ previous_window +#map kitty_mod+] next_window +#map kitty_mod+[ previous_window +map ctrl+0xff56 next_window +map ctrl+0xff55 previous_window map kitty_mod+f move_window_forward map kitty_mod+b move_window_backward map kitty_mod+` move_window_to_top diff --git a/kitty/session_multiple.conf b/kitty/session_multiple.conf new file mode 100644 index 0000000..87692d5 --- /dev/null +++ b/kitty/session_multiple.conf @@ -0,0 +1,25 @@ +# vim:fileencoding=utf-8:ft=conf:foldmethod=marker + +#: Sessions {{{ + +layout tall + +#: First tab +cd . +title zsh +launch env TERMINFO=/usr/share/terminfo zsh + +#: Second tab +title explore +launch env TERMINFO=/usr/share/terminfo ranger + +#: Third tab +cd ~ +title zsh +launch env TERMINFO=/usr/share/terminfo zsh + +#: Fourth tab +#title vim +#launch vim + +#: }}} diff --git a/kitty/session_single_zsh.conf b/kitty/session_single_zsh.conf new file mode 100644 index 0000000..9f8019d --- /dev/null +++ b/kitty/session_single_zsh.conf @@ -0,0 +1,13 @@ +# vim:fileencoding=utf-8:ft=conf:foldmethod=marker + +#: Session {{{ +# +initial_window_width 640 +initial_window_height 400 + +#: First tab +cd . +title zsh +launch zsh + +#: }}} diff --git a/kitty/sessions.conf b/kitty/sessions.conf deleted file mode 100644 index 74bb9b3..0000000 --- a/kitty/sessions.conf +++ /dev/null @@ -1,26 +0,0 @@ -# vim:fileencoding=utf-8:ft=conf:foldmethod=marker - -#: Sessions {{{ - -layout tall - -#: Set the window layout for the current tab - -cd ~ - -#: Set the working directory for windows in the current tab - -launch zsh - -#: Create a window and run the specified command in it - -launch vim - -#: Create a window with some environment variables set and run vim in it - -title Chat with x -launch irssi --profile x - -#: Set the title for the next window - -#: }}}