From dec99022a97d2e1e201e1c37f1d0d4ba4264a1c2 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sat, 10 Jun 2023 19:02:29 +0200 Subject: [PATCH] swaylock --- home-manager-modules/hyprland/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/home-manager-modules/hyprland/default.nix b/home-manager-modules/hyprland/default.nix index 51154d5..4f5a928 100644 --- a/home-manager-modules/hyprland/default.nix +++ b/home-manager-modules/hyprland/default.nix @@ -21,6 +21,12 @@ with lib; xdg.configFile."hypr/hyprland.conf".text = '' exec-once = waybar & hyprpaper exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY + exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' + exec-once = nm-applet --indicator # Monitors monitor = eDP-1, preferred, auto, auto @@ -164,7 +170,7 @@ with lib; - home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock ]; + home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock swayidle ]; }; }