diff --git a/bin/swayidle.sh b/bin/swayidle.sh index d374cd2..46946b4 100755 --- a/bin/swayidle.sh +++ b/bin/swayidle.sh @@ -2,6 +2,8 @@ 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" diff --git a/bin/swaylock.sh b/bin/swaylock.sh new file mode 100755 index 0000000..2f8b72c --- /dev/null +++ b/bin/swaylock.sh @@ -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 diff --git a/config/.config/wlogout/layout b/config/.config/wlogout/layout index f5fe8fe..fdd1f98 100644 --- a/config/.config/wlogout/layout +++ b/config/.config/wlogout/layout @@ -1,6 +1,6 @@ { "label" : "lock", - "action" : "swaylock", + "action" : "$HOME/dotfiles/bin/swaylock.sh", "text" : "Lock", "keybind" : "l" }