Documentation ¶
Overview ¶
Package volume provides an i3bar module that interfaces with alsa or pulse to display and control the system volume.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RateLimiter = rate.NewLimiter(rate.Every(20*time.Millisecond), 1)
RateLimiter throttles volume updates to once every ~20ms to avoid unexpected behaviour.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller for a volume module implementation.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents a bar.Module that displays volume information.
type Provider ¶
type Provider interface { // Worker pushes updates and errors to the provided ErrorValue. Worker(s *value.ErrorValue) }
Provider is the interface that must be implemented by individual volume implementations.
type Volume ¶
Volume represents the current audio volume and mute state.
func MakeVolume ¶
func MakeVolume(min, max, volume int64, mute bool, controller Controller) Volume
MakeVolume creates a Volume instance with the given data.
Click to show internal directories.
Click to hide internal directories.