This commit is contained in:
2026-08-03 22:56:44 +09:00
parent e4eb1802d7
commit cf088a6998
+50 -1
View File
@@ -38,6 +38,28 @@ let
"then".action."@name" = name; "then".action."@name" = name;
}; };
}; };
menuExecute = label: command: {
inherit label;
action = {
name = "Execute";
inherit command;
};
};
showMenu = button: menu: {
"@button" = button;
"@action" = "Press";
action = {
"@name" = "ShowMenu";
"@menu" = menu;
};
};
menuAction = label: name: {
inherit label;
action.name = name;
};
in in
{ {
home.packages = [ screenshot ]; home.packages = [ screenshot ];
@@ -58,6 +80,22 @@ in
]; ];
}; };
menu = [
{
menuId = "root-menu";
items = [
(menuExecute "ターミナル" "ghostty")
(menuExecute "Vicinae" "vicinae toggle")
(menuExecute "ファイル" "nautilus --new-window")
{ separator = true; }
(menuAction "Reconfigure" "Reconfigure")
(menuAction "Exit" "Exit")
];
}
];
rc = { rc = {
keyboard = { keyboard = {
@@ -144,7 +182,18 @@ in
"@prefix" = "Workspace"; "@prefix" = "Workspace";
}; };
mouse.default = true; mouse = {
default = true;
context = {
"@name" = "Desktop";
mousebind = [
(showMenu "Right" "root-menu")
(showMenu "Middle" "client-list-combined-menu")
];
};
};
libinput.device = [ libinput.device = [
{ {