From 26b2bc619092ced65a926b45d3f9a54b2e67b3fb Mon Sep 17 00:00:00 2001 From: tk1rk Date: Wed, 16 Nov 2022 22:33:15 +0100 Subject: [PATCH] Add '.config/swaylock/lockscreen.sh' --- .config/swaylock/lockscreen.sh | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .config/swaylock/lockscreen.sh diff --git a/.config/swaylock/lockscreen.sh b/.config/swaylock/lockscreen.sh new file mode 100644 index 0000000..b36ebcd --- /dev/null +++ b/.config/swaylock/lockscreen.sh @@ -0,0 +1,57 @@ + +#!/bin/sh +# Times the screen off and puts it to background +swayidle \ + timeout 10 'hyprctl dispatch dpms off' \ + resume 'hyprctl dispatch dpms on' & + +# Locks the screen immediately +swaylock \ + --screenshots \ + --clock \ + --indicator-idle-visible \ + --inside-color 282a36 \ + --inside-clear-color 282a36 \ + --inside-ver-color 282a36 \ + --inside-wrong-color 282a36 \ + --key-hl-color bd93f9 \ + --line-color 282a36 \ + --line-clear-color 282a36 \ + --line-ver-color 282a36 \ + --line-wrong-color 282a36 \ + --ring-color 282a36 \ + --ring-clear-color 282a36 \ + --ring-ver-color 282a36 \ + --ring-wrong-color 282a36 \ + --separator-color bd93f9 \ + --text-color bd93f9 \ + --text-clear-color bd93f9 \ + --text-ver-color bd93f9 \ + --text-caps-lock-color bd93f9 \ + --text-wrong-color ff5555 \ + --effect-blur 4x2 \ + --text-clear Cleared \ + --text-caps-lock Maj \ + --text-ver Checking \ + --text-wrong Cheh \ + --bs-hl-color bd93f9 \ + --fade-in 0.5 + +#swaylock +# Kills last background task so idle timer doesn't keep running +kill %% +swaylock \ + --screenshots \ + --clock \ + --indicator \ + --indicator-radius 100 \ + --indicator-thickness 7 \ + --effect-blur 7x5 \ + --effect-vignette 0.5:0.5 \ + --ring-color BD93F9 \ + --key-hl-color 6272A4 \ + --line-color 00000000 \ + --inside-color 00000088 \ + --separator-color 00000000 \ + --grace 2 \ + --fade-in 0.2 \ No newline at end of file