feat: lock screen
This commit is contained in:
parent
f6eaa0ca28
commit
9a7b32130d
1 changed files with 45 additions and 3 deletions
|
|
@ -7,10 +7,12 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
hex = color: builtins.substring 1 6 color;
|
||||||
|
|
||||||
mkHyprTheme = palette: ''
|
mkHyprTheme = palette: ''
|
||||||
general {
|
general {
|
||||||
col.active_border = rgb(${builtins.substring 1 6 palette.fg})
|
col.active_border = rgb(${hex palette.fg})
|
||||||
col.inactive_border = rgb(${builtins.substring 1 6 palette.bg})
|
col.inactive_border = rgb(${hex palette.bg})
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -67,7 +69,7 @@ in
|
||||||
splash = false
|
splash = false
|
||||||
'';
|
'';
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
xdg.configFile."hypr/hyprlock.conf".text = let c = config.colors; in ''
|
||||||
general {
|
general {
|
||||||
hide_cursor = true
|
hide_cursor = true
|
||||||
grace = 0
|
grace = 0
|
||||||
|
|
@ -81,6 +83,46 @@ in
|
||||||
animations {
|
animations {
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = $TIME
|
||||||
|
font_size = 64
|
||||||
|
font_family = Berkeley Mono
|
||||||
|
color = rgb(${hex c.fg})
|
||||||
|
position = 0, 200
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[86400] date '+%A, %d %b'
|
||||||
|
font_size = 20
|
||||||
|
font_family = Berkeley Mono
|
||||||
|
color = rgb(${hex c.fgAlt})
|
||||||
|
position = 0, 120
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
input-field {
|
||||||
|
monitor =
|
||||||
|
size = 300, 50
|
||||||
|
outline_thickness = 2
|
||||||
|
dots_size = 0.25
|
||||||
|
dots_spacing = 0.3
|
||||||
|
dots_center = true
|
||||||
|
outer_color = rgb(${hex c.border})
|
||||||
|
inner_color = rgb(${hex c.bgAlt})
|
||||||
|
font_color = rgb(${hex c.fg})
|
||||||
|
font_family = Berkeley Mono
|
||||||
|
fade_on_empty = true
|
||||||
|
placeholder_text =
|
||||||
|
position = 0, -20
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
xdg.configFile."hypr/hypridle.conf".text = ''
|
xdg.configFile."hypr/hypridle.conf".text = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue