Commit Graph

21 Commits

Author SHA1 Message Date
Marvin Ewald 16e2e73336
Add capacity field to battery widget (#504) 2021-05-07 16:41:39 +00:00
Anders Fugmann 15bba30180 Fix ac detection for bat widget.
Multiple power sources may exist under /sys/class/power_supply/.
Durring autodetection (get_batteries), will case the detected ac to be reset to 'AC0' if a power source not starting with BAT or AC.

This change skips updating the name of the ac device if the devices does not start with 'AC'
2021-01-18 17:47:40 +01:00
staticssleever668 0a2ff9e1de
Fix various luacheck warnings 2020-11-30 00:58:47 +03:00
Tristan Ross 502a1a28ba Added args.widget info all widgets that can take it 2020-10-31 10:11:29 -07:00
Luca CPZ af125b324e
Update bat.lua
Ensure that status is never nil. Closes #451
2020-04-17 20:25:55 -05:00
cool-cool-sweat c96ce93c28 bat: allow disabling notification for full charge 2019-01-12 18:57:54 -05:00
lcpz 233768f096 API change: lain.widget.contrib.tpbat has been rewritten and renamed to lain.widget.contrib.tp_smapi
lain.widget.cal: honour followtag argument

lightened calls to libraries
2018-11-28 20:01:22 +00:00
Luca CPZ 47ee721339 widget.bat: put {batteries,ac} back to local 2018-08-01 11:26:30 +02:00
Luca CPZ 907529920f widget.bat: fixed ac variable; improved autodetection; #397 2018-07-31 16:07:39 +02:00
Luca CPZ f42fe32d99 widget.bat: add failsafe AC 2018-07-31 12:35:59 +02:00
Luca CPZ 819600e94a widget.bat: move fallback ac to autodetection function 2018-07-26 13:20:01 +02:00
Luca CPZ 89ae530806 widget.bat: autodetection function; closes #340 #389 2018-07-25 12:43:01 +02:00
Aleksandr Beliaev 31d64906a0 Weather widget rewritten; first authorship updated 2018-02-15 12:24:31 +01:00
Luca CPZ 003beff59f bat: notify full only once before discharging 2018-01-23 14:09:08 +01:00
cool-cool-sweat cec3f2913b bat.lua: add notification for full charge 2018-01-23 11:39:03 +01:00
Luke Bonham 1b12fd2319 removed whitespaced signatures; wiki updated 2017-09-04 12:43:00 +02:00
Luke Bonham 2a5d13920f bat: critical/low levels notification configurable; closes #335 2017-04-01 12:49:58 +02:00
Luke Bonham a6ca6ab030 fix #321 2017-02-24 13:08:13 +01:00
copycat-killer 5f32175e3d wiki updated; #314 2017-02-13 13:33:44 +01:00
copycat-killer 586c54a257 pull #307: worker -> factory 2017-02-08 20:45:11 +01:00
copycat-killer 8d3868d7ce lain.widgets -> lain.widget 2017-02-08 14:20:26 +01:00