diff --git a/modules/desktop/terminal/default'.nix b/modules/desktop/terminal/default'.nix new file mode 100644 index 0000000..659f3e1 --- /dev/null +++ b/modules/desktop/terminal/default'.nix @@ -0,0 +1,13 @@ +{ lib, ... }: +{ + options.my.desktop.terminal.default = { + command = lib.mkOption { + type = lib.types.str; + default = "kitty"; + }; + desktop = lib.mkOption { + type = lib.types.str; + default = "kitty.desktop"; + }; + }; +} diff --git a/modules/desktop/wm/niri/config.nix b/modules/desktop/wm/niri/config.nix index 9bf565c..094421f 100644 --- a/modules/desktop/wm/niri/config.nix +++ b/modules/desktop/wm/niri/config.nix @@ -55,6 +55,7 @@ in binds = lib.mkMerge [ { "Mod+G".spawn = [ config.my.desktop.browser.default.command ]; + "Mod+Return".spawn = [ config.my.desktop.terminal.default.command ]; } (builtins.listToAttrs ( map (n: { diff --git a/modules/desktop/wm/niri/config/binds.kdl b/modules/desktop/wm/niri/config/binds.kdl index 6446084..22388f4 100644 --- a/modules/desktop/wm/niri/config/binds.kdl +++ b/modules/desktop/wm/niri/config/binds.kdl @@ -1,5 +1,4 @@ binds { - Mod+Return { spawn "kitty" "-1"; } Mod+E { spawn "nautilus"; } Ctrl+Alt+Escape { spawn "missioncenter"; }