mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
feat: stop using workaround for hyprlock background
This commit is contained in:
parent
90ebd2e88b
commit
2de207aeff
3 changed files with 6 additions and 3 deletions
|
@ -46,7 +46,7 @@ in
|
||||||
};
|
};
|
||||||
screenlocker.useNvidiaCrashFix = lib.mkOption {
|
screenlocker.useNvidiaCrashFix = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = osConfig.liminalOS.system.graphics.nvidia.enable;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to use a workaround for Hyprlock background blur not working on Nvidia-based machines. Before locking, a screenshot will be taken and placed at `/tmp/__hyprlock-monitor-screenshot.png`.
|
Whether to use a workaround for Hyprlock background blur not working on Nvidia-based machines. Before locking, a screenshot will be taken and placed at `/tmp/__hyprlock-monitor-screenshot.png`.
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -38,7 +38,11 @@ in
|
||||||
};
|
};
|
||||||
background = {
|
background = {
|
||||||
monitor = cfg.screenlocker.monitor;
|
monitor = cfg.screenlocker.monitor;
|
||||||
path = lib.mkIf cfg.screenlocker.useNvidiaCrashFix "/tmp/__hyprlock-monitor-screenshot.png";
|
path =
|
||||||
|
if cfg.screenlocker.useNvidiaCrashFix then
|
||||||
|
"/tmp/__hyprlock-monitor-screenshot.png"
|
||||||
|
else
|
||||||
|
"screenshot";
|
||||||
blur_passes = 3;
|
blur_passes = 3;
|
||||||
blur_size = 7;
|
blur_size = 7;
|
||||||
noise = 0.0117;
|
noise = 0.0117;
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
liminalOS = {
|
liminalOS = {
|
||||||
utils.easyeffects.enable = true;
|
utils.easyeffects.enable = true;
|
||||||
desktop.hyprland.screenlocker.useNvidiaCrashFix = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue