Big omen laptop migration
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./kanshi
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
profile LAPTOP_ONLY {
|
||||
output eDP-1 enable
|
||||
}
|
||||
|
||||
profile HOME {
|
||||
output eDP-1 mode 2560x1440 position 480,1440
|
||||
output DP-3 mode 3440x1440 position 0,0
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.dov.kanshi;
|
||||
in {
|
||||
options.dov.kanshi.enable = mkEnableOption "kanshi config";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [ kanshi ];
|
||||
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
profile = {
|
||||
name = "default";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "home";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
position = "480,1440";
|
||||
}
|
||||
{
|
||||
criteria = "LG Electronics LG ULTRAWIDE 201NTTQC5617";
|
||||
position = "0,0";
|
||||
mode = "3440x1440";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "reserve-home";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
position = "480,1440";
|
||||
}
|
||||
{
|
||||
criteria = "DP-5";
|
||||
position = "0,0";
|
||||
mode = "3440x1440";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user