wip: more progress
This commit is contained in:
@@ -23,7 +23,10 @@
|
|||||||
# ../../overlays.nix
|
# ../../overlays.nix
|
||||||
# ];
|
# ];
|
||||||
modules = {
|
modules = {
|
||||||
Hyprland.enable = true;
|
Hyprland = {
|
||||||
|
enable = true;
|
||||||
|
suspend-on-hibernate = true;
|
||||||
|
};
|
||||||
quickshell.enable = true;
|
quickshell.enable = true;
|
||||||
# chromium.enable = true;
|
# chromium.enable = true;
|
||||||
wivrn.enable = true;
|
wivrn.enable = true;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ in
|
|||||||
];
|
];
|
||||||
options.modules.Hyprland = {
|
options.modules.Hyprland = {
|
||||||
enable = lib.mkEnableOption "Hyprland";
|
enable = lib.mkEnableOption "Hyprland";
|
||||||
|
suspend-on-hibernate = lib.mkEnableOption "soh";
|
||||||
};
|
};
|
||||||
# TODO, split this into its own module;
|
# TODO, split this into its own module;
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -59,7 +60,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.user.services."hyprland_suspend" = {
|
systemd.user.services."hyprland_suspend" = lib.mkIf cfg.suspend-on-hibernate {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Suspend hyprland";
|
Description = "Suspend hyprland";
|
||||||
Before = [
|
Before = [
|
||||||
|
|||||||
@@ -134,9 +134,6 @@
|
|||||||
"$mainMod, mouse:272, movewindow"
|
"$mainMod, mouse:272, movewindow"
|
||||||
"$mainMod, mouse:273, resizewindow"
|
"$mainMod, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
workspace = [
|
|
||||||
"name:2, monitor:DP-3"
|
|
||||||
];
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"match:class .*, suppress_event maximize"
|
"match:class .*, suppress_event maximize"
|
||||||
"match:class ^(gamescope)$, workspace 5"
|
"match:class ^(gamescope)$, workspace 5"
|
||||||
|
|||||||
Reference in New Issue
Block a user