From 35e64fc0ccef94e29da43dacf2100a89f32e828c Mon Sep 17 00:00:00 2001 From: Josue Zamudio Date: Tue, 27 Oct 2026 18:32:33 -0700 Subject: [PATCH] fix(swaylock): rewrite for vanilla swaylock 1.8.6 The previous file used swaylock-EFFECTS options, which the packaged swaylock ignores. Documents that swaylock reads $XDG_CONFIG_HOME/swaylock/config on every invocation, including hypridle's before_sleep_cmd and the $mod+m keybind. --- .config/swaylock/config | 62 +++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 9 deletions(-) diff --git a/.config/swaylock/config b/.config/swaylock/config index 58f3a9a..1ba9f90 100644 --- a/.config/swaylock/config +++ b/.config/swaylock/config @@ -1,15 +1,59 @@ +# swaylock configuration -- VANILLA swaylock (packaged v1.8.6). +# +# swaylock reads $XDG_CONFIG_HOME/swaylock/config automatically, so this file +# applies to every invocation, including hypridle's before_sleep_cmd and the +# $mod+m keybind. +# +# IMPORTANT: the previous version of this file used swaylock-EFFECTS options +# (clock, timestr, datestr, fade-in, effect-blur, effect-scale and a bare +# `indicator`). The packaged swaylock is vanilla, and each of those lines logs +# swaylock: unrecognized option '--effect-blur=20x2' +# + a full usage dump, then ignores it (verified against v1.8.6). So the file +# was never fatal -- but none of its styling ever applied either, which is why +# the lock screen always looked like a bare `swaylock -c 000000`. Keep only +# names that appear in `swaylock --help` (check: every key here matches one). +# +# Want the blurred background + clock lock screen? Use hyprlock (installed and +# configured at ~/.config/hypr/hyprlock.conf) -- that is what hypridle's +# lock_cmd / 300s listener already call. Or install swaylock-effects from the +# AUR and re-add the effect-* keys. + ignore-empty-password +show-failed-attempts +indicator-caps-lock -clock -timestr=%R -datestr=%a, %e of %B +font=JetBrainsMono Nerd Font Mono +font-size=24 +indicator-radius=110 +indicator-thickness=12 -fade-in=0.2 +color=000000 -#screenshots -effect-blur=20x2 -#effect-greyscale -effect-scale=0.3 +inside-color=00000000 +inside-clear-color=00000000 +inside-ver-color=00000000 +inside-wrong-color=00000000 -indicator +line-color=333333 +line-clear-color=CCCCCC +line-ver-color=999999 +line-wrong-color=FFA14C + +ring-color=333333 +ring-clear-color=CCCCCC +ring-ver-color=999999 +ring-wrong-color=FFA14C + +key-hl-color=CCCCCC +bs-hl-color=FFA14C +separator-color=222222 + +text-color=FFFFFF +text-clear-color=CCCCCC +text-ver-color=FFFFFF +text-wrong-color=FFA14C + +layout-bg-color=00000000 +layout-border-color=00000000 +layout-text-color=CCCCCC