mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:28:11 +09:00
labwc
This commit is contained in:
@@ -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 = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user