mirror of
https://github.com/zoriya/flake.git
synced 2026-05-31 01:56:25 +00:00
Add kitty bindings
This commit is contained in:
@@ -30,14 +30,38 @@ in {
|
||||
swayidle
|
||||
]
|
||||
++ [lock];
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
enable_audio_bell no
|
||||
confirm_os_window_close 0
|
||||
map kitty_mod+r launch --type background --stdin-source=@screen_scrollback sh -c 'grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u | rofi -dmenu -p "Launch in browser" | xargs xdg-open'
|
||||
disable_ligatures always
|
||||
|
||||
clear_all_shortcuts yes
|
||||
kitty_mod alt
|
||||
map ctrl+shift+c copy_to_clipboard
|
||||
map ctrl+shift+v paste_from_clipboard
|
||||
|
||||
|
||||
# map kitty_mod+r launch --type background --stdin-source=@screen_scrollback sh -c 'grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u | rofi -dmenu -p "Launch in browser" | xargs xdg-open'
|
||||
map kitty_mod+r open_url_with_hints
|
||||
map kitty_mod+n launch --type=tab --cwd=current
|
||||
|
||||
map kitty_mod+k scroll_line_up
|
||||
map kitty_mod+j scroll_line_down
|
||||
map kitty_mod+h previous_tab
|
||||
map kitty_mod+l next_tab
|
||||
|
||||
map kitty_mod+o scroll_to_prompt -1
|
||||
map kitty_mod+i scroll_to_prompt 1
|
||||
map kitty_mod+space show_last_command_output
|
||||
|
||||
'';
|
||||
};
|
||||
programs.zsh.shellAliases = {
|
||||
ssh = "kitty +kitten ssh";
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
|
||||
Reference in New Issue
Block a user