Microphone
Slider widget with PulseAudio
source support.
Drag slider to change volume, Right click to toggle mute.
Example:
{
"edge": "top",
"position": "left",
"layer": "overlay",
"margin": {
"left": "12.5%"
},
"widget": {
"type": "microphone",
"width": 20,
"height": "12.5%",
"frame_rate": 60,
"fg_color": "#BD93F9"
}
}
Extern Slide
All Slide
configuration applied here.
One thing need to be mentioned. in event_map
, right click is taken up for mute channel
type*
const `microphone`
device
Device description for sink or source. you can find it with pamixer --list-sinks/--list-sources
at the end of each line.
Provide null
to use default source.
Type: null | string
Default: null
mute_color
Color of the foreground when muted.
Support: #rgb
/#rrggbb
/#rrrgggbbb
/rgb(r, g, b)
/rgba(r, g, b, a)
...
For full info, check RGBA
Type: string
Default: #000000
redraw_only_on_pa_change
Drag slider won't affect progress immediately. Send the changed value first and redraw after PulseAudio
sink or source info changes
Type: bool
Default: false