Function penrose_ui::bar::widgets::sys::helpers::amixer_text

source ·
pub fn amixer_text(channel: &str) -> Option<String>
Expand description

Parse the current volume as a percentage from amixer.

Expected output format: $ amixer sget Master Simple mixer control ‘Master’,0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 127 Mono: Playback 0 [0%] [-63.50dB] [on]