EnglishFrenchSpanish

OnWorks favicon

xbattbar - Online in the Cloud

Run xbattbar in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xbattbar that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


xbattbar — show battery status in X Window

SYNOPSIS


xbattbar [-a] [-t thickness] [-p interval] [-I color] [-O color] [-i color] [-o color] [-c]
[-r] [-s script-name] [top | bottom | left | right]

DESCRIPTION


xbattbar shows the current (laptop) battery status in the X window environment. Battery
status is obtained through the APM kernel module. The APM kernel module depends on your
UNIX platform, therefore, consult your documentation for its detail.

xbattbar shows its battery status in a simple bar indicator. -a option makes the indicator
window keep always on top of your screen. The thickness of the indicator is 3 pixels in
default and you can set the thickness as a parameter of -t option. This indicator is
appeared in the bottom of the display, as its default. The option top, left, or right
forces the status indicator to be at the top, left, and right of the display, respectively.
Though it's a default, you can also use buttom as the option.

In the case the AC line is on-line (plugged in), its color of the bar indicator consists of
"green" and "olive drab" portions. The "green" portion shows its battery charging level.
These colors can be changed by -I and -O options. In the other case (AC line is off-line),
the "blue" portion of the bar indicator shows the percentage of its remaining battery level.
The color conbination for the AC off-line case can be changed by -i and -o options.

xbattbar tries to know its battery status in every 10 seconds in default. This is achived
by APM polling.

If it is used with option -c then ACPI polling will be used.

If it is used with option -r then sysfs polling will be used (thanks to Elena Grandi
<[email protected]> for the script).

You can use your external script for check battery status. It must print two lines to STDOUT
'battery=value' and 'ac_line=on|off

-p option sets the polling interval in second.

If the mouse cursor enters in the status indicator, the diagnosis window appears in the
center of the display, which shows both AC line status and battery remaining level. This
diagnosis window disappears if the mouse cursor leaves from the status indicator.

Use xbattbar online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad