update tlp and bar

This commit is contained in:
dim
2025-07-04 14:21:21 +07:00
parent ac8bc15318
commit b84b427fca
28 changed files with 730 additions and 655 deletions

View File

@@ -2,88 +2,98 @@
{ config, ... }:
let
foreground = "rgba(216, 222, 233, 0.70)";
imageStr = "screenshow"; # toString config.stylix.image;
font = config.stylix.fonts.serif.name;
imageStr = toString config.stylix.image;
font = config.stylix.fonts.sansSerif.name;
in {
programs.hyprlock = {
enable = true;
settings = {
general = {
grace = 5;
grace = 3;
no_fade_in = false;
disable_loading_bar = false;
};
# # BACKGROUND
# background = {
# monitor = "";
# path = imageStr;
# blur_passes = 0;
# contrast = 0.8916;
# brightness = 0.7172;
# vibrancy = 0.1696;
# vibrancy_darkness = 0.0;
# };
#
# label = [
# {
# # Day-Month-Date
# monitor = "";
# text = ''cmd[update:1000] echo -e "$(date +"%A, %B %d")"'';
# color = foreground;
# font_size = 28;
# font_family = font + " Bold";
# position = "0, 490";
# halign = "center";
# valign = "center";
# }
# # Time
# {
# monitor = "";
# text = ''cmd[update:1000] echo "<span>$(date +"%I:%M")</span>"'';
# color = foreground;
# font_size = 160;
# font_family = "steelfish outline regular";
# position = "0, 370";
# halign = "center";
# valign = "center";
# }
# # USER
# {
# monitor = "";
# text = " $USER";
# color = foreground;
# 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 = font + " Bold";
# position = "0, -180";
# 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 = foreground;
# fade_on_empty = false;
# font_family = font + " Bold";
# placeholder_text = "<i>🔒 Enter Password</i>";
# hide_input = false;
# position = "0, -250";
# halign = "center";
# valign = "center";
# }];
background = {
path = "screenshot";
blur_passes = 3;
blur_size = 6;
noise = 1.17e-2;
contrast = 1.3; # Vibrant!!!
brightness = 0.8;
vibrancy = 0.21;
vibrancy_darkness = 0.0;
};
label = [
# Hour
{
text = ''cmd[update:1000] echo "<b><big> $(date +"%H") </big></b>"'';
color = "#${config.lib.stylix.colors.base06}";
font_size = 112;
font_family = font;
shadow_passes = 2;
shadow_boost = 0.4;
shadow_size = 4;
position = "0, 220";
halign = "center";
valign = "center";
}
{
monitor = "";
text = ''cmd[update:1000] echo "<b><big> $(date +"%M") </big></b>"'';
color = "#${config.lib.stylix.colors.base06}";
font_size = 112;
font_family = font;
shadow_passes = 2;
shadow_boost = 0.4;
shadow_size = 4;
position = "0, 80";
halign = "center";
valign = "center";
}
{
monitor = "";
text =
''cmd[update:18000000] echo "<b><big> "$(date +'%A')" </big></b>"'';
color = "#${config.lib.stylix.colors.base07}";
font_size = 22;
font_family = font;
position = "0, -10";
halign = "center";
valign = "center";
}
{
monitor = "";
text = ''cmd[update:18000000] echo "<b> "$(date +'%d %b')" </b>"'';
color = "#${config.lib.stylix.colors.base07}";
font_size = 18;
font_family = font;
position = "0, -40";
halign = "center";
valign = "center";
}
];
input-field = [{
monitor = "";
size = "250, 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 = "#${config.lib.stylix.colors.base00}";
inner_color = "#${config.lib.stylix.colors.base00}";
font_color = "#${config.lib.stylix.colors.base06}";
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";
}];
};
};
}