From d20b99dfd247e6c218e631046fd947ad9b417bc2 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Thu, 27 Jul 2023 16:22:12 +0200 Subject: [PATCH] Better screenlock for hyprland --- dotfiles/.local/bin/screen-lock.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dotfiles/.local/bin/screen-lock.sh b/dotfiles/.local/bin/screen-lock.sh index c54ba59..9cb8d72 100755 --- a/dotfiles/.local/bin/screen-lock.sh +++ b/dotfiles/.local/bin/screen-lock.sh @@ -1,4 +1,5 @@ #!/bin/bash -swayidle -w \ +swayidle \ timeout 300 '/usr/local/bin/swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2' \ - timeout 600 'hyprctl dispatch dpms off' after-resume 'hyprctl dispatch dpms on' before-sleep '/usr/local/bin/swaylock ‐f ‐c 000000' + timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' \ + unlock 'hyprctl dispatch dpms on'