sway: Finally get my multi-monitor setup fixed

This commit is contained in:
fleaz 2025-02-18 22:16:22 +01:00
parent 8cfe753e4e
commit 5b3e6d859b
Signed by: fleaz
GPG key ID: 935474624265FE8F
2 changed files with 47 additions and 41 deletions

View file

@ -16,36 +16,36 @@ in
focus.followMouse = false;
input = {
"type:keyboard" = { xkb_layout = "eu"; };
"type:mouse" = { pointer_accel = "-1"; };
"type:touchpad" = { tap = "enabled"; };
"1:1:AT_Translated_Set_2_keyboard" = {
# Remap borken ctrl key on internal keyboard for XPS
xkb_options = "caps:ctrl_modifier";
"type:keyboard" = {
xkb_layout = "eu";
};
"type:mouse" = {
pointer_accel = "-1";
};
"type:touchpad" = {
tap = "enabled";
};
};
output = {
"*".bg = "/etc/nixos/wallpaper.jpg fill";
} // lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
"DP-1" = {
mode = "3840x2160";
scale = "1.3";
position = "0,0";
output =
{
"*".bg = "/etc/nixos/wallpaper.jpg fill";
}
// lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
"DP-1" = {
mode = "3840x2160";
scale = "1.3";
position = "0,0";
};
"DP-3" = {
mode = "3840x2160";
scale = "1.3";
position = "2953,0";
};
};
"DP-3" = {
mode = "3840x2160";
scale = "1.3";
position = "2953,0";
};
} // lib.optionalAttrs (nixosConfig.networking.hostName == "smithers") {
"eDP-1" = {
mode = "2256x1504";
scale = "1.2";
position = "0,0";
};
};
gaps = { inner = 5; };
gaps = {
inner = 5;
};
window.border = 2;
window.hideEdgeBorders = "smart";
workspaceAutoBackAndForth = true;