From bd55d2fccaf3a03f221c054a221d855606ba1252 Mon Sep 17 00:00:00 2001
From: DerGrumpf
Date: Thu, 27 Mar 2025 13:11:56 +0100
Subject: [PATCH] Changed: Hyprland Conf
---
home/hyprland/default.nix | 2 --
home/hyprland/hypridle.nix | 22 +++++++++++++++++++++-
home/hyprland/hyprland.nix | 3 +++
home/hyprland/hyprlock.nix | 2 +-
home/hyprland/hyprpaper.nix | 1 +
5 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix
index bddaabf..b2d8192 100644
--- a/home/hyprland/default.nix
+++ b/home/hyprland/default.nix
@@ -8,6 +8,4 @@
../rofi # App Launcher
];
- # You might want to set environment variables for Wayland
- wayland.displayProtocols = [ "wayland" "x11" ];
}
diff --git a/home/hyprland/hypridle.nix b/home/hyprland/hypridle.nix
index dd87a59..3c11cc4 100644
--- a/home/hyprland/hypridle.nix
+++ b/home/hyprland/hypridle.nix
@@ -7,6 +7,26 @@
];
# Hypridle configuration
- services.hypridle.enable = true;
+ services.hypridle = {
+ enable = true;
+ settings = {
+ general = {
+ after_sleep_cmd = "hyprctl dispatch dpms on";
+ ignore_dbus_inhibit = false;
+ lock_cmd = "hyprlock";
+ };
+ listener = [
+ {
+ timeout = 300;
+ on-timeout = "hyprlock";
+ }
+ {
+ timeout = 600;
+ on-timeout = "hyprctl dispatch dpms off";
+ on-resume = "hyprctl dispatch dpms on";
+ }
+ ];
+ };
+ };
}
diff --git a/home/hyprland/hyprland.nix b/home/hyprland/hyprland.nix
index 1dc8141..f93fcb9 100644
--- a/home/hyprland/hyprland.nix
+++ b/home/hyprland/hyprland.nix
@@ -45,6 +45,9 @@ in
"xdg-desktop-autostart.target"
];
+ # You might want to set environment variables for Wayland
+ wayland.displayProtocols = [ "wayland" "x11" ];
+
wayland.windowManager.hyprland = {
inherit package;
enable = true;
diff --git a/home/hyprland/hyprlock.nix b/home/hyprland/hyprlock.nix
index 4a081c4..056bb7e 100644
--- a/home/hyprland/hyprlock.nix
+++ b/home/hyprland/hyprlock.nix
@@ -7,6 +7,6 @@
];
# Hyprlock configuration
- services.hyprlock.enable = true;
+ programs.hyprlock.enable = true;
}
diff --git a/home/hyprland/hyprpaper.nix b/home/hyprland/hyprpaper.nix
index c7503db..72af29a 100644
--- a/home/hyprland/hyprpaper.nix
+++ b/home/hyprland/hyprpaper.nix
@@ -15,6 +15,7 @@
# Hyprpaper configuration
services.hyprpaper.enable = true;
services.hyprpaper.settings = {
+ preload = "Pictures/Wallpapers/girl.png";
wallpaper = "Pictures/Wallpapers/girl.png";
};