dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

89 lines2009 bytes
1# Lock screen, styled to match the greetd login screen (/etc/greetd/style.css):
2# same bamboo wallpaper, translucent black boxes, #eee text, rounding 10.
3
4$font = NotoSans Nerd Font
5$text = rgb(238, 238, 238)
6$box = rgba(0, 0, 0, 0.2)
7
8general {
9 hide_cursor = false
10 ignore_empty_input = true
11}
12
13animations {
14 enabled = true
15 bezier = ease, 0.25, 0.1, 0.25, 1
16 animation = fadeIn, 1, 4, ease
17 animation = fadeOut, 1, 4, ease
18 animation = inputFieldDots, 1, 2, ease
19}
20
21background {
22 monitor =
23 path = ~/.config/hypr/wallpaper.jpg
24 # Light blur + dim so the text stays readable over the leaves,
25 # like the blurred panel behind the login box.
26 blur_passes = 2
27 blur_size = 5
28 brightness = 0.75
29}
30
31# Clock
32label {
33 monitor = HDMI-A-2
34 text = <span font_weight="light">$TIME</span>
35 color = $text
36 font_family = $font
37 font_size = 110
38 position = 0, 170
39 halign = center
40 valign = center
41}
42
43# Date
44label {
45 monitor = HDMI-A-2
46 text = cmd[update:60000] date +"%A %-d %B"
47 color = rgba(238, 238, 238, 0.75)
48 font_family = $font
49 font_size = 18
50 position = 0, 70
51 halign = center
52 valign = center
53}
54
55# Password box
56input-field {
57 monitor = HDMI-A-2
58 size = 320, 50
59 rounding = 10
60 outline_thickness = 0
61 inner_color = $box
62 outer_color = rgba(0, 0, 0, 0)
63 check_color = rgba(170, 255, 255, 0.5)
64 fail_color = rgba(255, 107, 107, 0.6)
65 capslock_color = rgba(244, 214, 159, 0.5)
66 font_color = $text
67 font_family = $font
68 fade_on_empty = false
69 placeholder_text = <span foreground="##eeeeeeaa">Password</span>
70 fail_text = <span foreground="##eeeeee">$FAIL ($ATTEMPTS)</span>
71 dots_size = 0.22
72 dots_spacing = 0.4
73 dots_center = true
74 position = 0, -60
75 halign = center
76 valign = center
77}
78
79# User
80label {
81 monitor = HDMI-A-2
82 text = $USER
83 color = $text
84 font_family = $font
85 font_size = 15
86 position = 0, 0
87 halign = center
88 valign = center
89}