118 lines
3.2 KiB
Nix
118 lines
3.2 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.hyprlock = {
|
|
enable = true;
|
|
settings = {
|
|
background = {
|
|
monitor = "";
|
|
path = "$HOME/downloads/wallpaper/kill-my-firstborn/astronaut-pink-blue.png"; # only png supported for now
|
|
# color = $color1
|
|
|
|
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
|
blur_size = 4;
|
|
blur_passes = 3; # 0 disables blurring
|
|
noise = 0.0117;
|
|
contrast = 1.3000; # Vibrant!!!
|
|
brightness = 0.8000;
|
|
vibrancy = 0.2100;
|
|
vibrancy_darkness = 0.0;
|
|
};
|
|
label = [
|
|
{
|
|
# Hours
|
|
monitor = "";
|
|
text = ''cmd[update:1000] echo "<b><big> $(date +"%H") </big></b>"'';
|
|
color = "rgb(255, 255, 255, 1)";
|
|
font_size = 112;
|
|
font_family = "Geist Mono 10";
|
|
shadow_passes = 3;
|
|
shadow_size = 4;
|
|
|
|
position = "0, 240";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
|
|
{
|
|
# Minutes
|
|
monitor = "";
|
|
text = ''cmd[update:1000] echo "<b><big> $(date +"%M") </big></b>"'';
|
|
color = "rgb(255, 255, 255, 1)";
|
|
font_size = 112;
|
|
font_family = "Geist Mono 10";
|
|
shadow_passes = 3;
|
|
shadow_size = 4;
|
|
|
|
position = "0, 120";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
|
|
# Today
|
|
{
|
|
monitor = "";
|
|
text = ''cmd[update:18000000] echo "<b><big> "$(date +'%A')" </big></b>"'';
|
|
color = "rgb(255, 255, 255, 1)";
|
|
font_size = 22;
|
|
font_family = "JetBrainsMono Nerd Font 10";
|
|
|
|
position = "0, 30";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
|
|
# Week
|
|
{
|
|
monitor = "";
|
|
text = ''cmd[update:18000000] echo "<b> "$(date +'%d %b')" </b>"'';
|
|
color = "rgb(255, 255, 255, 1)";
|
|
font_size = 18;
|
|
font_family = "JetBrainsMono Nerd Font 10";
|
|
|
|
position = "0, 6";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
|
|
{
|
|
# Degrees
|
|
monitor = "";
|
|
# get temperature in Brisbane
|
|
text = ''cmd[update:18000000] echo "<b>Feels like $(curl -s 'wttr.in/bne?format=%t' | tr -d '+')</b>"'';
|
|
color = "rgb(255, 255, 255, 1)";
|
|
font_size = 18;
|
|
font_family = "Geist Mono 10";
|
|
|
|
position = "0, 40";
|
|
halign = "center";
|
|
valign = "bottom";
|
|
}
|
|
];
|
|
|
|
input-field = {
|
|
monitor = "";
|
|
size = "300, 50";
|
|
outline_thickness = 3;
|
|
|
|
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;
|
|
|
|
rounding = 22;
|
|
outer_color = "rgb(0, 0, 0, 0)";
|
|
inner_color = "rgb(100, 114, 125, 0.1)";
|
|
font_color = "rgb(200, 200, 200)";
|
|
fade_on_empty = true;
|
|
placeholder_text = "<i>Password...</i>"; # Text rendered in the input box when it's empty.
|
|
|
|
position = "0, 120";
|
|
halign = "center";
|
|
valign = "bottom";
|
|
};
|
|
};
|
|
};
|
|
}
|