From 81088319aa6d11355aca25f051edc723203253ee Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 24 Sep 2024 11:58:05 -0700 Subject: [PATCH] thinkpads: configure second monitor for t480 --- hosts/thinkpads/i3.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/hosts/thinkpads/i3.nix b/hosts/thinkpads/i3.nix index d37106c..2b34753 100644 --- a/hosts/thinkpads/i3.nix +++ b/hosts/thinkpads/i3.nix @@ -5,8 +5,21 @@ brightnessctl ]; - xsession.windowManager.i3.config.keybindings = lib.mkOptionDefault { - "XF86MonBrightnessUp" = "exec --no-startup-id brightnessctl set +5%"; - "XF86MonBrightnessDown" = "exec --no-startup-id brightnessctl set 5%-"; + xsession.windowManager.i3.config = { + keybindings = lib.mkOptionDefault { + "XF86MonBrightnessUp" = "exec --no-startup-id brightnessctl set +5%"; + "XF86MonBrightnessDown" = "exec --no-startup-id brightnessctl set 5%-"; + }; + + workspaceOutputAssign = [ + { + output = "eDP-1"; + workspace = "1"; + } + { + output = "HDMI-2"; + workspace = "2"; + } + ]; }; }