awesome-wm-widgets/batteryarc-widget
Pavel Makhov 81ca86abde revert previous commit (e0abe1c474), as it broke widget when there are more than one battery 2019-03-29 17:33:00 -04:00
..
10_c.png batteryarc widget 2017-10-09 17:14:03 -04:00
10_d.png batteryarc widget 2017-10-09 17:14:03 -04:00
20_c.png batteryarc widget 2017-10-09 17:14:03 -04:00
20_d.png batteryarc widget 2017-10-09 17:14:03 -04:00
80_c.png batteryarc widget 2017-10-09 17:14:03 -04:00
80_d.png batteryarc widget 2017-10-09 17:14:03 -04:00
README.md Fix batteryarc_widget require statement 2018-07-11 12:36:35 +02:00
batteryarc.lua revert previous commit (e0abe1c474), as it broke widget when there are more than one battery 2019-03-29 17:33:00 -04:00
spaceman.jpg place battery-arc warning icon inside widget folder 2019-03-23 22:41:06 -04:00

README.md

Batteryarc widget

This widget is more informative version of battery widget.

Depending of the battery status it could look following ways:

  • 10_d - less than 15 percent
  • 10_c - less than 15 percent, charging
  • 20_d - between 15 and 40 percent
  • 20_c - between 15 and 40 percent, charging
  • 80_d - more than 40 percent
  • 80_c - more than 40 percent, charging

Widget uses following beautiful variables with values:

theme.widget_main_color = "#74aeab"
theme.widget_red = "#e53935"
theme.widget_yellow = "#c0ca33"
theme.widget_green = "#43a047"
theme.widget_black = "#000000"
theme.widget_transparent = "#00000000"

which means that you need to copy the code above and paste it in your theme.lua. Otherwise you can change colors directly in the widget.

Installation

Clone repo, include widget and use it in rc.lua:

local batteryarc_widget = require("awesome-wm-widgets.batteryarc-widget.batteryarc")
...
s.mytasklist, -- Middle widget
	{ -- Right widgets
    	layout = wibox.layout.fixed.horizontal,
		...
		batteryarc_widget,
		...

You can get the icon for warning popup here

Troubleshooting

In case of any doubts or questions don't hesitate to raise an issue.