# vim: set filetype=hyprlang.ansible :
source = ~/.config/hyprtheme/current/hyprlock.conf
# Variables
general {
hide_cursor = false
ignore_empty_input = true
fail_timeout = 5000
}
auth {
fingerprint:enabled = false
}
animations {
enabled = false
}
background {
monitor =
# path = ~/.config/hyprtheme/current/background
color = $color
blur_passes = 3
}
# Password input
input-field {
monitor =
font_family = $font
font_color = $font_color
placeholder_text = Enter Password
fade_on_empty = false
fail_text = $FAIL ($ATTEMPTS)
shadow_passes = 0
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
valign = center
}
# TIME
label {
monitor =
text = $TIME
font_size = 108
font_family = $font
color = $font_color
halign = right
valign = top
position = -30, 0
}
# DATE
label {
monitor =
text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds
font_size = 36
font_family = $font
color = $font_color
halign = right
valign = top
position = -30, -150
}
# Keyboard switcher
label {
monitor =
text = $LAYOUT
font_size = 16
font_family = $font
color = $font_color
onclick = hyprctl switchxkblayout all next
halign = left
valign = top
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
label {
monitor =
text =
font_size = 36
font_family = $font
color = $font_color
onclick = /etc/hypr/scripts/power.sh --reboot
halign = center
valign = center
position = 0, -150
}
# Power off
label {
monitor =
text =
font_size = 36
font_family = $font
color = $font_color
onclick = /etc/hypr/scripts/power.sh --shutdown
halign = center
valign = center
position = -150, -150
}
# Suspend
label {
monitor =
text =
font_size = 36
font_family = $font
color = $font_color
onclick = /etc/hypr/scripts/power.sh --hibernate
halign = center
valign = center
position = 150, -150
}