desktop: terminal: add my.desktop.terminal.default for the niri Mod+Return binding

This commit is contained in:
2026-08-01 17:13:52 +08:00
parent 6a2d25383d
commit 27aaa9d05f
3 changed files with 14 additions and 1 deletions
+13
View File
@@ -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";
};
};
}
+1
View File
@@ -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: {
-1
View File
@@ -1,5 +1,4 @@
binds {
Mod+Return { spawn "kitty" "-1"; }
Mod+E { spawn "nautilus"; }
Ctrl+Alt+Escape { spawn "missioncenter"; }