mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
labwc
This commit is contained in:
@@ -38,6 +38,28 @@ let
|
||||
"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
|
||||
{
|
||||
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 = {
|
||||
|
||||
keyboard = {
|
||||
@@ -144,7 +182,18 @@ in
|
||||
"@prefix" = "Workspace";
|
||||
};
|
||||
|
||||
mouse.default = true;
|
||||
mouse = {
|
||||
default = true;
|
||||
|
||||
context = {
|
||||
"@name" = "Desktop";
|
||||
|
||||
mousebind = [
|
||||
(showMenu "Right" "root-menu")
|
||||
(showMenu "Middle" "client-list-combined-menu")
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
libinput.device = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user