mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 08:40:41 +00:00
Add terminal emulators
This commit is contained in:
parent
dcfbbeec27
commit
046ebaf5b7
4 changed files with 156 additions and 0 deletions
78
home/programs/terminal/emulators/kitty.nix
Normal file
78
home/programs/terminal/emulators/kitty.nix
Normal file
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
inherit (modules.style.colorScheme) colors;
|
||||
in {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# General
|
||||
background_opacity = "0.85";
|
||||
font_family = "monospace";
|
||||
font_size = 14;
|
||||
disable_ligatures = "never";
|
||||
cursor_shape = "underline";
|
||||
cursor_blink_interval = "0.5";
|
||||
cursor_stop_blinking_after = "15.0";
|
||||
scrollback_lines = 10000;
|
||||
click_interval = "0.5";
|
||||
select_by_word_characters = ":@-./_~?&=%+#";
|
||||
remember_window_size = false;
|
||||
allow_remote_control = true;
|
||||
initial_window_width = 640;
|
||||
initial_window_height = 400;
|
||||
repaint_delay = 15;
|
||||
input_delay = 3;
|
||||
visual_bell_duration = "0.0";
|
||||
url_style = "double";
|
||||
open_url_with = "default";
|
||||
confirm_os_window_close = 0;
|
||||
enable_audio_bell = false;
|
||||
window_padding_width = 15;
|
||||
window_margin_width = 10;
|
||||
};
|
||||
keybindings = {
|
||||
"ctrl+c" = "copy_or_interrupt";
|
||||
"ctrl+alt+c" = "copy_to_clipboard";
|
||||
"ctrl+alt+v" = "paste_from_clipboard";
|
||||
"ctrl+shift+v" = "paste_from_clipboard";
|
||||
|
||||
"ctrl+shift+up" = "increase_font_size";
|
||||
"ctrl+shift+down" = "decrease_font_size";
|
||||
"ctrl+shift+backspace" = "restore_font_size";
|
||||
|
||||
"ctrl+shift+enter" = "new_window";
|
||||
"ctrl+shift+n" = "new_os_window";
|
||||
"ctrl+shift+w" = "close_window";
|
||||
"ctrl+shift+]" = "next_window";
|
||||
"ctrl+shift+[" = "previous_window";
|
||||
"ctrl+shift+f" = "move_window_forward";
|
||||
"ctrl+shift+b" = "move_window_backward";
|
||||
"ctrl+shift+`" = "move_window_to_top";
|
||||
"ctrl+shift+1" = "first_window";
|
||||
"ctrl+shift+2" = "second_window";
|
||||
"ctrl+shift+3" = "third_window";
|
||||
"ctrl+shift+4" = "fourth_window";
|
||||
"ctrl+shift+5" = "fifth_window";
|
||||
"ctrl+shift+6" = "sixth_window";
|
||||
"ctrl+shift+7" = "seventh_window";
|
||||
"ctrl+shift+8" = "eighth_window";
|
||||
"ctrl+shift+9" = "ninth_window";
|
||||
"ctrl+shift+0" = "tenth_window";
|
||||
|
||||
"ctrl+shift+right" = "next_tab";
|
||||
"ctrl+shift+left" = "previous_tab";
|
||||
"ctrl+shift+t" = "new_tab";
|
||||
"ctrl+shift+q" = "close_tab";
|
||||
"ctrl+shift+l" = "next_layout";
|
||||
"ctrl+shift+." = "move_tab_forward";
|
||||
"ctrl+shift+," = "move_tab_backward";
|
||||
"ctrl+shift+alt+t" = "set_tab_title";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue