Files
infra/dotfiles/desktop/.config/sway/scripts/lockscreen
Fabio Scotto di Santolo 6014354c8f sway: replace swaylock with gtklock, Star Wars theme lockscreen
Switch lockscreen from swaylock to gtklock. CSS styled with Star Wars
yellow (#FFE81F) on near-black background, cover-scaled wallpaper injected
at runtime via temp CSS to avoid path expansion issues in gtklock config.
Update sway background wallpaper to darth-vader-sam.jpg.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 11:15:13 +02:00

12 lines
396 B
Bash
Executable File

#!/bin/sh
WALLPAPER="$HOME/.config/sway/wallpapers/maxresdefault.jpg"
STYLE_TMP=$(mktemp /tmp/gtklock-XXXXXX.css)
cat "$HOME/.config/gtklock/style.css" > "$STYLE_TMP"
printf '\nwindow { background-image: url("file://%s"); background-size: cover; background-position: center; background-repeat: no-repeat; }\n' \
"$WALLPAPER" >> "$STYLE_TMP"
gtklock --style "$STYLE_TMP"
rm -f "$STYLE_TMP"