summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-20 17:36:22 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-20 17:36:22 +0100
commit08317dd9f8a12cdea733cd3669eab08a77959838 (patch)
tree3f28ad86be28e609c03fd0aab1764282e8a5e625 /roles
parent198fa8e9cb94527733e09bc1b04c878320079520 (diff)
Modify hyprlock style and colors mostly
Diffstat (limited to 'roles')
-rw-r--r--roles/hyprland/templates/hyprlock.conf.j222
-rw-r--r--roles/hyprtheme/templates/theme/hyprlock.conf.j21
2 files changed, 20 insertions, 3 deletions
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 = <i>$FAIL ($ATTEMPTS)</i>
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)