Update
This commit is contained in:
100
home/system/hyprland/hyprlock/macos.nix
Normal file
100
home/system/hyprland/hyprlock/macos.nix
Normal file
@@ -0,0 +1,100 @@
|
||||
{ config, ... }: {
|
||||
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
grace = 5;
|
||||
no_fade_in = false;
|
||||
disable_loading_bar = false;
|
||||
};
|
||||
|
||||
# BACKGROUND
|
||||
background = {
|
||||
monitor = "";
|
||||
path = "~/wallpapers/${config.var.theme.wallpaper}";
|
||||
blur_passes = 0;
|
||||
contrast = 0.8916;
|
||||
brightness = 0.8172;
|
||||
vibrancy = 0.1696;
|
||||
vibrancy_darkness = 0.0;
|
||||
};
|
||||
|
||||
label = [
|
||||
{
|
||||
# Day-Month-Date
|
||||
monitor = "";
|
||||
text = ''cmd[update:1000] echo -e "$(date +"%A, %B %d")"'';
|
||||
color = "rgba(216, 222, 233, .7)";
|
||||
font_size = 28;
|
||||
font_family = "SFProDisplay Nerd Font Bold";
|
||||
position = "0, 490";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
# Time
|
||||
{
|
||||
monitor = "";
|
||||
text = ''cmd[update:1000] echo "<span>$(date +"%I:%M")</span>"'';
|
||||
color = "rgba(216, 222, 233, .7)";
|
||||
font_size = 160;
|
||||
font_family = "steelfish outline regular";
|
||||
position = "0, 370";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
# USER
|
||||
{
|
||||
monitor = "";
|
||||
text = " $USER";
|
||||
color = "rgba(216, 222, 233, 0.80)";
|
||||
outline_thickness = 2;
|
||||
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;
|
||||
font_size = 18;
|
||||
font_family = "SFProDisplay Nerd Font Bold";
|
||||
position = "0, -180";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
|
||||
# Foreground
|
||||
# image = [{
|
||||
# monitor = "";
|
||||
# path = "~/.config/hypr/foreground.png";
|
||||
# size = 700;
|
||||
# border_size = 0;
|
||||
# rounding = 0;
|
||||
# rotate = 0;
|
||||
# reload_time = 0;
|
||||
# reload_cmd = "";
|
||||
# position = "0, -66";
|
||||
# halign = "center";
|
||||
# valign = "center";
|
||||
# }];
|
||||
|
||||
# INPUT FIELD
|
||||
input-field = [{
|
||||
monitor = "";
|
||||
size = "300, 60";
|
||||
outline_thickness = 2;
|
||||
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 = "rgba(255, 255, 255, 0)";
|
||||
inner_color = "rgba(255, 255, 255, 0.1)";
|
||||
font_color = "rgb(200, 200, 200)";
|
||||
fade_on_empty = false;
|
||||
font_family = "SFProDisplay Nerd Font Bold";
|
||||
placeholder_text =
|
||||
''<i><span foreground="##ffffff99">🔒 Enter Pass</span></i>'';
|
||||
hide_input = false;
|
||||
position = "0, -250";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
||||
84
home/system/hyprland/hyprlock/old.nix
Normal file
84
home/system/hyprland/hyprlock/old.nix
Normal file
@@ -0,0 +1,84 @@
|
||||
{ config, ... }: {
|
||||
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
grace = 5;
|
||||
no_fade_in = true;
|
||||
no_fade_out = true;
|
||||
};
|
||||
|
||||
background = {
|
||||
monitor = "";
|
||||
path = "$HOME/wallpapers/${config.var.theme.wallpaper}";
|
||||
color = "rgb(${config.var.theme.colors.bg})";
|
||||
|
||||
blur_size = 4;
|
||||
blur_passes = 3;
|
||||
noise = 1.17e-2;
|
||||
contrast = 1.3;
|
||||
brightness = 0.8;
|
||||
vibrancy = 0.21;
|
||||
vibrancy_darkness = 0.0;
|
||||
};
|
||||
|
||||
input-field = [{
|
||||
monitor = "";
|
||||
size = "250, 50";
|
||||
outline_thickness = 3;
|
||||
dots_size = 0.2; # 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;
|
||||
outer_color = "rgb(${config.var.theme.colors.accent})";
|
||||
inner_color = "rgb(${config.var.theme.colors.bg})";
|
||||
font_color = "rgb(${config.var.theme.colors.fg})";
|
||||
fade_on_empty = true;
|
||||
placeholder_text =
|
||||
"Password..."; # Text rendered in the input box when it's empty.
|
||||
position = "0, 80";
|
||||
halign = "center";
|
||||
valign = "bottom";
|
||||
}];
|
||||
|
||||
label = [
|
||||
# Current time
|
||||
{
|
||||
monitor = "";
|
||||
text =
|
||||
''cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>"'';
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = 64;
|
||||
font_family = config.var.theme.font;
|
||||
position = "0, 16";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
# User label
|
||||
{
|
||||
monitor = "";
|
||||
text = ''
|
||||
Hey <span text_transform="capitalize" size="larger">$USER</span>'';
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = config.var.theme.font-size;
|
||||
font_family = config.var.theme.font;
|
||||
position = "0, 0";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
# Type to unlock
|
||||
{
|
||||
monitor = "";
|
||||
text = "Type to unlock!";
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = config.var.theme.font-size;
|
||||
font_family = config.var.theme.font;
|
||||
position = "0, 30";
|
||||
halign = "center";
|
||||
valign = "bottom";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
86
home/system/hyprland/hyprlock/tty.nix
Normal file
86
home/system/hyprland/hyprlock/tty.nix
Normal file
@@ -0,0 +1,86 @@
|
||||
{ config, ... }: {
|
||||
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
grace = 5;
|
||||
no_fade_in = true;
|
||||
no_fade_out = true;
|
||||
};
|
||||
|
||||
background = {
|
||||
monitor = "";
|
||||
color = "rgb(${config.var.theme.colors.bg})";
|
||||
};
|
||||
|
||||
input-field = [{
|
||||
monitor = "";
|
||||
size = "250, 50";
|
||||
outline_thickness = 3;
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.64;
|
||||
dots_center = false;
|
||||
outer_color = "rgb(${config.var.theme.colors.bg})";
|
||||
inner_color = "rgb(${config.var.theme.colors.bg})";
|
||||
font_color = "rgb(${config.var.theme.colors.fg})";
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "";
|
||||
position = "1190, -50";
|
||||
halign = "left";
|
||||
valign = "center";
|
||||
}];
|
||||
|
||||
shape = [{
|
||||
monitor = "";
|
||||
size = "520, 200";
|
||||
color = "rgb(${config.var.theme.colors.bg})";
|
||||
rounding = "0";
|
||||
border_size = "3";
|
||||
border_color = "rgba(255, 255, 255, 1.0)";
|
||||
rotate = "0";
|
||||
xray = "false";
|
||||
position = "0, 0";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}];
|
||||
|
||||
label = [
|
||||
# Current time
|
||||
{
|
||||
monitor = "";
|
||||
text = ''cmd[update:900] echo "time: $(date +"%H:%M:%S")"'';
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = config.var.theme.font-size;
|
||||
font_family = config.var.theme.font-mono;
|
||||
position = "1100, 50";
|
||||
halign = "left";
|
||||
valign = "center";
|
||||
}
|
||||
# Username
|
||||
{
|
||||
monitor = "";
|
||||
text = "username: ${config.var.username}";
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = config.var.theme.font-size;
|
||||
font_family = config.var.theme.font-mono;
|
||||
position = "1100, 0";
|
||||
halign = "left";
|
||||
valign = "center";
|
||||
}
|
||||
# Password
|
||||
{
|
||||
monitor = "";
|
||||
text = "password: ";
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = config.var.theme.font-size;
|
||||
font_family = config.var.theme.font-mono;
|
||||
position = "1100, -50";
|
||||
halign = "left";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user