mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-30 04:22:47 +00:00
31 lines
851 B
Markdown
31 lines
851 B
Markdown
# miccontrol
|
|
|
|
Shows the status of you microphone. Left and right click toggles mute.
|
|
|
|
 
|
|
|
|
# Usage
|
|
|
|
This block can be run on an interval or by signal. To run the block using a
|
|
signal, it is recommended to add the following to your i3 config.
|
|
|
|
```
|
|
# toggle mute
|
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute "alsa_input.pci-0000_00_1f.3.analog-stereo" toggle && pkill -RTMIN+10 i3blocks
|
|
```
|
|
where the `alsa_input.pci-0000_00_1f.3.analog-stereo` after `set-source-mute` can be changed to another source name
|
|
and `10` in `-RTMIN+10` can be replaced to another signal number,
|
|
as long as it agrees what you put for `signal=` in your i3blocks config.
|
|
|
|
# Config
|
|
|
|
```
|
|
[miccontrol]
|
|
command=$SCRIPT_DIR/miccontrol
|
|
#label=MIC
|
|
SOURCE=alsa_input.pci-0000_00_1f.3.analog-stereo
|
|
interval=10
|
|
signal=10
|
|
```
|
|
|