Skip to content

Commit 560989f

Browse files
committed
Sway: remove secondary output to fix wine
Stuff ran through wine would not accept mouse input when sway has inactive monitors configured. swaywm/sway#4857 swaywm/sway#6422 (comment)
1 parent 2c44e24 commit 560989f

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

modules/home/sway/default.nix

+5-14
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
wrapperFeatures.gtk = true;
4949
config = let
5050
output-primary = "DP-1";
51-
output-secondary = "HDMI-A-1";
5251
modifier = config.wayland.windowManager.sway.config.modifier;
5352
in {
5453
bars = [{
@@ -84,7 +83,6 @@
8483
"${modifier}+Shift+i" = ''
8584
exec ${grim} -t png -g "$(${slurp})" ~/docs/screenshots/$(${date} +%Y-%m-%d_%H-%m-%s).png'';
8685
"${modifier}+m" = "mode passthrough";
87-
"${modifier}+t" = "output ${output-secondary} toggle";
8886
};
8987
modes = { passthrough = { "${modifier}+m" = "mode default"; }; };
9088
input."*" = {
@@ -100,21 +98,14 @@
10098
};
10199
"${output-primary}" = {
102100
103-
pos = "1920 0";
101+
# pos = "0 0";
104102
subpixel = "rgb";
105103
};
106-
"${output-secondary}" = {
107-
108-
pos = "0 0";
109-
};
110104
};
111-
workspaceOutputAssign = map (name: {
112-
output = output-primary;
113-
workspace = name;
114-
}) [ "1" "2" "3" "4" "5" ] ++ map (name: {
115-
output = output-secondary;
116-
workspace = name;
117-
}) [ "6" "7" "8" "9" ];
105+
# workspaceOutputAssign = map (name: {
106+
# output = output-primary;
107+
# workspace = name;
108+
# }) [ "1" "2" "3" "4" "5" ];
118109
startup = [
119110
{ command = "${pkgs.mako}/bin/mako"; }
120111
{

0 commit comments

Comments
 (0)