Cleanup kanshi&HDR

This commit is contained in:
soraefir
2026-06-14 10:16:57 +02:00
parent 0796677cd7
commit 577fd364fd
3 changed files with 68 additions and 59 deletions

View File

@@ -4,7 +4,7 @@
programs.mpv = { programs.mpv = {
enable = true; enable = true;
scripts = with pkgs; [ mpvScripts.mpris ]; scripts = with pkgs; [ mpvScripts.mpris ];
}; };#--target-colorspace-hint-mode=source for HDR
programs.yt-dlp.enable = true; programs.yt-dlp.enable = true;
}; };

View File

@@ -1,109 +1,108 @@
{ config, lib, ... }: { { config, lib, pkgs, ... }:
let
baseOutput = {
position = "0,0";
scale = 1.0;
adaptiveSync = true;
status = "enable";
};
in {
config = lib.mkIf (config.usercfg.wm == "Wayland") { config = lib.mkIf (config.usercfg.wm == "Wayland") {
services.kanshi = { services.kanshi = {
enable = true; enable = true;
systemdTarget = "graphical-session.target"; systemdTarget = "graphical-session.target";
settings = [ settings = [
{ {output = baseOutput//{
profile.name = "tower_0"; criteria = "AOC 24E1W1 GNSKCHA086899";
profile.outputs = [ mode = "1920x1080@60.000";
};}
{output = baseOutput//{
criteria = "AOC 24E1W1 GNSKBHA080346";
mode = "1920x1080@60.000";
};}
{output = baseOutput//{
criteria = "LG UNKNOWN_TBD";
mode = "1920x1080@144.000";
};}
{output = baseOutput//{
criteria = "LG Display 0x060A Unknown";
mode = "1920x1080@60.020";
};}
{output = baseOutput//{
criteria = "CEX CX133 0x00000001";
mode = "2560x1600@59.972";
};}
{output = baseOutput//{
criteria = "AOC 16G3 1DDP7HA000348";
mode = "1920x1080@144.000";
};}
{profile = {
name = "tower_0";
outputs = [
{ {
criteria = "AOC 24E1W1 GNSKCHA086899"; criteria = "AOC 24E1W1 GNSKCHA086899";
mode = "1920x1080@60.000";
position = "0,0"; position = "0,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
} }
{ {
criteria = "AOC 24E1W1 GNSKBHA080346"; criteria = "AOC 24E1W1 GNSKBHA080346";
mode = "1920x1080@60.000";
position = "1920,0"; position = "1920,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
} }
]; ];
} exec = [ "${pkgs.eww}/bin/eww open bar --screen 1" ];
{ };}
profile.name = "tower_1"; {profile = {
profile.outputs = [ name = "tower_1";
outputs = [
{ {
criteria = "AOC 24E1W1 GNSKCHA086899"; criteria = "AOC 24E1W1 GNSKCHA086899";
mode = "1920x1080@60.000";
position = "0,0"; position = "0,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
} }
{ {
criteria = "AOC 24E1W1 GNSKBHA080346"; criteria = "AOC 24E1W1 GNSKBHA080346";
mode = "1920x1080@60.000";
position = "0,0"; position = "0,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
} }
{ {
criteria = "LG UNKNOWN_TBD"; criteria = "LG UNKNOWN_TBD";
mode = "1920x1080@144.000";
position = "0,0"; position = "0,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
} }
]; ];
} };}
{ {profile = {
profile.name = "laptop_0"; name = "laptop_0";
profile.outputs = [{ outputs = [{
criteria = "LG Display 0x060A Unknown"; criteria = "LG Display 0x060A Unknown";
mode = "1920x1080@60.020";
position = "0,0"; position = "0,0";
scale = 1.0;
status = "enable";
}]; }];
} };}
{ {profile = {
profile.name = "laptop_1"; name = "laptop_1";
profile.outputs = [ outputs = [
{ {
criteria = "CEX CX133 0x00000001"; criteria = "CEX CX133 0x00000001";
mode = "2560x1600@59.972";
position = "0,0"; position = "0,0";
scale = 1.0;
status = "enable";
} }
{ {
criteria = "LG Display 0x060A Unknown"; criteria = "LG Display 0x060A Unknown";
mode = "1920x1080@60.020";
position = "2560,0"; position = "2560,0";
scale = 1.0;
status = "enable";
} }
]; ];
} };}
{ {profile = {
profile.name = "laptop_2"; name = "laptop_2";
profile.outputs = [ outputs = [
{ {
criteria = "AOC 16G3 1DDP7HA000348"; criteria = "AOC 16G3 1DDP7HA000348";
mode = "1920x1080@144.000";
position = "0,0"; position = "0,0";
status = "enable";
scale = 1.0;
adaptiveSync = true;
} }
{ {
criteria = "LG Display 0x060A Unknown"; criteria = "LG Display 0x060A Unknown";
mode = "1920x1080@60.020";
position = "1920,0"; position = "1920,0";
scale = 1.0;
status = "enable";
} }
]; ];
} };}
]; ];
}; };
}; };

View File

@@ -85,7 +85,13 @@ in {
tap_to_click = false; tap_to_click = false;
}; };
}; };
render = {
cm_enabled = true;
cm_auto_hdr = 1;
};
quirks = {
# prefer_hdr = 1;
};
misc = { misc = {
force_default_wallpaper = -1; force_default_wallpaper = -1;
disable_hyprland_logo = true; disable_hyprland_logo = true;
@@ -93,6 +99,10 @@ in {
animate_manual_resizes = false; animate_manual_resizes = false;
vrr = 1; vrr = 1;
}; };
ecosystem = {
no_update_news = true;
no_donation_nag = true;
};
general = { general = {
gaps_in = config.colorScheme.palette.gaps-window; gaps_in = config.colorScheme.palette.gaps-window;
gaps_out = config.colorScheme.palette.gaps-screen; gaps_out = config.colorScheme.palette.gaps-screen;