1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-09 03:56:04 +01:00
home-manager/tests/modules/services/labwc/labwc-rc.nix
Austin Horstman 06c1392ca8 tests: implement auto importing for modules
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

81 lines
1.8 KiB
Nix

{
wayland.windowManager.labwc = {
enable = true;
package = null;
rc = {
theme = {
name = "nord";
cornerRadius = 8;
font = {
"@name" = "FiraCode";
"@place" = "";
"@size" = "11";
};
};
mouse = {
default = { };
context = {
"@name" = "Root";
mousebind = [
{
"@button" = "Right";
"@action" = "Press";
action = {
"@name" = "ShowMenu";
"@menu" = "some-custom-menu";
};
}
];
};
};
keyboard = {
default = true;
keybind = [
{
"@key" = "W-Return";
action = {
"@command" = "alacritty";
"@name" = "Execute";
};
}
{
"@key" = "W-Esc";
action = {
"@name" = "Execute";
"@command" = "foot";
};
}
{
"@key" = "W-1";
action = {
"@to" = "1";
"@name" = "GoToDesktop";
};
}
];
};
desktops = {
"@number" = 10;
};
};
extraConfig = ''
<!-- ExtraConfig -->
<tabletTool motion="absolute" relativeMotionSensitivity="1.0" />
<libinput>
<device category="default">
<naturalScroll></naturalScroll>
<leftHanded></leftHanded>
<pointerSpeed></pointerSpeed>
<accelProfile></accelProfile>
</device>
</libinput>
'';
};
nmt.script = ''
labwcConfig=home-files/.config/labwc/rc.xml
assertFileExists "$labwcConfig"
assertFileContent "$labwcConfig" "${./rc.xml}"
'';
}