dotfiles/hosts/lio/sway_customizations.nix
2025-09-15 11:24:21 -05:00

81 lines
1.5 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ ... }:
let
swayExtraOptions = {
startup = [
{
command = "exec sh -c 'sleep 0.01; swaymsg workspace number 7; sleep 0.02; swaymsg workspace number 1'";
}
];
# Example: map workspaces 16 to DP-1 and 710 to HDMI-A-1
workspaceOutputAssign = [
{
workspace = "1";
output = "DP-1";
}
{
workspace = "2";
output = "DP-1";
}
{
workspace = "3";
output = "DP-1";
}
{
workspace = "4";
output = "DP-1";
}
{
workspace = "5";
output = "DP-1";
}
{
workspace = "6";
output = "DP-1";
}
{
workspace = "7";
output = "DP-2";
}
{
workspace = "8";
output = "DP-2";
}
{
workspace = "9";
output = "DP-2";
}
{
workspace = "10";
output = "DP-2";
}
];
# Optional output settings
output = {
"DP-1" = {
scale = "1";
pos = "0 0";
mode = "3840x2160@97.983Hz";
bg = "${./wallpapers/pixel_neon.png} fill";
};
"DP-2" = {
scale = "1";
transform = "270";
pos = "-1440 -640";
mode = "3440x1440@99.982Hz";
bg = "${./wallpapers/pixel_neon_v.png} fill";
};
};
};
in
{
options = { };
config = {
environment.systemPackages = [ ];
ringofstorms_common.desktopEnvironment.sway.extraOptions = swayExtraOptions;
};
}