summaryrefslogtreecommitdiffstats
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
commit6331dbcbe31c40ecc25d725916a7409474db3676 (patch)
tree3f28ad86be28e609c03fd0aab1764282e8a5e625
parent9716329f33d99503bcd519e9b4c8adb178febe70 (diff)
Modify hyprlock style and colors mostly
-rw-r--r--configure.yml1
-rw-r--r--roles/hyprland/templates/hyprlock.conf.j222
-rw-r--r--roles/hyprtheme/templates/theme/hyprlock.conf.j21
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 = <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)