refactor(hyprland): restore stable keybind names
This commit is contained in:
@@ -12,7 +12,8 @@ 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}."SUPER + Return" = {
|
||||
registry.keybind.${config.networking.hostName}.ghostty = {
|
||||
keys = "SUPER + Return";
|
||||
action = {
|
||||
kind = "exec";
|
||||
command = "${pkgs.ghostty}/bin/ghostty";
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
settings = {
|
||||
config.general.layout = "dwindle";
|
||||
|
||||
bind = lib.mapAttrsToList (keys: keybind: {
|
||||
bind = lib.mapAttrsToList (_name: keybind: {
|
||||
_args = [
|
||||
keys
|
||||
keybind.keys
|
||||
(lib.generators.mkLuaInline "hl.dsp.exec_cmd(${lib.generators.toLua { } keybind.action.command})")
|
||||
];
|
||||
}) (lib.attrByPath [ config.networking.hostName ] { } config.registry.keybind);
|
||||
|
||||
Reference in New Issue
Block a user