aboutsummaryrefslogtreecommitdiffstats
path: root/hyprland/hyprlock.conf
blob: 575a5049c746144f58017860c5dc4185cb275195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# BACKGROUND
background {
    path = ~/.config/hypr/wallpaper.png
    blur_passes = 1
    contrast = 0.8
    brightness = 0.5
    vibrancy = 0.1
    vibrancy_darkness = 0.0
}

# GENERAL
general {
    no_fade_in = true
    no_fade_out = false
    grace = 0
    ignore_empty_input = true
    hide_cursor = true
    fractional_scaling = 0
}

auth {
    fingerprint:enabled = true
    fingerprint:ready_message = <i>Enter password or scan fingerprint</i>
}

# INPUT FIELD
label {
    text = $FPRINTPROMPT
    color = rgba(255, 255, 255, 0.8)
    font_size = 20
    font_family = Iosevka Nerd Font 
    position = 0, -60
    halign = center
    valign = center
}

# INPUT FIELD
input-field {
    size = 300, 50
    outline_thickness = 3
    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
    dots_center = true
    outer_color = rgb(434e59)
    inner_color = rgb(22282e)
    font_color = rgb(200, 200, 200)
    fade_on_empty = true
    fade_timeout = 2000
    rounding = 0
    font_family = Iosevka Nerd Font
    placeholder_text = <i><span foreground="##cdd6f4">Password</span></i>
    fail_text = $FAIL 
    hide_input = false
    position = 0, -140
    halign = center
    valign = center
}

# FAILED ATTEMPTS
label {
    text = cmd[update:1000] [ ! -z "$ATTEMPTS[]" ] && echo "$ATTEMPTS[] failed attempt(s)"
    color = rgba(255, 160, 6, 0.6)
    # color = rgba(255, 255, 255, 0.8)
    font_size = 20
    font_family = Iosevka Nerd Font 
    position = 0, -200
    halign = center
    valign = center
}

# DATE
label {
    text = cmd[update:1000] echo "$(date +"%A, %d %B %Y")"
    color = rgba(255, 255, 255, 0.7)
    font_size = 40
    font_family = Iosevka Nerd Font ExtraBold
    position = 0, 280
    halign = center
    valign = center
}

# TIME
label {
    text = cmd[update:1000] echo "$(date +"%H:%M")"
    color = rgba(255, 255, 255, 0.8)
    font_size = 120
    font_family = Iosevka Nerd Font ExtraBold
    position = 0, 100
    halign = center
    valign = center
}

# LAYOUT
label {
    text = Layout: $LAYOUT
    color = rgba(255, 255, 255, 0.8)
    font_size = 14
    font_family = Iosevka Nerd Font

    shadow_passes = 1
    shadow_size = 5
    shadow_boost = 1.8

    position = -10, -10
    halign = right
    valign = top
}

# BATTERY
label {
    text = cmd[update:1000] echo "Battery: $(cat /sys/class/power_supply/BAT1/capacity)%"
    color = rgba(255, 255, 255, 0.6)
    font_size = 18
    font_family = Iosevka Nerd Font ExtraBold
    position = 0, 120
    halign = center
    valign = bottom
}

# IDLE INHIBITOR
label {
    text = cmd[update:1000] [[ `~/bin/get-inhibit-idle-status.sh | jq -r .alt` != "running" ]] && echo "Automatic Suspend Inhibited"
    color = rgba(255, 160, 6, 0.6)
    font_size = 14
    font_family = Iosevka Nerd Font ExtraBold
    position = 0, 180
    halign = center
    valign = bottom
}