Compare commits

..

No commits in common. "16914a2fa7310d3f8b67f97805d4cac3c0380f11" and "e869e866f1910eac9f5f3c0016aa94533c21fc13" have entirely different histories.

6 changed files with 267 additions and 301 deletions

View file

@ -1,42 +1,8 @@
{...}: { {...}: {
imports = [./default.nix]; imports = [./default.nix];
wayland.windowManager.sway.config = let wayland.windowManager.sway.config.output = {
defaultOutput = "eDP-1"; "eDP-1" = {
in { scale = "1.25";
output.${defaultOutput}.scale = "1.25";
workspaceOutputAssign = [
{
output = defaultOutput;
workspace = "1";
}
];
}; };
services.kanshi = {
enable = true;
settings = let
laptopScreen = {
criteria = "eDP-1";
scale = 1.25;
position = "3000,636";
};
monitor1 = {
criteria = "Acer Technologies ED270R TJMEE0043W01";
mode = "1920x1080@165Hz";
position = "1080,420";
};
monitor2 = {
criteria = "Ancor Communications Inc VS278 FALMQS032358";
position = "0,0";
transform = "270";
};
in [
{output = laptopScreen;}
{
profile = {
name = "docked";
outputs = [laptopScreen monitor1 monitor2];
};
}
];
}; };
} }

View file

@ -1,6 +1,9 @@
{...}: { {...}: {
imports = [./work.nix]; imports = [./work.nix];
wayland.windowManager.sway.config = { wayland.windowManager.sway.config.output = {
output."Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5"; "Dell Inc. DELL P3223QE CCG8YN3" = {
pos = "0 0";
scale = "1.5";
};
}; };
} }

View file

@ -1,37 +1,34 @@
{...}: { {...}: {
imports = [./work.nix]; imports = [./work.nix];
wayland.windowManager.sway.config = let wayland.windowManager.sway.config.output = {
defaultOutput = "eDP-1"; "eDP-1" = {
in { scale = "1.25";
output.${defaultOutput}.scale = "1.25"; position = "2560 576";
workspaceOutputAssign = [ };
{ "Dell Inc. DELL P3223QE CCG8YN3" = {
output = defaultOutput; scale = "1.5";
workspace = "1"; position = "0 0";
} };
];
}; };
services.kanshi = { services.kanshi = {
enable = true; enable = true;
settings = let systemdTarget = "sway-session.target";
profiles = let
laptopScreen = { laptopScreen = {
criteria = "eDP-1"; criteria = "eDP-1";
scale = 1.25; status = "enable";
position = "2560,576";
}; };
monitor = { monitor = {
criteria = "Dell Inc. DELL P3223QE CCG8YN3"; criteria = "Dell Inc. DELL P3223QE CCG8YN3";
scale = 1.5; status = "enable";
position = "0,0"; };
in {
undocked = {
outputs = [laptopScreen];
};
docked = {
outputs = [monitor laptopScreen];
}; };
in [
{output = laptopScreen;}
{
profile = {
name = "docked";
outputs = [laptopScreen monitor];
}; };
}
];
}; };
} }

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
imports = [ imports = [
./default.nix ./default.nix
../programs/games/default.nix ../programs/games/default.nix
@ -12,39 +8,30 @@
freecad freecad
prusa-slicer prusa-slicer
]; ];
wayland.windowManager.sway.config = let wayland.windowManager.sway.config = {
defaultOutput = "DP-2"; startup = [
in { {command = "${pkgs.xorg.xrandr}/bin/xrandr --output DP-2 --primary";}
];
output = { output = {
"Acer Technologies ED270R TJMEE0043W01" = { "Acer Technologies ED270R TJMEE0043W01" = {
mode = "1920x1080@165Hz"; mode = "1920x1080@165Hz";
position = "1080 420"; pos = "1080 420";
adaptive_sync = "off"; adaptive_sync = "off";
}; };
"Ancor Communications Inc VS278 FALMQS032358" = { "Ancor Communications Inc VS278 FALMQS032358" = {
position = "0 0"; pos = "0 0";
transform = "270"; transform = "270";
}; };
}; };
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
output = defaultOutput; output = "HDMI-A-1";
workspace = "1"; workspace = "1";
} }
]; ];
startup = [
{command = "${pkgs.xorg.xrandr}/bin/xrandr --output ${defaultOutput} --primary";}
];
}; };
programs.waybar.settings = { programs.waybar.settings = {
main.output = ["DP-2"]; main.output = ["DP-2"];
alt = { alt.output = ["HDMI-A-1"];
inherit (config.programs.waybar.settings.main) layer position "sway/workspaces";
name = "alt";
output = ["HDMI-A-1"];
"modules-left" = ["sway/workspaces"];
"modules-center" = [];
"modules-right" = ["clock"];
};
}; };
} }

View file

@ -7,8 +7,6 @@
accentColour2, accentColour2,
... ...
}: { }: {
programs.waybar.systemd.target = lib.mkIf config.wayland.windowManager.sway.systemd.enable "sway-session.target";
services.kanshi.systemdTarget = lib.mkIf config.wayland.windowManager.sway.systemd.enable "sway-session.target";
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
package = package =

View file

@ -1,6 +1,8 @@
{ {
config, config,
lib,
pkgs, pkgs,
hostname,
fonts, fonts,
accentColour, accentColour,
... ...
@ -11,8 +13,12 @@
}; };
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd.enable = true; systemd = {
settings.main = { enable = true;
target = "sway-session.target";
};
settings = rec {
main = {
name = "main"; name = "main";
layer = "top"; layer = "top";
position = "bottom"; position = "bottom";
@ -231,6 +237,15 @@
spacing = 5; spacing = 5;
}; };
}; };
# TEMP FIX
alt = lib.mkIf (hostname == "Vanguard") {
inherit (main) layer position "sway/workspaces";
name = "alt";
"modules-left" = [];
"modules-center" = ["sway/workspaces"];
"modules-right" = [];
};
};
style = with config.scheme.withHashtag; let style = with config.scheme.withHashtag; let
accent = config.scheme.withHashtag.${accentColour}; accent = config.scheme.withHashtag.${accentColour};
alpha = "0.9"; alpha = "0.9";