mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: write kanshi module
This commit is contained in:
parent
e2fc6f27e7
commit
ef172bfba3
1 changed files with 90 additions and 0 deletions
90
modules/home/kanshi.nix
Normal file
90
modules/home/kanshi.nix
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
{ host, ... }:
|
||||
{
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
laptops = {
|
||||
outputs =
|
||||
if (host == "sakura") then
|
||||
[
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
]
|
||||
else if (host == "zinnia") then
|
||||
[
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
]
|
||||
else if (host == "imilia") then
|
||||
[
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
]
|
||||
else
|
||||
[
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
};
|
||||
work = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
{
|
||||
criteria = "HP Inc. HP E27q G5 CNC4190NG9";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "4816,0";
|
||||
}
|
||||
{
|
||||
criteria = "HP Inc. HP E27q G5 CNC4081M2B";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "2256,0";
|
||||
}
|
||||
];
|
||||
};
|
||||
home = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "disable";
|
||||
}
|
||||
{
|
||||
criteria = "CMT GM34-CWQ CMI231700118";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
# {
|
||||
# criteria = "";
|
||||
# scale = 1.0;
|
||||
# status = "enable";
|
||||
# position = "0,0";
|
||||
# }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue