Module penrose_ui::bar::widgets::sys::helpers

source ·
Expand description

Helper functions for obtaining system information for use in status bar widgets

Functions§

  • Parse the current volume as a percentage from amixer.
  • This finds the first battery (BAT) file it finds; so far only confirmed working on Linux.
  • Fetch the requested battery’s charge as a percentage of its total along with an indicator of whether it is charging or discharging.
  • Fetch the current date and time in YYYY-MM-DD HH:MM format using the date command line program.
  • Fetch the active ESSID and associated signal quality for the active wifi network.