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:
parent
481d1eb80a
commit
c766a0ed9f
|
@ -3,5 +3,5 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Name=Lock
|
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
|
Terminal=false
|
||||||
|
|
|
@ -12,14 +12,23 @@ rofi -dmenu \
|
||||||
-theme applet \
|
-theme applet \
|
||||||
-p "System" \
|
-p "System" \
|
||||||
-i \
|
-i \
|
||||||
-line-padding 4 <<< $OPTIONS
|
-line-padding 4 <<< "$OPTIONS"
|
||||||
)"
|
)"
|
||||||
|
|
||||||
echo $SELECTED
|
echo "$SELECTED"
|
||||||
|
|
||||||
case $SELECTED in
|
case $SELECTED in
|
||||||
*Lock)
|
*Lock)
|
||||||
swaylock-fancy ;;
|
swaylock \
|
||||||
|
--screenshots \
|
||||||
|
--clock \
|
||||||
|
--indicator \
|
||||||
|
--indicator-radius 200 \
|
||||||
|
--indicator-thickness 5 \
|
||||||
|
--effect-greyscale \
|
||||||
|
--effect-blur 7x5 \
|
||||||
|
--grace 2 \
|
||||||
|
--fade-in 1 ;;
|
||||||
*Sleep)
|
*Sleep)
|
||||||
systemctl hibernate ;;
|
systemctl hibernate ;;
|
||||||
*Logout)
|
*Logout)
|
||||||
|
@ -29,6 +38,6 @@ case $SELECTED in
|
||||||
*Restart)
|
*Restart)
|
||||||
systemctl reboot ;;
|
systemctl reboot ;;
|
||||||
*)
|
*)
|
||||||
echo $SELCTED ;;
|
echo "$SELCTED" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -34,10 +34,11 @@ exec swayidle -w \
|
||||||
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
|
timeout 280 notify-send "鈴 sleeping in 20 seconds" -t 5000 -c 'sleep' \
|
||||||
timeout 285 'light -O && let "a = $(light -G) / 2" && light -S $a '\
|
timeout 285 'light -O && let "a = $(light -G) / 2" && light -S $a '\
|
||||||
resume 'light -I' \
|
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"' \
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
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
|
# wob configuration
|
||||||
exec_always {
|
exec_always {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user