Switch to wayland and sway
This commit is contained in:
parent
f6c366611e
commit
e92cfa3b23
9 changed files with 270 additions and 195 deletions
39
lib/nixos/home-manager/modules/kanshi.nix
Normal file
39
lib/nixos/home-manager/modules/kanshi.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
systemd.user.services.kanshi = {
|
||||
serviceConfig = {
|
||||
StartLimitBurst = 5;
|
||||
StartLimitIntervalSec = 30;
|
||||
};
|
||||
};
|
||||
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
|
||||
# swaymsg -t get_outputs
|
||||
profiles = {
|
||||
undocked = {
|
||||
outputs = [{
|
||||
criteria = "eDP-1";
|
||||
status = "enable";
|
||||
mode = "1920x1080";
|
||||
position = "0,0";
|
||||
}];
|
||||
};
|
||||
|
||||
docked = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "disable";
|
||||
}
|
||||
|
||||
{
|
||||
criteria = "Samsung Electric Company LU28R55 H4ZRA00128";
|
||||
mode = "2560x1440";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue