hi3status-0.1.1.0: Status line for i3bar.

LicenseMIT
MaintainerJosh Kirklin (jjvk2@cam.ac.uk)
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Hi3Status.Blocks.Battery

Description

 

Synopsis

Documentation

data BatteryBlock Source

A battery indicator. Uses acpi as a backend.

Constructors

BatteryBlock 

Fields

format :: String

The format of the display text.

  • {icon} = Icon
  • {perc} = Percentage charge
  • {time} = Time remaining
batteryIcons :: [String]

A list of icons for the battery in order of increasing charge.

chargingIcon :: String

An icon to display when the battery is charging.

goodColor :: Maybe String

The color to use when the battery has plenty of charge.

lowColor :: Maybe String

The color to use when the battery is low on charge.

chargingColor :: Maybe String

The color to use when the battery is charging.

lowThreshold :: Int

For percentages below this threshold, lowColor is used; for percentages above, goodColor is used.