🧰 Styled Hyprlock

- Commented out listener in Hypridle that caused a bug?
- Activated btop
This commit is contained in:
Martin Berg Alstad 2024-12-31 17:24:33 +01:00
parent 59892a5981
commit 51b30405c5
Signed by: martials
GPG Key ID: A3824877B269F2E2
5 changed files with 15 additions and 24 deletions

View File

@ -137,8 +137,8 @@
qt.enable = true; qt.enable = true;
# Enable OpenGL
hardware = { hardware = {
# Enable OpenGL
graphics.enable = true; graphics.enable = true;
nvidia = { nvidia = {
# Required # Required

View File

@ -10,9 +10,12 @@
]; ];
home.file.".config/hypr/hyprland.conf".source = ./hyprland.conf; home.file.".config/hypr/hyprland.conf".source = ./hyprland.conf;
programs.kitty = { programs = {
settings = { btop.enable = true;
window_padding_width = 10; kitty = {
settings = {
window_padding_width = 10;
};
}; };
}; };
} }

View File

@ -7,19 +7,19 @@
general = { general = {
after_sleep_cmd = "hyprctl dispatch dpms on"; after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false; ignore_dbus_inhibit = false;
lock_cmd = "hyprlock"; lock_cmd = "pidof hyprlock || hyprlock"; # Avoid running multiple instances of hyprlock
}; };
listener = [ listener = [
{ {
timeout = 900; # Seconds timeout = 900; # 15 min
on-timeout = "hyprlock"; on-timeout = "hyprlock";
} }
{ # {
timeout = 1200; # timeout = 1200;
on-timeout = "hyprctl dispatch dpms off"; # on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on"; # on-resume = "hyprctl dispatch dpms on";
} # }
]; ];
}; };
}; };

View File

@ -1,8 +1,6 @@
{ lib, ... }: { lib, ... }:
{ {
home.file.".face.png".source = ./face.png;
# TODO style face and wallpaper
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = { settings = {
@ -59,16 +57,6 @@
} }
]; ];
# USER AVATAR
image = {
path = "~/.face.png";
size = 100;
border_color = "$accent";
position = "0, 75";
halign = "center";
valign = "center";
};
# INPUT FIELD # INPUT FIELD
input-field = { input-field = {
size = "300, 60"; size = "300, 60";
@ -86,7 +74,7 @@
fail_color = lib.mkDefault "$red"; fail_color = lib.mkDefault "$red";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
capslock_color = lib.mkDefault "$yellow"; capslock_color = lib.mkDefault "$yellow";
position = "0, -47"; position = "0, -20%";
halign = "center"; halign = "center";
valign = "center"; valign = "center";
}; };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB