diff --git a/ansible/inventory/group_vars/desktop.yml b/ansible/inventory/group_vars/desktop.yml index b9ee76d..7b99786 100644 --- a/ansible/inventory/group_vars/desktop.yml +++ b/ansible/inventory/group_vars/desktop.yml @@ -210,6 +210,10 @@ desktop_sway_dotfiles: src: .config/foot/ dest: .config/foot/ mode: preserve + - name: gtklock config + src: .config/gtklock/ + dest: .config/gtklock/ + mode: preserve desktop_flatpak_packages: - be.alexandervanhee.gradia diff --git a/ansible/inventory/group_vars/void.yml b/ansible/inventory/group_vars/void.yml index 534428b..e187b72 100644 --- a/ansible/inventory/group_vars/void.yml +++ b/ansible/inventory/group_vars/void.yml @@ -160,6 +160,7 @@ desktop_sway_packages: - flameshot - foot - foot-terminfo + - gtklock - grim - kanshi - rofi @@ -167,7 +168,6 @@ desktop_sway_packages: - swayfx - swaybg - swayidle - - swaylock - SwayOSD - Waybar - wl-clipboard diff --git a/dotfiles/desktop/.config/gtklock/config.ini b/dotfiles/desktop/.config/gtklock/config.ini new file mode 100644 index 0000000..15685c3 --- /dev/null +++ b/dotfiles/desktop/.config/gtklock/config.ini @@ -0,0 +1 @@ +[main] diff --git a/dotfiles/desktop/.config/gtklock/style.css b/dotfiles/desktop/.config/gtklock/style.css new file mode 100644 index 0000000..4ad73cd --- /dev/null +++ b/dotfiles/desktop/.config/gtklock/style.css @@ -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; +} diff --git a/dotfiles/desktop/.config/sway/config b/dotfiles/desktop/.config/sway/config index 79c1395..a00f6c6 100644 --- a/dotfiles/desktop/.config/sway/config +++ b/dotfiles/desktop/.config/sway/config @@ -35,7 +35,7 @@ input * { seat * xcursor_theme Yaru 24 # Outputs -output * bg ~/.config/sway/wallpapers/wallpaper-161664.jpg center +output * bg ~/.config/sway/wallpapers/darth-vader-sam.jpg center # SwayFX effects corner_radius 8 diff --git a/dotfiles/desktop/.config/sway/scripts/lockscreen b/dotfiles/desktop/.config/sway/scripts/lockscreen index 789bc96..c823d96 100755 --- a/dotfiles/desktop/.config/sway/scripts/lockscreen +++ b/dotfiles/desktop/.config/sway/scripts/lockscreen @@ -1,17 +1,11 @@ #!/bin/sh -exec swaylock \ - --image "$HOME/.config/sway/wallpapers/maxresdefault.jpg" \ - --scaling fill \ - --indicator-radius 100 \ - --ring-color 2f4058 \ - --inside-color 1f1f28 \ - --line-color 00000000 \ - --separator-color 3a3a46 \ - --key-hl-color 6daeea \ - --bs-hl-color c7162b \ - --ring-ver-color 4a90d9 \ - --inside-ver-color 1f1f28 \ - --ring-wrong-color c7162b \ - --inside-wrong-color 1f1f28 \ - --text-color d0d0d0 +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" diff --git a/dotfiles/desktop/.config/sway/wallpapers/darth-vader-sam.jpg b/dotfiles/desktop/.config/sway/wallpapers/darth-vader-sam.jpg new file mode 100755 index 0000000..22b3f3d Binary files /dev/null and b/dotfiles/desktop/.config/sway/wallpapers/darth-vader-sam.jpg differ