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 = {
enable = true;
settings = {
backgrounds = let
verticalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle.png";
horizontalWallpaper = "/home/notoh/Pictures/wallpapers/sparkle2.png";
@ -99,4 +99,5 @@
}
];
};
};
}

View file

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

View file

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