Skip to content

Junker/stumpwm-battery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StumpWM Battery

Battery information module for StumpWM

Requirements

Installation

cd ~/.stumpwm.d/modules/
git clone https://github.com/Junker/stumpwm-battery battery

`

;; (ql:quickload "trivial-battery")
(stumpwm:add-to-load-path "~/.stumpwm.d/modules/battery")
(load-module "battery")

Usage

(setf battery:*notify-levels* '((10 . :critical)
                                (30 . :warning)
                                (45 . :warning)))
(battery:init)

Commands

  • battery-status

Parameters

  • battery:*check-interval* - Interval in seconds for battery check (Default: 15).
  • battery:*notify-levels* - List of notification levels. Set it to NIL to disable notifications.
  • battery:*percentage* - Current battery percentage.
  • battery:*chargingp* - Current battery charging status.

Modeline

%B - battery formatter

Parameters for modeline

  • battery:*modeline-fmt* - format of battery modeline (default: "%c %b")
    • %c - battery charging status ("+/-")
    • %b - battery percentage