mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
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>
12 lines
396 B
Bash
Executable File
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"
|