wayland: update hypr* configs

This commit is contained in:
notohh 2024-05-12 23:54:01 -04:00
parent 68404bfbc7
commit 2b5b502192
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 128 additions and 127 deletions

View file

@ -1,7 +1,7 @@
{inputs, ...}: { _: {
imports = [inputs.hyprlock.homeManagerModules.default];
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = {
backgrounds = let backgrounds = let
verticalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle.png"; verticalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle.png";
horizontalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle2.png"; horizontalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle2.png";
@ -99,4 +99,5 @@
} }
]; ];
}; };
};
} }

View file

@ -1,13 +1,12 @@
{ {
inputs,
pkgs, pkgs,
lib, lib,
config, config,
... ...
}: { }: {
imports = [inputs.hypridle.homeManagerModules.default];
services.hypridle = { services.hypridle = {
enable = true; enable = true;
settings = {
ignoreDbusInhibit = false; ignoreDbusInhibit = false;
lockCmd = lib.getExe config.programs.hyprlock.package; lockCmd = lib.getExe config.programs.hyprlock.package;
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session"; beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
@ -18,9 +17,9 @@
} }
{ {
timeout = 460; timeout = 460;
onTimeout = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off"; onTimeout = "${pkgs.systemd}/bin/systemctl suspend";
onResume = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on";
} }
]; ];
}; };
};
} }

View file

@ -1,7 +1,7 @@
{inputs, ...}: { _: {
imports = [inputs.hyprpaper.homeManagerModules.default];
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
settings = {
ipc = true; ipc = true;
splash = false; splash = false;
preloads = [ preloads = [
@ -15,4 +15,5 @@
"DP-3,~/Pictures/wallpapers/sparkle3.png" "DP-3,~/Pictures/wallpapers/sparkle3.png"
]; ];
}; };
};
} }