add icc profile
This commit is contained in:
parent
b89e3ef823
commit
1be064468c
4 changed files with 26 additions and 33 deletions
BIN
assets/srgb_to_gamma2p2_400_mhc2.icm
Normal file
BIN
assets/srgb_to_gamma2p2_400_mhc2.icm
Normal file
Binary file not shown.
|
|
@ -1,10 +1,8 @@
|
||||||
{
|
{
|
||||||
lib,
|
libs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
ENABLE_HDR = false;
|
|
||||||
in {
|
|
||||||
device = {
|
device = {
|
||||||
flake-name = "ideapad-slim-5";
|
flake-name = "ideapad-slim-5";
|
||||||
cursors = "aemeath";
|
cursors = "aemeath";
|
||||||
|
|
@ -18,33 +16,20 @@ in {
|
||||||
wm.niri.enable = false;
|
wm.niri.enable = false;
|
||||||
wm.hyprland.enable = true;
|
wm.hyprland.enable = true;
|
||||||
wm.hyprland.monitors = [
|
wm.hyprland.monitors = [
|
||||||
(
|
"eDP-1, 1920x1200@60, 0x0, 1, bitdepth, 10, cm, hdr, icc, ${libs.root "/assets/srgb_to_gamma2p2_400_mhc2.icm"}"
|
||||||
{
|
|
||||||
output = "eDP-1";
|
|
||||||
mode = "1920x1200@60";
|
|
||||||
position = "0x0";
|
|
||||||
scale = 1;
|
|
||||||
}
|
|
||||||
// lib.optionalAttrs ENABLE_HDR {
|
|
||||||
bitdepth = 10;
|
|
||||||
cm = "hdr";
|
|
||||||
supports_wide_color = 1;
|
|
||||||
supports_hdr = 1;
|
|
||||||
|
|
||||||
sdrbrightness = 1.0;
|
|
||||||
sdrsaturation = 1.0;
|
|
||||||
|
|
||||||
sdr_min_luminance = 0.005;
|
|
||||||
sdr_max_luminance = 200;
|
|
||||||
|
|
||||||
min_luminance = 0.0005;
|
|
||||||
max_luminance = 400;
|
|
||||||
max_avg_luminance = 250;
|
|
||||||
|
|
||||||
sdr_eotf = 2;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
|
# wm.hyprland.monitorsv2 = [
|
||||||
|
# {
|
||||||
|
# output = "eDP-1";
|
||||||
|
# mode = "1920x1200@60";
|
||||||
|
# position = "0x0";
|
||||||
|
# scale = 1;
|
||||||
|
|
||||||
|
# bitdepth = 10;
|
||||||
|
# cm = "hdr";
|
||||||
|
# icc = builtins.toString (libs.root "/assets/srgb_to_gamma2p2_400_mhc2.icm");
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitorv2 = osconfig.device.wm.hyprland.monitors;
|
monitorv2 = osconfig.device.wm.hyprland.monitorsv2;
|
||||||
|
monitor = osconfig.device.wm.hyprland.monitors;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,17 @@
|
||||||
niri.enable = lib.mkEnableOption "niri";
|
niri.enable = lib.mkEnableOption "niri";
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = lib.mkEnableOption "hyprland";
|
enable = lib.mkEnableOption "hyprland";
|
||||||
monitors = lib.mkOption {
|
|
||||||
|
monitor = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [];
|
||||||
|
description = "Monitors vs settings";
|
||||||
|
};
|
||||||
|
|
||||||
|
monitorsv2 = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.attrs;
|
type = lib.types.listOf lib.types.attrs;
|
||||||
default = [];
|
default = [];
|
||||||
description = "Monitors settings";
|
description = "Monitors vs settings";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Reference in a new issue