Skip to content

stefano-m/lua-waybar-upower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upower Waybar Custom Module

A custom module that can be used with Waybar to display the status of your battery from Upower.

Notice

This module is developed in my spare time, is maintained on a best-effort basis and updated so that it "Works for me"™.

Usage

A nix flake is provided to install the script with all its dependencies. For example, it can be integrated with home-manager.

You can run the script directly with

lua waybar_upower.lua run

or the wrapper script provided by the nix flake with

waybar_upower run

See also the examples in the [examples](./examples) directory.

Nix flake

Build with

nix build '.#default'

and test with

nix build '.#default.passthru.tests'

Attributes for Lua 5.2 (default), Lua 5.3 an LuaJit are provided.

Dependencies

  • GLib
  • Lua >= 5.2
  • cjson
  • lgi
  • upower_dbus

About

A custom module that can be used with Waybar to display the status of your battery from Upower.

Topics

Resources

License

Stars

Watchers

Forks

Contributors