From 6b7b2c824012ca5ff46b8e74087e59808d597040 Mon Sep 17 00:00:00 2001 From: Danny de Vries Date: Sat, 12 Dec 2020 10:12:47 +0100 Subject: [PATCH] Added activity icon variables --- Get-TeamsStatus.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Get-TeamsStatus.ps1 b/Get-TeamsStatus.ps1 index aafcf6b..714c021 100644 --- a/Get-TeamsStatus.ps1 +++ b/Get-TeamsStatus.ps1 @@ -37,6 +37,10 @@ $lgOffline = "Offline" $lgNotInACall = "Not in a call" $lgInACall = "In a call" +# Set icons to use for call activity +$iconInACall = "mdi:phone-in-talk-outline" +$iconNotInACall = "mdi:phone-off" + ################################################################ # Don't edit the code below, unless you know what you're doing # ################################################################ @@ -116,13 +120,13 @@ Else { If ($TeamsActivity -like "*Resuming daemon App updates*" -or ` $TeamsActivity -like "*SfB:TeamsNoCall*") { $Activity = $lgNotInACall - $ActivityIcon = "mdi:phone-off" + $ActivityIcon = $iconNotInACall Write-Host $Activity } ElseIf ($TeamsActivity -like "*Pausing daemon App updates*" -or ` $TeamsActivity -like "*SfB:TeamsActiveCall*") { $Activity = $lgInACall - $ActivityIcon = "mdi:phone-in-talk-outline" + $ActivityIcon = $iconInACall Write-Host $Activity }