From b41dbea8ab41c06575ff87a765d5a8cdcb4e2879 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 4 Aug 2024 19:31:25 -0400 Subject: [PATCH] dustin: use teams for linux --- homeManagerModules/desktop/hyprland/scripts.nix | 4 ++-- homes/dustin/default.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/desktop/hyprland/scripts.nix b/homeManagerModules/desktop/hyprland/scripts.nix index c003b8fa..7c0879ac 100644 --- a/homeManagerModules/desktop/hyprland/scripts.nix +++ b/homeManagerModules/desktop/hyprland/scripts.nix @@ -9,10 +9,10 @@ virtKeyboard = lib.getExe' pkgs.squeekboard "squeekboard"; in { clamshell = pkgs.writeShellScript "hyprland-clamshell" '' - NUM_MONITORS=$(${hyprctl} monitors all | grep Monitor | wc --lines) EDP_STATUS=$(${hyprctl} monitors all | grep -A 15 "Monitor eDP-1" | grep "disabled:") + if [ "$1" == "on" ]; then - if [ $NUM_MONITORS -gt 1 ]; then + if [[ "$(${hyprctl} monitors all)" =~ \s(DP|HDMI)-[0-9]+ ]]; then ${hyprctl} keyword monitor "eDP-1, disable" fi elif [ "$1" == "off" ]; then diff --git a/homes/dustin/default.nix b/homes/dustin/default.nix index 28ff070e..030bf7c6 100644 --- a/homes/dustin/default.nix +++ b/homes/dustin/default.nix @@ -15,7 +15,7 @@ self: { fractal libreoffice-fresh plexamp - teams + teams-for-linux webcord xfce.xfce4-taskmanager zoom-us