Switching to swaylock-effects

faster, prettier, more options at the cost of a really long command that
blurs the light of well maybe this should just be a script.
https://github.com/mortie/swaylock-effects
This commit is contained in:
James Patrick 2020-06-27 00:57:32 -04:00
parent 481d1eb80a
commit c766a0ed9f
3 changed files with 17 additions and 7 deletions

View File

@ -3,5 +3,5 @@
Type=Application
Version=1.0
Name=Lock
Exec=swaylock-fancy
Exec=swaylock --screenshots --clock --indicator --indicator-radius 200 --indicator-thickness 5 --effect-greyscale --effect-blur 7x5 --grace 2 --fade-in 1
Terminal=false

View File

@ -12,14 +12,23 @@ rofi -dmenu \
-theme applet \
-p "System" \
-i \
-line-padding 4 <<< $OPTIONS
-line-padding 4 <<< "$OPTIONS"
)"
echo $SELECTED
echo "$SELECTED"
case $SELECTED in
*Lock)
swaylock-fancy ;;
swaylock \
--screenshots \
--clock \
--indicator \
--indicator-radius 200 \
--indicator-thickness 5 \
--effect-greyscale \
--effect-blur 7x5 \
--grace 2 \
--fade-in 1 ;;
*Sleep)
systemctl hibernate ;;
*Logout)
@ -29,6 +38,6 @@ case $SELECTED in
*Restart)
systemctl reboot ;;
*)
echo $SELCTED ;;
echo "$SELCTED" ;;
esac

View File

@ -34,10 +34,11 @@ exec swayidle -w \
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
timeout 285 'light -O && let "a = $(light -G) / 2" && light -S $a '\
resume 'light -I' \
timeout 300 'swaylock-fancy' \
timeout 300 'swaylock --screenshots --clock --indicator --indicator-radius 200 --indicator-thickness 5 --effect-greyscale --effect-blur 7x5 --grace 2 --fade-in 1' \
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock-fancy'
before-sleep 'swaylock --screenshots --clock --indicator --indicator-radius 200 --indicator-thickness 5 --effect-greyscale --effect-blur 7x5 --grace 2 --fade-in 1'
# wob configuration
exec_always {