update hyprlock config

This commit is contained in:
end-4 2025-05-09 15:49:11 +02:00
parent 2be5e9063b
commit bbe0641503
3 changed files with 24 additions and 2 deletions

View file

@ -30,6 +30,18 @@ input-field {
valign = center
}
label { # Caps Lock Warning
monitor =
text = cmd[update:250] ${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hyprlock/check-capslock.sh
color = $text_color
font_size = 13
font_family = $font_family
position = 0, -25
halign = center
valign = center
}
label { # Clock
monitor =
text = $TIME
@ -57,8 +69,6 @@ label { # User
monitor =
text =  $USER
color = $text_color
shadow_passes = 1
shadow_boost = 0.35
outline_thickness = 2
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0

View file

@ -0,0 +1,9 @@
#!/bin/env bash
MAIN_KB_CAPS=$(hyprctl devices | grep -B 6 "main: yes" | grep "capsLock" | head -1 | awk '{print $2}')
if [ "$MAIN_KB_CAPS" = "yes" ]; then
echo "Caps Lock active"
else
echo ""
fi

View file

@ -68,6 +68,9 @@ ColumnLayout {
onEditingChanged: {
if (!editing) {
renderLatex()
} else {
console.log("Editing mode enabled", segmentContent)
textArea.text = segmentContent
}
}