mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-27 19:34:57 -04:00
updates
This commit is contained in:
parent
bc4d4c403a
commit
715eb53860
57 changed files with 7755 additions and 3 deletions
33
.config/sketchybar/plugins/mic.sh
Executable file
33
.config/sketchybar/plugins/mic.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Detect microphone usage from various apps
|
||||
|
||||
# Check for apps that commonly use microphone
|
||||
MIC_USAGE=0
|
||||
|
||||
# Check for Zoom
|
||||
if pgrep -f "zoom.us" > /dev/null; then
|
||||
MIC_USAGE=1
|
||||
fi
|
||||
|
||||
# Check for Teams
|
||||
if pgrep -f "Microsoft Teams" > /dev/null; then
|
||||
MIC_USAGE=1
|
||||
fi
|
||||
|
||||
# Check for Discord
|
||||
if pgrep -f "Discord" > /dev/null; then
|
||||
MIC_USAGE=1
|
||||
fi
|
||||
|
||||
# Check for QuickTime recording
|
||||
if pgrep -f "QuickTime Player" > /dev/null && lsof | grep -q "AppleH13CamIn"; then
|
||||
MIC_USAGE=1
|
||||
fi
|
||||
|
||||
# Show/hide mic indicator based on usage
|
||||
if [ $MIC_USAGE -eq 1 ]; then
|
||||
sketchybar --set "$NAME" drawing=on background.drawing=on
|
||||
else
|
||||
sketchybar --set "$NAME" drawing=off background.drawing=off
|
||||
fi
|
||||
Loading…
Reference in a new issue