Add sway/window to alt waybar config

Slightly change monitor config definition
This commit is contained in:
Evie Litherland-Smith 2024-06-16 06:34:50 +01:00
parent 942810dd66
commit bae8a7b912
4 changed files with 15 additions and 19 deletions

View file

@ -1,12 +1,10 @@
{...}: { {...}: {
imports = [./default.nix]; imports = [./default.nix];
wayland.windowManager.sway.config = let wayland.windowManager.sway.config = {
defaultOutput = "eDP-1"; output."eDP-1".scale = "1.25";
in {
output.${defaultOutput}.scale = "1.25";
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
output = defaultOutput; output = "eDP-1";
workspace = "1"; workspace = "1";
} }
]; ];

View file

@ -1,12 +1,10 @@
{...}: { {...}: {
imports = [./work.nix]; imports = [./work.nix];
wayland.windowManager.sway.config = let wayland.windowManager.sway.config = {
defaultOutput = "eDP-1"; output."eDP-1".scale = "1.25";
in {
output.${defaultOutput}.scale = "1.25";
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
output = defaultOutput; output = "eDP-1";
workspace = "1"; workspace = "1";
} }
]; ];

View file

@ -12,9 +12,7 @@
freecad freecad
prusa-slicer prusa-slicer
]; ];
wayland.windowManager.sway.config = let wayland.windowManager.sway.config = {
defaultOutput = "DP-2";
in {
output = { output = {
"Acer Technologies ED270R TJMEE0043W01" = { "Acer Technologies ED270R TJMEE0043W01" = {
mode = "1920x1080@165Hz"; mode = "1920x1080@165Hz";
@ -28,21 +26,25 @@
}; };
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
output = defaultOutput; output = "HDMI-A-1";
workspace = "1"; workspace = "1";
} }
{
output = "DP-2";
workspace = "2";
}
]; ];
startup = [ startup = [
{command = "${pkgs.xorg.xrandr}/bin/xrandr --output ${defaultOutput} --primary";} {command = "${pkgs.xorg.xrandr}/bin/xrandr --output DP-2 --primary";}
]; ];
}; };
programs.waybar.settings = { programs.waybar.settings = {
main.output = ["DP-2"]; main.output = ["DP-2"];
alt = { alt = {
inherit (config.programs.waybar.settings.main) layer position "sway/workspaces"; inherit (config.programs.waybar.settings.main) layer position "sway/workspaces" "sway/window" "clock";
name = "alt"; name = "alt";
output = ["HDMI-A-1"]; output = ["HDMI-A-1"];
"modules-left" = ["sway/workspaces"]; "modules-left" = ["sway/workspaces" "sway/window"];
"modules-center" = []; "modules-center" = [];
"modules-right" = ["clock"]; "modules-right" = ["clock"];
}; };

View file

@ -48,8 +48,6 @@
default = "󰋙 "; default = "󰋙 ";
urgent = "󰁡 "; urgent = "󰁡 ";
}; };
# show-special = false;
# sort-by-number = true;
all-outputs = false; all-outputs = false;
persistent-workspaces = { persistent-workspaces = {
"1" = []; "1" = [];