Skip to content

Commit

Permalink
kanshi: Update syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpox committed May 31, 2024
1 parent 7f1c54a commit 6cf6de6
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions home-manager/modules/kanshi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,25 @@ in
home.packages = with pkgs; [ kanshi ];

# output eDP-1 mode 1920x1080 position 0,0
# output DP-1 mode 2560x1440 position 1080,0
# output DP-2 mode 2560x1440 position 3640,0
# output DP-1 mode 2560x1440 position 1080,0
# output DP-2 mode 2560x1440 position 3640,0

services.kanshi = {
enable = true;
profiles = {

laptop-only = {
outputs = [
settings = [
{
profile.name = "laptop-only";
profile.outputs = [
{
criteria = "eDP-1";
mode = "1920x1080@60Hz";
}
];
};
triple-home = {
outputs = [

}
{
profile.name = "triple-home";
profile.outputs = [
# generate with wlay
#output "eDP-1" {
#mode 1920x1080@60Hz
#pos 0 0
#transform normal
#}
#output "DP-1" {
#mode 2560x1440@59Hz
#pos 4480 0
#transform normal
#}
#output "DP-2" {
#mode 2560x1440@59Hz
#pos 1920 0
#transform normal
#}

{
criteria = "eDP-1";
mode = "1920x1080@60Hz";
Expand All @@ -70,8 +54,8 @@ in
status = "enable";
}
];
};
};
}
];
};
};
}

0 comments on commit 6cf6de6

Please sign in to comment.