Add kanshi to autoconfigure monitor layout
This commit is contained in:
32
home/sway/kanshi.nix
Normal file
32
home/sway/kanshi.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ config, ... }: {
|
||||
# automatically configure monitor layout depending on connected devices
|
||||
# https://git.sr.ht/~emersion/kanshi
|
||||
services.kanshi = {
|
||||
enable = config.wayland.windowManager.sway.enable;
|
||||
settings = [
|
||||
{
|
||||
profile = {
|
||||
name = "home";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
}
|
||||
{
|
||||
criteria = "HDMI-A-1";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "mobile";
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user