hm/programs/terminal/emulators/ghostty: update keybinds
This commit is contained in:
parent
4c86300a0a
commit
017b3dae83
1 changed files with 25 additions and 17 deletions
|
@ -7,6 +7,8 @@
|
||||||
inherit (lib) mapAttrs mkIf optionalAttrs removePrefix;
|
inherit (lib) mapAttrs mkIf optionalAttrs removePrefix;
|
||||||
styleCfg = osConfig.local.style;
|
styleCfg = osConfig.local.style;
|
||||||
|
|
||||||
|
prefix = "ctrl+a";
|
||||||
|
|
||||||
mkGhosttyTheme = palette: let
|
mkGhosttyTheme = palette: let
|
||||||
colors = mapAttrs (_: value: removePrefix "#" value) palette;
|
colors = mapAttrs (_: value: removePrefix "#" value) palette;
|
||||||
in {
|
in {
|
||||||
|
@ -54,26 +56,32 @@ in {
|
||||||
confirm-close-surface = false;
|
confirm-close-surface = false;
|
||||||
|
|
||||||
keybind = [
|
keybind = [
|
||||||
"ctrl+h=goto_split:left"
|
"${prefix}>c=new_tab"
|
||||||
"ctrl+j=goto_split:bottom"
|
"${prefix}>p=move_tab:-1"
|
||||||
"ctrl+k=goto_split:top"
|
"${prefix}>n=move_tab:1"
|
||||||
"ctrl+l=goto_split:right"
|
|
||||||
"super+shift+t=new_tab"
|
"${prefix}>\\=new_split:right"
|
||||||
"super+shift+h=previous_tab"
|
"${prefix}>-=new_split:down"
|
||||||
"super+shift+l=next_tab"
|
"${prefix}>h=goto_split:left"
|
||||||
"super+shift+comma=move_tab:-1"
|
"${prefix}>j=goto_split:bottom"
|
||||||
"super+shift+period=move_tab:1"
|
"${prefix}>k=goto_split:top"
|
||||||
"super+shift+c=copy_to_clipboard"
|
"${prefix}>l=goto_split:right"
|
||||||
"super+shift+v=paste_from_clipboard"
|
"${prefix}>shift+h=resize_split:left,10"
|
||||||
"super+shift+enter=new_split:auto"
|
"${prefix}>shift+j=resize_split:down,10"
|
||||||
"super+shift+i=inspector:toggle"
|
"${prefix}>shift+k=resize_split:up,10"
|
||||||
"super+shift+m=toggle_split_zoom"
|
"${prefix}>shift+l=resize_split:right,10"
|
||||||
"super+shift+r=reload_config"
|
"${prefix}>z=toggle_split_zoom"
|
||||||
"super+shift+s=write_screen_file:open"
|
|
||||||
"super+shift+w=close_surface"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
adw-toolbar-style = "flat";
|
||||||
|
gtk-tabs-location = "bottom";
|
||||||
|
gtk-wide-tabs = false;
|
||||||
|
window-decoration = false;
|
||||||
|
|
||||||
|
linux-cgroup = "always";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
(optionalAttrs styleCfg.enable {
|
(optionalAttrs styleCfg.enable {
|
||||||
settings.theme = "base16";
|
settings.theme = "base16";
|
||||||
themes.base16 = mkIf styleCfg.enable (mkGhosttyTheme styleCfg.scheme.palette);
|
themes.base16 = mkIf styleCfg.enable (mkGhosttyTheme styleCfg.scheme.palette);
|
||||||
|
|
Loading…
Reference in a new issue