sway optimisations and fixes

This commit is contained in:
Markus Heurung 2024-06-05 15:29:30 +02:00
parent 684dbf81ab
commit 7637673036

View file

@ -431,18 +431,21 @@
wayland.windowManager = { wayland.windowManager = {
sway = { sway = {
enable = true; enable = true;
extraConfig = ''
smart_gaps inverse_outer
'';
config = { config = {
gaps = { gaps = {
inner = 50; inner = 50;
vertical = 100; vertical = 100;
horizontal = 600; horizontal = 600;
smartGaps = true; # smartGaps = true;
smartBorders = "on"; smartBorders = "on";
}; };
input = { input = {
"type:keyboard" = { "type:keyboard" = {
xkb_variant = "eu"; xkb_layout = "eu";
xkb_options = "compose:ralt"; xkb_options = "compose:rwin";
}; };
"type:touchpad" = { "type:touchpad" = {
tap = "enabled"; tap = "enabled";
@ -468,14 +471,15 @@
output = { output = {
DP-1 = { DP-1 = {
resolution = "3840x2160@30Hz"; resolution = "3840x2160@30Hz";
position = "1920 0"; position = "1280 0";
# background = "/home/muhh/Sync/Backgrounds/wald.jpg fill"; # background = "/home/muhh/Sync/Backgrounds/wald.jpg fill";
scale = "1.0"; scale = "1.25";
}; };
HDMI-A-1 = { HDMI-A-1 = {
resolution = "1920x1080@60.000Hz"; resolution = "1920x1080@60.000Hz";
transform = "180"; transform = "180";
position = "0 0"; position = "0 0";
scale = "1.5";
# background = "/home/muhh/Sync/Backgrounds/pfuetze.jpg fill"; # background = "/home/muhh/Sync/Backgrounds/pfuetze.jpg fill";
}; };
}; };
@ -488,8 +492,28 @@
window = { window = {
titlebar = false; titlebar = false;
}; };
# workspaceOutputAssign = [
# {
# workspace = "2";
# output = "DP-1";
# }
# ];
workspaceOutputAssign =
map (x: {
workspace = x;
output = "DP-1";
}) ["1" "2" "3" "4" "5" "6" "7"]
++ map (x: {
workspace = x;
output = "HDMI-A-1";
}) ["8" "9" "10"];
};
wrapperFeatures.gtk = true;
}; };
}; };
xdg = {
enable = true;
mimeApps.enable = true;
}; };
# leave things below alone. # leave things below alone.