swaylock reads ~/.swaylock/config, $XDG_CONFIG_HOME/swaylock/config and SYSCONFDIR/swaylock/config — never /etc/xdg/, where the generic XDG sweep put it. The config was made effective by seeding it into user homes, but both seeds are conditional, so a machine that pulled no moonarch-git update since swaylock arrived ran with no config at all: no wallpaper, no Catppuccin ring. The config now lives in defaults/etc/swaylock/config and is owned at /etc/swaylock/config, which the package alone makes effective. Home copies still win by search order, so the .install hook retires the pristine ones; an edited copy stays. Upstream swaylock has no blur (effect-blur is swaylock-effects only), so the blur is baked into a second image: wallpaper-blur.jpg, generated with downsample-blur-upsample. Regenerate it when the wallpaper changes. moonarch-doctor gains check_swaylock_config, which names the config file that actually wins and fails when none exists.
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
# ABOUTME: Moonarch default swaylock configuration, Catppuccin Mocha.
|
|
# ABOUTME: Installed to /etc/swaylock/config; callers pass -f themselves.
|
|
#
|
|
# Each line is turned into a --long-option by swaylock, so key=value applies.
|
|
# Colors are rrggbb[aa] without a leading '#'.
|
|
#
|
|
# swaylock searches ~/.swaylock/config, $XDG_CONFIG_HOME/swaylock/config and
|
|
# SYSCONFDIR/swaylock/config (= /etc/swaylock/config) — never /etc/xdg/. This
|
|
# file therefore ships to /etc/swaylock/, not to /etc/xdg/swaylock/. A user copy
|
|
# in ~/.config/swaylock/config still wins, since the home paths are searched first.
|
|
|
|
# Blurred variant of the default wallpaper. swaylock has no blur of its own —
|
|
# effect-blur exists only in the swaylock-effects fork — so the blur is baked
|
|
# into the image at build time.
|
|
image=/usr/share/moonarch/wallpaper-blur.jpg
|
|
scaling=fill
|
|
|
|
font=UbuntuSans Nerd Font
|
|
font-size=20
|
|
|
|
indicator-radius=100
|
|
indicator-thickness=8
|
|
indicator-caps-lock
|
|
show-failed-attempts
|
|
|
|
# Ring: lavender idle, blue while verifying, red on failure, yellow when cleared
|
|
ring-color=b4befe
|
|
ring-ver-color=89b4fa
|
|
ring-wrong-color=f38ba8
|
|
ring-clear-color=f9e2af
|
|
ring-caps-lock-color=f9e2af
|
|
|
|
# Inside of the ring: base with alpha, so the wallpaper stays visible
|
|
inside-color=1e1e2ecc
|
|
inside-ver-color=1e1e2ecc
|
|
inside-wrong-color=1e1e2ecc
|
|
inside-clear-color=1e1e2ecc
|
|
|
|
# Keypress feedback
|
|
key-hl-color=a6e3a1
|
|
bs-hl-color=f38ba8
|
|
caps-lock-key-hl-color=a6e3a1
|
|
caps-lock-bs-hl-color=f38ba8
|
|
|
|
text-color=cdd6f4
|
|
text-ver-color=cdd6f4
|
|
text-wrong-color=f38ba8
|
|
text-clear-color=cdd6f4
|
|
text-caps-lock-color=f9e2af
|
|
|
|
# No separate outline; the ring carries the state color
|
|
line-color=00000000
|
|
separator-color=00000000
|