use sway for now since hyprland crashes with kvm switch
This commit is contained in:
parent
00a045d0c1
commit
566d709ca8
15 changed files with 739 additions and 3 deletions
77
hosts/lio/sway_customizations.nix
Normal file
77
hosts/lio/sway_customizations.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ ... }:
|
||||
let
|
||||
swayExtraOptions = {
|
||||
startup = [
|
||||
{
|
||||
command = "exec sh -c 'sleep 0.01; swaymsg workspace number 7; sleep 0.02; swaymsg workspace number 1'";
|
||||
}
|
||||
];
|
||||
|
||||
# Example: map workspaces 1–6 to DP-1 and 7–10 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";
|
||||
};
|
||||
"DP-2" = {
|
||||
scale = "1";
|
||||
transform = "270";
|
||||
pos = "-1440 -640";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
options = { };
|
||||
|
||||
config = {
|
||||
environment.systemPackages = [ ];
|
||||
|
||||
ringofstorms_common.desktopEnvironment.sway.extraOptions = swayExtraOptions;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue