From 60eb5e3b5a36d809833d09a187671fde59cda14a Mon Sep 17 00:00:00 2001 From: pancakes Date: Mon, 2 Oct 2023 20:30:00 +1000 Subject: [PATCH] Replace swaylock with swaylock-effects --- install.sh | 2 +- sway/.config/sway/config | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 5d2ab23..ca63046 100755 --- a/install.sh +++ b/install.sh @@ -36,7 +36,7 @@ sudo cp ./greetd.toml /etc/greetd/config.toml sudo systemctl enable greetd # Window Manager -sudo pacman -S --needed --noconfirm brightnessctl fuzzel gammastep grim kanshi mako network-manager-applet python-i3ipc slurp sway swayidle swaylock waybar xdg-desktop-portal-gtk xdg-desktop-portal-wlr +paru -S --needed --noconfirm brightnessctl fuzzel gammastep grim kanshi mako network-manager-applet python-i3ipc slurp sway swayidle swaylock-effects-git waybar xdg-desktop-portal-gtk xdg-desktop-portal-wlr mkdir -p ~/Pictures/Screenshots git clone https://github.com/nicolasavru/swaymonad.git ~/.config/swaymonad diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 132c38f..b7741f7 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -18,10 +18,11 @@ exec cp -f ~/Pictures/Wallpapers/$(ls ~/Pictures/Wallpapers -b | shuf -n 1) ~/.w output * bg ~/.wallpaper fill # Idle configuration +set $lock_cmd swaylock -fF -i ~/.wallpaper -s fill --clock --effect-blur 10x1 --indicator exec swayidle -w \ - timeout 300 'swaylock -fF -i ~/.wallpaper -s fill' \ + timeout 300 '$lock_cmd --grace 300' \ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ - before-sleep 'swaylock -fF -i ~/.wallpaper -s fill' + before-sleep '$lock_cmd' # Input configuration # You can get the names of your inputs by running: swaymsg -t get_inputs @@ -61,7 +62,7 @@ bindsym Mod4+f exec $term ranger bindsym Control+Shift+Escape exec $term btop # Lock screen -bindsym Mod4+Shift+Escape exec swaylock -fF -i ~/.wallpaper -s fill +bindsym Mod4+Shift+Escape exec $lock_cmd set $grimdir GRIM_DEFAULT_DIR=~/Pictures/Screenshots # Full screenshot