Files
nixos-config/home-manager/modules/hypr/hyprlock.nix
T

196 lines
4.5 KiB
Nix

{ config, pkgs, ... }:
{
programs.hyprlock = {
enable = true;
extraConfig = ''
$text_color = rgba(ffdad9FF)
$entry_background_color = rgba(40000a11)
$entry_border_color = rgba(ae878755)
$entry_color = rgba(ffdad9FF)
$font_family = Geist Mono 10
$font_family_date = JetBrainsMono Nerd Font 10
$font_material_symbols = Material Symbols Rounded
animations {
bezier = linear, 1, 1, 0, 0
animation = fade, 1, 1.8, linear
}
general {
ignore_empty_input = true
}
auth {
fingerprint:enabled = true
}
background {
color = rgba(181818FF)
path = ${config.home.homeDirectory}/Pictures/wallpaper.png
blur_size = 4
blur_passes = 3
noise = 0.0117
contrast = 1.3000
brightness = 0.8000
vibrancy = 0.2100
vibrancy_darkness = 0.0
}
input-field {
monitor =
size = 250, 50
outline_thickness = 2
dots_size = 0.1
dots_spacing = 0.3
outer_color = $entry_border_color
inner_color = $entry_background_color
font_color = $entry_color
fade_on_empty = true
dots_size = 0.26 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.64 # Scale of dots absolute size, 0.0 - 1.0
dots_center = true
dots_rouding = -1
hide_input = true
# hide_input_base_color = rgba(255, 0, 120)
outline_thickness = 3
rounding = 22
position = 0, -120
valign = bottom
valign = center
}
# Hours
label {
monitor =
text = cmd[update:1000] echo "<b><big> $(date +"%H") </big></b>"
color = $text_color
font_size = 112
font_family = $font_family
shadow_passes = 3
shadow_size = 4
position = 0, 220
halign = center
valign = center
}
# FP
label {
monitor =
text = cmd[update:1000] echo $FPRINTPROMPT
color = $text_color
font_size = 18
font_family = $font_family
shadow_passes = 3
shadow_size = 4
position = -30, 30
halign = right
valign = bottom
}
# Minutes
label {
monitor =
text = cmd[update:1000] echo "<b><big> $(date +"%M") </big></b>"
color = $text_color
font_size = 112
font_family = $font_family
shadow_passes = 3
shadow_size = 4
position = 0, 80
halign = center
valign = center
}
# Today
label {
monitor =
text = cmd[update:18000000] echo "<b><big> "$(date +%A)" </big></b>"
color = $text_color
font_size = 22
font_family = $font_family_date
shadow_passes = 3
shadow_size = 4
position = 0, -10
halign = center
valign = center
}
# Week
label {
monitor =
text = cmd[update:18000000] echo "<b> "$(date +\'%d %b\')" </b>"
color = $text_color
font_size = 18
font_family = $font_family_date
shadow_passes = 3
shadow_size = 4
position = 0, -50
halign = center
valign = center
}
# Degrees
label {
monitor =
text = cmd[update:18000000] echo "<b>Feels like<big> $(curl -s \'wttr.in?format=%t\' | tr -d \'+\') </big></b>"
color = $text_color
font_size = 18
font_family = $font_family
shadow_passes = 3
shadow_size = 4
position = 0, 30
halign = center
valign = bottom
}
label { # User
monitor =
text =  $USER
color = $text_color
shadow_passes = 3
shadow_size = 4
font_size = 18
font_family = $font_family
position = 0, -30
halign = center
valign = top
}
label { # Status bat
monitor =
text = cmd[update:5000] ${config.home.homeDirectory}/.config/hypr/scripts/hyprlock-status.sh
color = $text_color
shadow_passes = 3
shadow_size = 4
font_size = 18
font_family = $font_family
position = 30, -30
halign = left
valign = top
}
'';
};
}