sway: Finally get my multi-monitor setup fixed
This commit is contained in:
parent
8cfe753e4e
commit
5b3e6d859b
2 changed files with 47 additions and 41 deletions
|
@ -1,12 +1,15 @@
|
|||
{ nixosConfig, ... }:
|
||||
let
|
||||
machines = {
|
||||
smithers = [{
|
||||
smithers = [
|
||||
{
|
||||
profile.name = "laptop-only";
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "enable";
|
||||
scale = 1.3;
|
||||
mode = "2256x1504@59.999Hz";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@ -18,17 +21,20 @@ let
|
|||
status = "disable";
|
||||
}
|
||||
{
|
||||
criteria = "DP-10";
|
||||
scale = 1.3;
|
||||
criteria = "Samsung Electric Company U28E590 HTPJ109320";
|
||||
scale = 1.4;
|
||||
position = "0,0";
|
||||
mode = "3840x2160@60.000Hz";
|
||||
}
|
||||
{
|
||||
criteria = "DP-9";
|
||||
scale = 1.3;
|
||||
position = "2952,0";
|
||||
criteria = "Samsung Electric Company U28E590 HTPM402579";
|
||||
scale = 1.4;
|
||||
position = "2743,0";
|
||||
mode = "3840x2160@60.000Hz";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
@ -16,17 +16,21 @@ 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 = {
|
||||
output =
|
||||
{
|
||||
"*".bg = "/etc/nixos/wallpaper.jpg fill";
|
||||
} // lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
|
||||
}
|
||||
// lib.optionalAttrs (nixosConfig.networking.hostName == "cray") {
|
||||
"DP-1" = {
|
||||
mode = "3840x2160";
|
||||
scale = "1.3";
|
||||
|
@ -37,15 +41,11 @@ in
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue