hyprlock.conf
2153 bytes
1$font = IosevkaTerm NFP
2$color_bg0 = rgba(1d2021ff)
3$color_bg1 = rgba(282828ff)
4$color_fg = rgba(ebdbb2ff)
5$color_red = rgba(fb4934ff)
6$color_yellow = rgba(fabd2fff)
7$color_gray = rgba(7c6f64ff)
8$animation_speed = 1.8
9
10auth {
11 fingerprint {
12 enabled = true
13 }
14}
15
16general {
17 grace = 1
18}
19
20animations {
21 bezier = linear, 1, $animation_speed, 0, 0
22 animation = fade, 1, $animation_speed, linear
23}
24
25background {
26 path = $HOME/pictures/wallpapers/oslo_radhus.png
27}
28
29input-field {
30 font_family = $font
31 font_size = 18
32 placeholder_text = <i>Password...</i>
33 fail_text = $PAMFAIL
34
35 fade_on_empty = false
36 hide_input = false
37
38 dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
39 dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
40 dots_center = true
41
42 size = 400, 40
43 position = 0, 0
44 halign = center
45 valign = center
46 outline_thickness = 2
47 rounding = 4
48
49 outer_color = $color_gray
50 inner_color = $color_bg1
51 font_color = $color_fg
52 check_color = $color_yellow
53 fail_color = $color_red
54}
55
56# User
57label {
58 text = $USER
59 font_family = $font
60 font_size = 24
61 color = $color_fg
62
63 shadow_passes = 2
64 shadow_size = 3
65 shadow_boost = 1.2
66
67 position = 0, -50
68 halign = center
69 valign = center
70}
71
72# Date
73label {
74 text = cmd[update:5000] echo "<b> "$(date +'%A %d')" </b>"
75 font_family = $font
76 font_size = 34
77 color = $color_fg
78
79 shadow_passes = 2
80 shadow_size = 3
81 shadow_boost = 1.2
82
83 position = 0, -250
84 halign = center
85 valign = top
86}
87
88# Battery
89label {
90 text = cmd[update:30000] ~/.config/hypr/scripts/battery.sh
91 font_family = $font
92 font_size = 24
93 color = $color_fg
94
95 shadow_passes = 2
96 shadow_size = 3
97 shadow_boost = 1.2
98
99 position = 0, -315
100 halign = center
101 valign = top
102}
103
104# Time
105label {
106 text = cmd[update:5000] echo "<b><big> $(date +"%H:%M") </big></b>" # 24H
107 font_family = $font
108 font_size = 94
109 color = $color_fg
110
111 shadow_passes = 2
112 shadow_size = 3
113 shadow_boost = 1.2
114
115 position = 0, -100
116 halign = center
117 valign = top
118}