Also set default output parameters in sway config

This commit is contained in:
Charlotte Van Petegem 2020-09-29 13:24:59 +02:00
parent 154150612d
commit eaff063dd3
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -19,24 +19,24 @@ in
profiles = {
"home-undocked" = {
outputs = [
{ criteria = "Unknown 0x2036 0x00000000"; position = "0,0"; mode = "2560x1440"; scale = 1.0; }
{ criteria = "Unknown 0x2036 0x00000000"; position = "0 0"; mode = "2560x1440"; scale = 1.0; }
];
};
"home-docked" = {
outputs = [
{ criteria = "Unknown 0x2036 0x00000000"; position = "0,0"; mode = "2560x1440"; scale = 1.0; }
{ criteria = "Dell Inc. DELL U2718Q FN84K01T095L"; position = "2560,0"; mode = "3840x2160"; scale = 1.25; }
{ criteria = "Unknown 0x2036 0x00000000"; position = "0 0"; mode = "2560x1440"; scale = 1.0; }
{ criteria = "Dell Inc. DELL U2718Q FN84K01T095L"; position = "2560 0"; mode = "3840x2160"; scale = 1.25; }
];
};
"work-undocked" = {
outputs = [
{ criteria = "Chimei Innolux Corporation 0x14D3 0x00000000"; position = "0,0"; mode = "1920x1080"; scale = 1.0; }
{ criteria = "Chimei Innolux Corporation 0x14D3 0x00000000"; position = "0 0"; mode = "1920x1080"; scale = 1.0; }
];
};
"work-docked" = {
outputs = [
{ criteria = "Chimei Innolux Corporation 0x14D3 0x00000000"; position = "0,0"; mode = "1920x1080"; scale = 1.0; }
{ criteria = "Dell Inc. DELL U2718Q FN84K83Q1KHL"; position = "1920,0"; mode = "3840x2160"; scale = 1.25; }
{ criteria = "Chimei Innolux Corporation 0x14D3 0x00000000"; position = "0 0"; mode = "1920x1080"; scale = 1.0; }
{ criteria = "Dell Inc. DELL U2718Q FN84K83Q1KHL"; position = "1920 0"; mode = "3840x2160"; scale = 1.25; }
];
};
};
@ -61,7 +61,7 @@ in
inactiveWorkspace = { border = "#fbffff"; background = "#fbffff"; text = "#535c65"; };
urgentWorkspace = { border = "#ae5865"; background = "#ae5865"; text = "#fbffff"; };
};
fonts = ["Fira Code Normal 9"];
fonts = [ "Fira Code Normal 9" ];
position = "top";
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${status-configuration}";
extraConfig = ''
@ -70,6 +70,12 @@ in
'';
}
];
output = {
"Unknown 0x2036 0x00000000" = { position = "0 0"; mode = "2560x1440"; scale = "1.0"; };
"Dell Inc. DELL U2718Q FN84K01T095L" = { position = "2560 0"; mode = "3840x2160"; scale = "1.25"; };
"Chimei Innolux Corporation 0x14D3 0x00000000" = { position = "0 0"; mode = "1920x1080"; scale = "1.0"; };
"Dell Inc. DELL U2718Q FN84K83Q1KHL" = { position = "1920 0"; mode = "3840x2160"; scale = "1.25"; };
};
startup = [
{ command = "${pkgs.swayidle}/bin/swayidle -w timeout 300 '${pkgs.swaylock}/bin/swaylock -f -c 000000' timeout 150 '${pkgs.sway}/bin/swaymsg \"output * dpms off\"' resume '${pkgs.sway}/bin/swaymsg \"output * dpms on\"' before-sleep '${pkgs.swaylock}/bin/swaylock -f -c 000000'"; }
];
@ -80,7 +86,7 @@ in
"type:keyboard" = { xkb_layout = "us"; xkb_variant = "altgr-intl"; xkb_numlock = "enabled"; };
"type:touchpad" = { drag = "enabled"; dwt = "enabled"; scroll_method = "two_finger"; tap = "enabled"; };
};
modes = {}; # Unset default "resize" mode
modes = { }; # Unset default "resize" mode
keybindings = lib.mkOptionDefault {
"${modifier}+Shift+q" = "nop Unset default kill";
"${modifier}+r" = "nop Unset default resize mode";