diff --git a/modules/wm/hyprland/config/hypr/hypridle.conf b/modules/wm/hyprland/config/hypr/hypridle.conf new file mode 100644 index 0000000..27431e6 --- /dev/null +++ b/modules/wm/hyprland/config/hypr/hypridle.conf @@ -0,0 +1,10 @@ +general { + lock_cmd = pidof hyprlock || hyprlock +} + +# Turn off screen +listener { + timeout = 300 + on-timeout = loginctl lock-session; hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} diff --git a/modules/wm/hyprland/config/hypr/hyprland.conf b/modules/wm/hyprland/config/hypr/hyprland.conf index 22d2da6..dfd2dee 100644 --- a/modules/wm/hyprland/config/hypr/hyprland.conf +++ b/modules/wm/hyprland/config/hypr/hyprland.conf @@ -7,8 +7,11 @@ $nix = /home/horseman/nix-config ### AUTOSTART ### ################# -exec-once = swaybg -i $nix/misc/wallpaper.png +exec-once = hyprpaper exec-once = eww daemon +exec-once = hypridle +exec-once = systemctl --user start hyprpolkitagent +exec-once = hyprpaper # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: diff --git a/modules/wm/hyprland/default.nix b/modules/wm/hyprland/default.nix index 452ede4..af3c852 100644 --- a/modules/wm/hyprland/default.nix +++ b/modules/wm/hyprland/default.nix @@ -26,7 +26,10 @@ in { brightnessctl eww fortune + hypridle hyprlock + hyprpaper + hyprpolkitagent hyprshot jq networkmanagerapplet