Polybar Modules microphone - ulises-jeremias/dotfiles GitHub Wiki

πŸŽ™οΈ Polybar Module: Microphone

The Microphone module is a custom script-based Polybar module that displays the mute/unmute status of your system microphone in real-time.

[!TIP] This module is useful for keeping track of your microphone state during meetings, recordings, or voice calls β€” right from your status bar.


🧩 How It Works

This module is built using the custom/script Polybar type and is powered by the dots microphone script.

It detects the microphone's mute state and updates its icon accordingly. It refreshes on a set interval and can be configured to toggle the mic on click.


πŸ“Έ Visual Indicators

Muted Unmuted
Muted Unmuted

βš™οΈ Configuration Example

[module/microphone]
type = custom/script
exec = dots microphone
click-left = dots microphone --toggle
interval = 2

[!TIP] Icons and refresh intervals can be adjusted to suit your theme or responsiveness needs.


βœ… Requirements

  • The dots microphone script (included in the dotfiles setup)
  • Microphone control tools (like pamixer, pactl, or amixer) as dependencies

🎨 Customization Tips

  • Change the icons used for muted/unmuted states in the dots microphone script
  • Use hover or tooltip support (if available in your Polybar fork) for more context

Stay aware of your mic state at all times β€” avoid the classic β€œyou’re muted!” moment 🎀