From 6331dbcbe31c40ecc25d725916a7409474db3676 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Fri, 20 Feb 2026 17:36:22 +0100 Subject: Modify hyprlock style and colors mostly --- configure.yml | 1 - roles/hyprland/templates/hyprlock.conf.j2 | 22 +++++++++++++++++++--- roles/hyprtheme/templates/theme/hyprlock.conf.j2 | 1 + 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/configure.yml b/configure.yml index c0662529..dddee8d3 100644 --- a/configure.yml +++ b/configure.yml @@ -39,7 +39,6 @@ - role: "obsidian" - role: "nvidia_gtx1060" - role: "steam" - - role: "waybar" - role: "hyprland" post_tasks: - name: "Reboot if required" diff --git a/roles/hyprland/templates/hyprlock.conf.j2 b/roles/hyprland/templates/hyprlock.conf.j2 index 95d063a9..f2da8ec3 100644 --- a/roles/hyprland/templates/hyprlock.conf.j2 +++ b/roles/hyprland/templates/hyprlock.conf.j2 @@ -36,11 +36,12 @@ input-field { fail_text = $FAIL ($ATTEMPTS) shadow_passes = 0 - rounding = 50 + rounding = 10 outline_thickness = 2 inner_color = $inner_color outer_color = $outer_color check_color = $check_color + capslock_color = $capslock_color size = 20%, 3% halign = center @@ -77,7 +78,7 @@ label { label { monitor = text = $LAYOUT - font_size = 12 + font_size = 16 font_family = $font color = $font_color @@ -85,7 +86,22 @@ label { halign = left valign = top - position = 10, -10 + position = 16, -16 +} + +# Capslock indicator +label { + monitor = + text = cmd[update:1000] cat /sys/class/leds/*::capslock/brightness |\ + grep -q 1 && echo "Capslock On" || echo "Capslock Off" + + font_size = 16 + font_family = $font + color = $font_color + + halign = left + valign = top + position = 16, -48 } # Reboot diff --git a/roles/hyprtheme/templates/theme/hyprlock.conf.j2 b/roles/hyprtheme/templates/theme/hyprlock.conf.j2 index 13130d0a..d284dba5 100644 --- a/roles/hyprtheme/templates/theme/hyprlock.conf.j2 +++ b/roles/hyprtheme/templates/theme/hyprlock.conf.j2 @@ -8,3 +8,4 @@ $inner_color = rgba({{ hex_to_rgb(background) }}, 0.8) $outer_color = rgba({{ hex_to_rgb(accent) }}, 1.0) $font_color = rgba({{ hex_to_rgb(foreground) }}, 1.0) $check_color = rgba({{ hex_to_rgb(foreground) }}, 1.0) +$capslock_color = rgba({{ hex_to_rgb(color11) }}, 1.0) -- cgit v1.2.3