Xfce Wiki

Sub domains

Battery Monitor - xfce4-battery-plugin

A battery monitor panel plugin for Xfce4, compatible with APM and ACPI, for Linux and *BSD.


Add the plugin to the panel. Right-click on the added plugin to open the settings window. This plugin has three tabs:

  1. Level and actions: Specify which command to run when the battery goes below a percentage;
  2. Bar colours: Specify which colors to use for the bar on different battery percentages;
  3. Display: Customize what icons and label see on the panel.

Level and action tab

Bar colours tab

Display tab

Latest Release

1.1.3 (2019/08/31)


SHA-256 Hash: 12be0a44d16bd1e1618513ee64f946814925872db7d1c1188ab1454b00d040a3
SHA-1 Hash: e3796a6cc3921d8b52a4d6fd5bb83fd4806af091
MD5 Hash: 9f82c7e77de0a417716d68d33367973b

Release History

1.0.5 (2012/05/30)

  • Better compliance with the panel plugin HIG
  • Don't set labels orientation on 4.8 panels (bug #8961)
  • Set progressbar orientation in setup_battmon (bug #8935)

1.0.4 (2012/05/14)

  • Fix compilation with panel version < 4.9

1.0.3 (2012/05/13)

  • Improve plugin UI in vertical/deskbar/multirows panels

1.0.2 (2012/04/30)

  • change icon depending on charge level/ac status (bug #7768)
  • install icons from xfpm
  • add AC color state and allow user-configurable colors (bug #6757)
  • implement read_acpi_state()/read_acpi_inof() on FreeBSD (bug #2814)
  • make the progressbar optional
  • improve battery removal detection
  • rework configuration dialog to use tabs
  • only display time if it's valid

1.0.1 (2012/04/17)

  • build the plugin as a module
  • port to libxfce4ui (bug #8095)
  • port to panel 4.9+ (bug #8393)
  • add about dialog
  • don't show percentage/time if charge is 0 (bug #8631)

1.0.0 (2011/01/03)

  • Translated in 15 more languages, for a total of 38
  • Make the warning messages non modal, fixing bug #3008
  • Fix fan and temperature detection, fixing bug #2884
  • Showing “No battery, AC online” when no battery is inserted
  • Fix compilation on OpenBSD
  • Fix compilation on amd64 FreeBSD, fixing bug #3811
  • Fix compile issue on linux, fixing bug #3938
  • Various other small compile fixes and cleanup

Back To Top

Recent Changes

Getting it

The normal (and best) way to get this plugin is to use the package manager or port system of your operating system.

If it isn't available there, or if you want a different version, you can download it in source form from http://archive.xfce.org/src/panel-plugins/xfce4-battery-plugin/.

Source code repository

Reporting Bugs

If you encounter a bug in Battery, please submit a bug report to the Xfce Bugzilla. Please note that to do this you will need to have / create an account on Bugzilla.

Before reporting a new bug, please try your best to check if it has already been reported (see the latest reports below). Click here for a full list of bug reports.

File a new bug or enhancement request

Open Bugs

Back To Top

Return to Main Xfce4-panel page