1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Rebind all ghostty keys

This commit is contained in:
RGBCube 2023-12-11 23:41:38 +03:00
parent 617601cb13
commit 655c48309e
No known key found for this signature in database
3 changed files with 128 additions and 148 deletions

233
flake.lock generated
View file

@ -24,11 +24,11 @@
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1648199409, "lastModified": 1673956053,
"narHash": "sha256-JwPKdC2PoVBkG6E+eWw3j6BMR6sL3COpYWfif7RVb8Y=", "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra", "owner": "edolstra",
"repo": "flake-compat", "repo": "flake-compat",
"rev": "64a525ee38886ab9028e6f61790de0832aa3ef03", "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -85,38 +85,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_5": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": {
"lastModified": 1656065134,
"narHash": "sha256-oc6E6ByIw3oJaIyc67maaFcnjYOz1mMcOtHxbEf9NwQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "bee6a7250dd1b01844a2de7e02e4df7d8a0a206c",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
@ -131,7 +100,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_3": { "flake-utils_2": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
}, },
@ -149,7 +118,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_4": { "flake-utils_3": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
@ -164,7 +133,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_5": { "flake-utils_4": {
"inputs": { "inputs": {
"systems": "systems_3" "systems": "systems_3"
}, },
@ -182,7 +151,7 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_6": { "flake-utils_5": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
@ -199,26 +168,24 @@
}, },
"ghostty": { "ghostty": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "nixpkgs-stable": "nixpkgs-stable",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixpkgs-zig-0-12": "nixpkgs-zig-0-12", "nixpkgs-zig-0-12": "nixpkgs-zig-0-12",
"zig": "zig", "zig": "zig",
"zls-master": "zls-master" "zls": "zls"
}, },
"locked": { "locked": {
"lastModified": 1702028013, "lastModified": 1702326940,
"narHash": "sha256-lkpNEqUABpFthJnGzFTgJSUsGUiFXkqgtLO8jgVnNNA=", "narHash": "sha256-qu7+FJN++kPY2EyvGDGEWOh9HR8I7u9ZDXd0tGB2rj4=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "d95649e85efc23819d5c1b9b5c33c710f5aa0dac", "rev": "d659b12fb9b9fb210270c204effad969c1b630b8",
"revCount": 4088, "revCount": 4129,
"type": "git", "type": "git",
"url": "ssh://git@github.com/RGBCube/Ghostty" "url": "ssh://git@github.com/RGBCube/GHostty"
}, },
"original": { "original": {
"type": "git", "type": "git",
"url": "ssh://git@github.com/RGBCube/Ghostty" "url": "ssh://git@github.com/RGBCube/GHostty"
} }
}, },
"ghosttyModule": { "ghosttyModule": {
@ -240,7 +207,7 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"ghostty", "ghostty",
"zls-master", "zls",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -302,7 +269,7 @@
"hyprland": { "hyprland": {
"inputs": { "inputs": {
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs",
"systems": "systems_2", "systems": "systems_2",
"wlroots": "wlroots", "wlroots": "wlroots",
"xdph": "xdph" "xdph": "xdph"
@ -348,7 +315,7 @@
}, },
"hyprpicker": { "hyprpicker": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_5" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1698684516, "lastModified": 1698684516,
@ -422,10 +389,10 @@
}, },
"nixSuper": { "nixSuper": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_4", "flake-compat": "flake-compat_3",
"libgit2": "libgit2", "libgit2": "libgit2",
"lowdown-src": "lowdown-src", "lowdown-src": "lowdown-src",
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_3",
"nixpkgs-regression": "nixpkgs-regression" "nixpkgs-regression": "nixpkgs-regression"
}, },
"locked": { "locked": {
@ -444,16 +411,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1691950488, "lastModified": 1700612854,
"narHash": "sha256-iUNEeudc4dGjx+HsHccnGiuZUVE/nhjXuQ1DVCsHIUY=", "narHash": "sha256-yrQ8osMD+vDLGFX7pcwsY/Qr5PUd6OmDMYJZzZi0+zc=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "720e61ed8de116eec48d6baea1d54469b536b985", "rev": "19cbff58383a4ae384dea4d1d0c823d72b49d614",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "NixOS",
"ref": "release-23.05", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -474,6 +441,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable": {
"locked": {
"lastModified": 1702049175,
"narHash": "sha256-c/q2+tGHbmLgzT3sXyUKVJR98h1CTks2+nkVaoZPRM0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "b15508bd65870620f1df5864e8e861dffbc4e428",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "release-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1688221086, "lastModified": 1688221086,
@ -492,11 +475,11 @@
}, },
"nixpkgs-zig-0-12": { "nixpkgs-zig-0-12": {
"locked": { "locked": {
"lastModified": 1701575450, "lastModified": 1702064370,
"narHash": "sha256-I3hNRC+3F9RI0YL0YSUpmibCPKr+prCSJ2FWW5cuekA=", "narHash": "sha256-iwET6dhyYTVQsoPD8FNDjrXC00S3scCMPfopQ09SI+o=",
"owner": "vancluever", "owner": "vancluever",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fd803506dbed295c45931f4f5938c28e3484dee7", "rev": "f474ae77d1f841a198ab505599a61e837ad82741",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -507,54 +490,6 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1689088367,
"narHash": "sha256-Y2tl2TlKCWEHrOeM9ivjCLlRAKH3qoPUE/emhZECU14=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5c9ddb86679c400d6b7360797b8a22167c2053f8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1701336116,
"narHash": "sha256-kEmpezCR/FpITc6yMbAh4WrOCiT2zg5pSjnKrq51h5Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f5c27c6136db4d76c30e533c20517df6864c46ee",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1700612854,
"narHash": "sha256-yrQ8osMD+vDLGFX7pcwsY/Qr5PUd6OmDMYJZzZi0+zc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "19cbff58383a4ae384dea4d1d0c823d72b49d614",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1683014792, "lastModified": 1683014792,
"narHash": "sha256-6Va9iVtmmsw4raBc3QKvQT2KT/NGRWlvUlJj46zN8B8=", "narHash": "sha256-6Va9iVtmmsw4raBc3QKvQT2KT/NGRWlvUlJj46zN8B8=",
@ -570,7 +505,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1700342017, "lastModified": 1700342017,
"narHash": "sha256-HaibwlWH5LuqsaibW3sIVjZQtEM/jWtOHX4Nk93abGE=", "narHash": "sha256-HaibwlWH5LuqsaibW3sIVjZQtEM/jWtOHX4Nk93abGE=",
@ -586,7 +521,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_7": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1701718080, "lastModified": 1701718080,
"narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=", "narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=",
@ -627,11 +562,11 @@
"hyprland": "hyprland", "hyprland": "hyprland",
"hyprpicker": "hyprpicker", "hyprpicker": "hyprpicker",
"nixSuper": "nixSuper", "nixSuper": "nixSuper",
"nixpkgs": "nixpkgs_7", "nixpkgs": "nixpkgs_4",
"nuScripts": "nuScripts", "nuScripts": "nuScripts",
"themes": "themes", "themes": "themes",
"tools": "tools", "tools": "tools",
"zls": "zls" "zls": "zls_2"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {
@ -781,9 +716,12 @@
}, },
"zig": { "zig": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_2" "nixpkgs": [
"ghostty",
"nixpkgs-stable"
]
}, },
"locked": { "locked": {
"lastModified": 1701908568, "lastModified": 1701908568,
@ -801,11 +739,11 @@
}, },
"zig-overlay": { "zig-overlay": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_3", "flake-compat": "flake-compat_2",
"flake-utils": "flake-utils_4", "flake-utils": "flake-utils_3",
"nixpkgs": [ "nixpkgs": [
"ghostty", "ghostty",
"zls-master", "zls",
"nixpkgs" "nixpkgs"
] ]
}, },
@ -825,8 +763,8 @@
}, },
"zig-overlay_2": { "zig-overlay_2": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_5", "flake-compat": "flake-compat_4",
"flake-utils": "flake-utils_6", "flake-utils": "flake-utils_5",
"nixpkgs": [ "nixpkgs": [
"zls", "zls",
"nixpkgs" "nixpkgs"
@ -848,7 +786,33 @@
}, },
"zls": { "zls": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_5", "flake-utils": "flake-utils_2",
"gitignore": "gitignore",
"langref": "langref",
"nixpkgs": [
"ghostty",
"nixpkgs-stable"
],
"zig-overlay": "zig-overlay"
},
"locked": {
"lastModified": 1701900945,
"narHash": "sha256-2pzwA0N2FRaWvApuNd32asa9UCaUY7N3MU1WLj9wZ3Q=",
"owner": "zigtools",
"repo": "zls",
"rev": "287156eb15f468d6880169b61bbf89c8ae586df6",
"type": "github"
},
"original": {
"owner": "zigtools",
"ref": "master",
"repo": "zls",
"type": "github"
}
},
"zls_2": {
"inputs": {
"flake-utils": "flake-utils_4",
"gitignore": "gitignore_2", "gitignore": "gitignore_2",
"langref": "langref_2", "langref": "langref_2",
"nixpkgs": [ "nixpkgs": [
@ -869,29 +833,6 @@
"repo": "zls", "repo": "zls",
"type": "github" "type": "github"
} }
},
"zls-master": {
"inputs": {
"flake-utils": "flake-utils_3",
"gitignore": "gitignore",
"langref": "langref",
"nixpkgs": "nixpkgs_3",
"zig-overlay": "zig-overlay"
},
"locked": {
"lastModified": 1701900945,
"narHash": "sha256-2pzwA0N2FRaWvApuNd32asa9UCaUY7N3MU1WLj9wZ3Q=",
"owner": "zigtools",
"repo": "zls",
"rev": "287156eb15f468d6880169b61bbf89c8ae586df6",
"type": "github"
},
"original": {
"owner": "zigtools",
"ref": "master",
"repo": "zls",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -40,7 +40,7 @@
}; };
ghostty = { ghostty = {
url = "git+ssh://git@github.com/RGBCube/Ghostty"; url = "git+ssh://git@github.com/RGBCube/GHostty";
}; };
ghosttyModule = { ghosttyModule = {

View file

@ -1,4 +1,4 @@
{ ulib, pkgs, upkgs, theme, ... }: with ulib; { lib, ulib, pkgs, upkgs, theme, ... }: with ulib;
graphicalConfiguration { graphicalConfiguration {
programs.nushell.environmentVariables.TERMINAL = "ghostty"; programs.nushell.environmentVariables.TERMINAL = "ghostty";
@ -6,6 +6,43 @@ graphicalConfiguration {
programs.ghostty = enabled { programs.ghostty = enabled {
package = upkgs.ghostty; package = upkgs.ghostty;
keybindings = (lib.mapAttrs' (name: value: lib.nameValuePair "ctrl+shift+${name}" value) {
c = "copy_to_clipboard";
v = "paste_from_clipboard";
z = "scroll_to_prompt:-1";
x = "scroll_to_prompt:1";
down = "scroll_page_lines:-1";
j = "scroll_page_lines:-1";
up = "scroll_page_lines:1";
k = "scroll_page_lines:1";
home = "scroll_to_top";
end = "scroll_to_bottom";
plus = "increase_font_size:2";
minus = "decrease_font_size:2";
t = "new_tab";
q = "close_surface";
"1" = "goto_tab:1";
"2" = "goto_tab:2";
"3" = "goto_tab:3";
"4" = "goto_tab:4";
"5" = "goto_tab:5";
"6" = "goto_tab:6";
"7" = "goto_tab:7";
"8" = "goto_tab:8";
"9" = "goto_tab:9";
"0" = "goto_tab:10";
}) // (lib.mapAttrs' (name: value: lib.nameValuePair "ctrl+${name}" value) {
tab = "next_tab";
"shift+tab" = "previous_tab";
});
shellIntegration.enable = false; shellIntegration.enable = false;
settings = with theme; { settings = with theme; {
@ -19,6 +56,8 @@ graphicalConfiguration {
window-decoration = false; window-decoration = false;
keybind = "clear";
config-file = [ config-file = [
(toString (pkgs.writeText "base16-config" ghosttyConfig)) (toString (pkgs.writeText "base16-config" ghosttyConfig))
]; ];