From fe6a6320abe8969831b2a9b82c87ecbc690c9157 Mon Sep 17 00:00:00 2001 From: Emmet Date: Thu, 17 Aug 2023 15:06:00 -0500 Subject: [PATCH] Optimized swayidle --- user/style/stylix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/style/stylix.nix b/user/style/stylix.nix index 9abde9c8..d7ec2cab 100644 --- a/user/style/stylix.nix +++ b/user/style/stylix.nix @@ -60,8 +60,8 @@ in # TODO add stylix colors to swaylock cmd home.file.".swayidle-stylix".text = '' #!/bin/sh - swaylock_cmd='swaylock --indicator-radius 200 --grace 5 --fade-in 0.5 --screenshots --effect-blur 10x10' - swayidle -w timeout 300 "$swaylock_cmd" \ + swaylock_cmd='swaylock --indicator-radius 200 --grace 5 --screenshots --effect-blur 10x10' + swayidle -w timeout 300 "$swaylock_cmd --fade-in 0.5" \ timeout 600 'hyprctl dispatch dpms off' \ resume 'hyprctl dispatch dpms on' \ before-sleep "$swaylock_cmd"