More nvidia fixes
This commit is contained in:
parent
fd3e5f781f
commit
33f45c4cad
BIN
assets/lockscreen.png
Normal file
BIN
assets/lockscreen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 MiB |
@ -50,6 +50,7 @@
|
||||
claude-code
|
||||
xsel
|
||||
nss.tools
|
||||
ansible
|
||||
|
||||
# System tools
|
||||
btop
|
||||
|
@ -61,6 +61,7 @@
|
||||
"$mod SHIFT, c, togglespecialworkspace, comms"
|
||||
"$mod SHIFT, a, togglespecialworkspace, research"
|
||||
"$mod SHIFT ALT, x, exec, hyprctl dispatch exit"
|
||||
"$mod SHIFT ALT, l, exec, hyprlock"
|
||||
# "SHIFT, Print, exec, grimblast copy area"
|
||||
# "CTRL, Print, exec, grimblast copy active"
|
||||
]
|
||||
|
@ -10,6 +10,7 @@
|
||||
./binds.nix
|
||||
./hyprpaper.nix
|
||||
./hyprpanel.nix
|
||||
./hyprlock.nix
|
||||
./wofi.nix
|
||||
./desktop-env.nix
|
||||
./screenshots.nix
|
||||
@ -25,6 +26,7 @@
|
||||
libnotify
|
||||
# Desktop env
|
||||
hyprpanel
|
||||
hyprpolkitagent
|
||||
# Utility
|
||||
wl-clipboard
|
||||
];
|
||||
@ -97,6 +99,8 @@
|
||||
exec-once = [
|
||||
# "quickshell -c hyprshell"
|
||||
"hyprpanel"
|
||||
"hypridle"
|
||||
"systemctl --user start hyprpolkitagent"
|
||||
];
|
||||
};
|
||||
|
||||
|
87
modules/home/hyprland/hyprlock.nix
Normal file
87
modules/home/hyprland/hyprlock.nix
Normal file
@ -0,0 +1,87 @@
|
||||
{
|
||||
inputs,
|
||||
assets,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
# Variables
|
||||
"$font" = "Monospace";
|
||||
|
||||
general = {
|
||||
hide_cursor = false;
|
||||
};
|
||||
|
||||
animations = {
|
||||
enabled = true;
|
||||
bezier = "linear, 1, 1, 0, 0";
|
||||
animation = [
|
||||
"fadeIn, 1, 5, linear"
|
||||
"fadeOut, 1, 5, linear"
|
||||
"inputFieldDots, 1, 2, linear"
|
||||
];
|
||||
};
|
||||
|
||||
background = lib.mkForce [
|
||||
{
|
||||
monitor = "";
|
||||
path = "/etc/lockscreen.png";
|
||||
blur_passes = 1;
|
||||
}
|
||||
];
|
||||
|
||||
# input-field = [
|
||||
# {
|
||||
# monitor = "";
|
||||
# size = "20%, 5%";
|
||||
# fade_on_empty = false;
|
||||
# rounding = 15;
|
||||
# font_family = "$font";
|
||||
# placeholder_text = "Input password...";
|
||||
# fail_text = "$PAMFAIL";
|
||||
# # Uncomment to use a letter instead of a dot to indicate the typed password
|
||||
# # dots_text_format = "*";
|
||||
# # dots_size = 0.4;
|
||||
# dots_spacing = 0.3;
|
||||
# # Uncomment to use an input indicator that does not show the password length
|
||||
# # hide_input = true;
|
||||
# position = "0, -20";
|
||||
# halign = "center";
|
||||
# valign = "center";
|
||||
# }
|
||||
# ];
|
||||
|
||||
# Labels are defined as a list since there are multiple
|
||||
label = [
|
||||
# TIME
|
||||
{
|
||||
monitor = "";
|
||||
text = "$TIME"; # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
|
||||
font_size = 90;
|
||||
font_family = "$font";
|
||||
position = "-30, 0";
|
||||
halign = "right";
|
||||
valign = "top";
|
||||
}
|
||||
# DATE
|
||||
{
|
||||
monitor = "";
|
||||
text = ''cmd[update:60000] date +"%A, %d %B %Y"''; # update every 60 seconds
|
||||
font_size = 25;
|
||||
font_family = "$font";
|
||||
position = "-30, -150";
|
||||
halign = "right";
|
||||
valign = "top";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
stylix.targets.hyprlock = {
|
||||
useWallpaper = true;
|
||||
};
|
||||
}
|
@ -13,6 +13,7 @@ in
|
||||
environment = {
|
||||
etc = {
|
||||
"sddm-wallpaper.png".source = "${assets}/sddm-background.png";
|
||||
"lockscreen.png".source = "${assets}/lockscreen.png";
|
||||
"gtk-3.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-icon-theme-name=Papirus
|
||||
|
@ -12,4 +12,11 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
gamemode
|
||||
];
|
||||
|
||||
# In your configuration.nix
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user