add swaylock.sh script

it uses fork of swaylock called swaylock-effects
This commit is contained in:
2022-06-15 21:24:20 +03:00
parent 7b9ff145f0
commit 75336b5377
3 changed files with 18 additions and 3 deletions

View File

@@ -2,6 +2,8 @@
killall swayidle killall swayidle
cmd="swaylock" cmd="$HOME/dotfiles/bin/swaylock.sh"
swayidle before-sleep $cmd after-resume "swaymsg seat seat0 cursor set 300 300" afterResumeCmd="swaymsg seat seat0 cursor set 300 300"
swayidle before-sleep "$cmd" after-resume "$afterResumeCmd"

13
bin/swaylock.sh Executable file
View File

@@ -0,0 +1,13 @@
#! /bin/bash
swaylock \
--screenshots \
--indicator \
--indicator-radius 100 \
--indicator-thickness 7 \
--clock \
--ring-color ffeced \
--key-hl-color 0291ff \
--effect-blur 7x5 \
--effect-vignette 0.5:0.5 \
--fade-in 0.2

View File

@@ -1,6 +1,6 @@
{ {
"label" : "lock", "label" : "lock",
"action" : "swaylock", "action" : "$HOME/dotfiles/bin/swaylock.sh",
"text" : "Lock", "text" : "Lock",
"keybind" : "l" "keybind" : "l"
} }