mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
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>
This commit is contained in:
@@ -210,6 +210,10 @@ desktop_sway_dotfiles:
|
|||||||
src: .config/foot/
|
src: .config/foot/
|
||||||
dest: .config/foot/
|
dest: .config/foot/
|
||||||
mode: preserve
|
mode: preserve
|
||||||
|
- name: gtklock config
|
||||||
|
src: .config/gtklock/
|
||||||
|
dest: .config/gtklock/
|
||||||
|
mode: preserve
|
||||||
|
|
||||||
desktop_flatpak_packages:
|
desktop_flatpak_packages:
|
||||||
- be.alexandervanhee.gradia
|
- be.alexandervanhee.gradia
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ desktop_sway_packages:
|
|||||||
- flameshot
|
- flameshot
|
||||||
- foot
|
- foot
|
||||||
- foot-terminfo
|
- foot-terminfo
|
||||||
|
- gtklock
|
||||||
- grim
|
- grim
|
||||||
- kanshi
|
- kanshi
|
||||||
- rofi
|
- rofi
|
||||||
@@ -167,7 +168,6 @@ desktop_sway_packages:
|
|||||||
- swayfx
|
- swayfx
|
||||||
- swaybg
|
- swaybg
|
||||||
- swayidle
|
- swayidle
|
||||||
- swaylock
|
|
||||||
- SwayOSD
|
- SwayOSD
|
||||||
- Waybar
|
- Waybar
|
||||||
- wl-clipboard
|
- wl-clipboard
|
||||||
|
|||||||
1
dotfiles/desktop/.config/gtklock/config.ini
Normal file
1
dotfiles/desktop/.config/gtklock/config.ini
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[main]
|
||||||
49
dotfiles/desktop/.config/gtklock/style.css
Normal file
49
dotfiles/desktop/.config/gtklock/style.css
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
* {
|
||||||
|
font-family: "NotoSans NF", sans-serif;
|
||||||
|
color: #FFE81F;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
background-color: #00000A;
|
||||||
|
}
|
||||||
|
|
||||||
|
box {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
background-color: rgba(0, 0, 10, 0.6);
|
||||||
|
color: #FFE81F;
|
||||||
|
border: 1px solid #FFE81F;
|
||||||
|
border-radius: 0;
|
||||||
|
padding: 8px 16px;
|
||||||
|
caret-color: #FFE81F;
|
||||||
|
min-width: 320px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry > text {
|
||||||
|
color: #FFE81F;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry:focus {
|
||||||
|
border-color: #FFE81F;
|
||||||
|
box-shadow: 0 0 8px rgba(255, 232, 31, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
entry.error {
|
||||||
|
border-color: #c7162b;
|
||||||
|
box-shadow: 0 0 8px rgba(199, 22, 43, 0.6);
|
||||||
|
color: #c7162b;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
color: #FFE81F;
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
label.error {
|
||||||
|
color: #c7162b;
|
||||||
|
}
|
||||||
@@ -35,7 +35,7 @@ input * {
|
|||||||
seat * xcursor_theme Yaru 24
|
seat * xcursor_theme Yaru 24
|
||||||
|
|
||||||
# Outputs
|
# Outputs
|
||||||
output * bg ~/.config/sway/wallpapers/wallpaper-161664.jpg center
|
output * bg ~/.config/sway/wallpapers/darth-vader-sam.jpg center
|
||||||
|
|
||||||
# SwayFX effects
|
# SwayFX effects
|
||||||
corner_radius 8
|
corner_radius 8
|
||||||
|
|||||||
@@ -1,17 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec swaylock \
|
WALLPAPER="$HOME/.config/sway/wallpapers/maxresdefault.jpg"
|
||||||
--image "$HOME/.config/sway/wallpapers/maxresdefault.jpg" \
|
STYLE_TMP=$(mktemp /tmp/gtklock-XXXXXX.css)
|
||||||
--scaling fill \
|
|
||||||
--indicator-radius 100 \
|
cat "$HOME/.config/gtklock/style.css" > "$STYLE_TMP"
|
||||||
--ring-color 2f4058 \
|
printf '\nwindow { background-image: url("file://%s"); background-size: cover; background-position: center; background-repeat: no-repeat; }\n' \
|
||||||
--inside-color 1f1f28 \
|
"$WALLPAPER" >> "$STYLE_TMP"
|
||||||
--line-color 00000000 \
|
|
||||||
--separator-color 3a3a46 \
|
gtklock --style "$STYLE_TMP"
|
||||||
--key-hl-color 6daeea \
|
rm -f "$STYLE_TMP"
|
||||||
--bs-hl-color c7162b \
|
|
||||||
--ring-ver-color 4a90d9 \
|
|
||||||
--inside-ver-color 1f1f28 \
|
|
||||||
--ring-wrong-color c7162b \
|
|
||||||
--inside-wrong-color 1f1f28 \
|
|
||||||
--text-color d0d0d0
|
|
||||||
|
|||||||
BIN
dotfiles/desktop/.config/sway/wallpapers/darth-vader-sam.jpg
Executable file
BIN
dotfiles/desktop/.config/sway/wallpapers/darth-vader-sam.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 109 KiB |
Reference in New Issue
Block a user