From c5a18cfe355f3d0dabb3035a0531810dc3a19cac Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Mon, 4 Dec 2023 22:29:10 -0500 Subject: [PATCH] working swaylock, idle next --- bin/swaylock-blur | 8 ++++++++ gui/sway/config | 18 +----------------- meta/configs/sway.desktop.yaml | 1 + 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/bin/swaylock-blur b/bin/swaylock-blur index a113f07..770429b 100755 --- a/bin/swaylock-blur +++ b/bin/swaylock-blur @@ -1,4 +1,12 @@ #!/usr/bin/env bash +# +# +# Dependancies: +# imagemagick +# swaylock +# grim +# +# inspired by: https://gist.github.com/singulared/7c6d53c1b84fbb7cf22d07c5c7d3e945 LOCK=~/.config/sway/lock.png diff --git a/gui/sway/config b/gui/sway/config index b1e6669..94b81d8 100644 --- a/gui/sway/config +++ b/gui/sway/config @@ -19,11 +19,6 @@ default_border none gaps inner 10 smart_gaps on -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 -# Start XDG autostart .desktop files using dex. See also -# https://wiki.archlinux.org/index.php/XDG_Autostart # setup screens exec_always --no-startup-id kanshi @@ -31,17 +26,6 @@ workspace 1 output DP-2 workspace 2 output DP-3 # exec --no-startup-id dex --autostart --environment i3 -# The combination of xss-lock, nm-applet and pactl is a popular choice, so -# they are included here as an example. Modify as you see fit. - -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock-blur --nofork - -# NetworkManager is the most popular way to manage wireless networks on Linux, -# and nm-applet is a desktop environment-independent system tray GUI for it. -#exec --no-startup-id nm-applet - # loading layout assign [class="st-256color"] 1 assign [class="Brave-browser"] 2 @@ -63,7 +47,7 @@ floating_modifier $mod bindsym $mod+Return exec st # lock the screen -bindsym $mod+q exec swaylock +bindsym $mod+q exec swaylock-blur # kill focused window bindsym $mod+Shift+q kill diff --git a/meta/configs/sway.desktop.yaml b/meta/configs/sway.desktop.yaml index fb58030..76fe621 100644 --- a/meta/configs/sway.desktop.yaml +++ b/meta/configs/sway.desktop.yaml @@ -1,2 +1,3 @@ - link: ~/.config/sway: gui/sway + ~/.local/bin/swaylock-blur: bin/swaylock-blur