From c766a0ed9f0be3a8f71fce47f137c0a261e1e69c Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 27 Jun 2020 00:57:32 -0400 Subject: [PATCH] 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 --- rofi/desktop/Lock.desktop | 2 +- rofi/scripts/power_menu | 17 +++++++++++++---- sway/config.d/autostart | 5 +++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/rofi/desktop/Lock.desktop b/rofi/desktop/Lock.desktop index 9e26a9f..0c3d34a 100755 --- a/rofi/desktop/Lock.desktop +++ b/rofi/desktop/Lock.desktop @@ -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 diff --git a/rofi/scripts/power_menu b/rofi/scripts/power_menu index 5f66a9e..6c93d90 100755 --- a/rofi/scripts/power_menu +++ b/rofi/scripts/power_menu @@ -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 diff --git a/sway/config.d/autostart b/sway/config.d/autostart index 99639ed..d043929 100644 --- a/sway/config.d/autostart +++ b/sway/config.d/autostart @@ -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 {