Speaker
Slider widget with PulseAudio
sink support.
Drag slider to change volume, Right click to toggle mute.
Example:
{
"edge": "top",
"layer": "overlay",
"position": "left",
"widget": {
"type": "speaker",
"width": 20,
"height": "12.5%",
"frame_rate": 60
// "device": "EDIFIER W860NB Pro Analog Stereo",
// "device": "Family 17h/19h HD Audio Controller Analog Stereo",
// "redraw_only_on_pa_change": true,
}
}
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 `speaker`
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 sink.
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