sway: add multimonitor settings

This commit is contained in:
Leonardo Eugênio 2025-09-03 00:35:43 -03:00
parent 437da46c4e
commit e72e9a2688
4 changed files with 30 additions and 3 deletions

View file

@ -76,10 +76,19 @@ in
};
output = {
"*" = {
adaptive_sync = "on";
bg = "${theme.background} fill";
};
"AOC 24G2W1G4 ATNM6XA004804" = {
position = "0,0";
adaptive_sync = "on";
mode = "1920x1080@144.000Hz";
};
"LG Electronics 25UM58G 0x01010101" = {
position = "1920,215";
adaptive_sync = "on";
scale = "1.2";
mode = "2560x1080@74.991Hz";
};
};
fonts = {
names = [ font.interface ];

View file

@ -8,6 +8,24 @@ in
config.services.kanshi = lib.mkIf cfg.enable {
enable = true;
settings = [
{
profile = {
name = "home";
outputs = [
{
criteria = "AOC 24G2W1G4 ATNM6XA004804";
position = "0,0";
}
{
criteria = "LG Electronics 25UM58G 0x01010101";
position = "1920,215";
scale = 1.2;
mode = "2560x1080@74.991Hz";
}
];
exec = [ "xrdb .Xresources" ];
};
}
{
profile = {
name = "sedetary";

View file

@ -110,6 +110,8 @@ let
"${mod}+Control+${keyBind}" = "resize ${resize_cmd}";
# focus output
"${mod}+mod1+${keyBind}" = "focus output ${direction}";
# Move window to output
"${mod}+mod1+Control+${keyBind}" = "move window output ${direction}; focus output ${direction}";
# Move workspace to output
"${mod}+mod1+Shift+${keyBind}" = "move workspace output ${direction}";
}