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];
wayland.windowManager.sway.config = let
defaultOutput = "eDP-1";
in {
output.${defaultOutput}.scale = "1.25";
wayland.windowManager.sway.config = {
output."eDP-1".scale = "1.25";
workspaceOutputAssign = [
{
output = defaultOutput;
output = "eDP-1";
workspace = "1";
}
];

View file

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

View file

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

View file

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