Add kanshi to autoconfigure monitor layout
This commit is contained in:
parent
65e738320e
commit
ac626bcacd
@ -38,7 +38,8 @@ user:
|
||||
./rofi.nix
|
||||
./rust.nix
|
||||
./signal.nix
|
||||
./sway.nix
|
||||
./sway/default.nix
|
||||
./sway/kanshi.nix
|
||||
./telegram.nix
|
||||
./thunderbird.nix
|
||||
./tmux.nix
|
||||
|
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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user