From 15f0020ccf10f1e2edc602ef4768a6afdfc54d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Fri, 15 Mar 2024 15:31:32 +0100 Subject: [PATCH] 235 current 1970-01-01 01:00:00 24.05.20240312.0ad13a6 6.6.21 * --- modules/home-manager/sway.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index 4a29023..248cdc1 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -270,6 +270,11 @@ in { }; window.titlebar = false; }; + + extraConfig = '' + bindswitch --reload --locked lid:on exec "[$(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq '. | length') -gt 1] && swaymsg output eDP-1 disable" + bindswitch --reload --locked lid:off output eDP-1 enable + ''; }; programs.waybar = {