LinuxCommandLibrary

cbatticon

lightweight battery indicator for the system tray

TLDR

Show the battery icon in the system tray

$ cbatticon
copy
Set the update interval to 20 seconds
$ cbatticon -u [20]
copy
List available icon types
$ cbatticon -t
copy
Show with a specific icon type
$ cbatticon -i [standard|notification|symbolic]
copy
List available power supplies
$ cbatticon -p
copy
Show icon for a specific battery
$ cbatticon [BAT0]
copy
Set critical level command
$ cbatticon -r [5] -c [poweroff]
copy

SYNOPSIS

cbatticon [options] [battery]

DESCRIPTION

cbatticon is a lightweight battery indicator for the system tray. It displays battery status with configurable icons and can execute commands when battery reaches critical levels.
The tool is designed for minimal window managers and desktop environments that don't include battery monitoring.

PARAMETERS

-u, --update-interval seconds

Update interval in seconds
-i, --icon-type type
Icon style: standard, notification, or symbolic
-t, --list-icon-types
List available icon types
-p, --list-power-supplies
List available power supplies
-r, --critical-level percent
Set critical battery level percentage
-c, --command-critical-level cmd
Command to run at critical level
-l, --low-level percent
Set low battery level percentage

CAVEATS

Requires a system tray to display. May not work with Wayland compositors that lack tray support. Critical level commands run with user privileges.

SEE ALSO

upower(1), acpi(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community