refactor(hyprland): move terminal keybind to ghostty
This commit is contained in:
@@ -12,6 +12,11 @@ in
|
||||
options.modules.desktop.apps.ghostty.enable = lib.mkEnableOption "Ghostty as the desktop terminal";
|
||||
|
||||
config = lib.mkIf config.modules.desktop.apps.ghostty.enable {
|
||||
registry.keybind.${config.networking.hostName}.ghostty = {
|
||||
keys = "SUPER + Return";
|
||||
command = "${pkgs.ghostty}/bin/ghostty";
|
||||
};
|
||||
|
||||
home-manager.users.${user}.home.packages = [ pkgs.ghostty ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,12 +21,6 @@ in
|
||||
options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor";
|
||||
|
||||
config = lib.mkIf config.modules.desktop.session.hyprland.enable {
|
||||
registry.keybind.${config.networking.hostName} = {
|
||||
hyprland-terminal = {
|
||||
keys = "SUPER + Return";
|
||||
command = "ghostty";
|
||||
};
|
||||
};
|
||||
|
||||
# This program integration owns the session, portals, and polkit, launched
|
||||
# through the universal Wayland session manager.
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
{ lib, ... }:
|
||||
{ lib, util, ... }:
|
||||
{
|
||||
checks = [
|
||||
{
|
||||
assertion = util.registry.predicates.uniqueValue (entry: entry.value.keys);
|
||||
message = "Desktop keybinds must use unique key chords.";
|
||||
}
|
||||
];
|
||||
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
|
||||
Reference in New Issue
Block a user