b2b73b5d91
feat(battery): add %percentage_raw% token ( #1756 )
...
Displays real percentage instead of being set to 100 if percentage > full-at
* battery: added percentage_raw token, which ignores full-at
* battery: current_percentage returns raw, added clamping function instead
* battery: clamp percentage used by build()
Made clamp_percentage() const to allow its usage inside build()
* battery: read and return percentage in one line
2019-05-14 15:01:54 +02:00
cc334e5040
fix(battery): check current state to decide which framerate to use
2018-05-02 11:44:55 +02:00
2a9d5db179
feat(battery): implement animation-discharging
2018-05-02 11:44:55 +02:00
4d48ffed83
fix(battery): check without using path_battery
2018-02-11 20:21:43 +01:00
2f113446c0
fix(battery): capture path_battery by copy ( #992 )
...
path_battery goes out of scope, so the stack reference becomes garbage
Fixes #985
2018-02-02 10:42:20 +01:00
2a056d5b23
fix(power): add comments to explain current/power_now
2018-01-30 21:24:51 +01:00
95d3b4f1eb
fix(battery): use power_now correctly
2018-01-30 21:24:51 +01:00
a00f052002
formatting changes
2017-02-23 09:04:49 -07:00
93c425fdfe
Add battery usage/charge in watts token %consumption%
2017-02-16 14:35:43 -07:00
3292cea786
refactor(tokens): Move token suffix to configuration
2017-01-14 18:00:35 +01:00
d7d0fbcae4
fix(battery): Safety check
...
Make sure returned label is valid before access.
Refs #318
2017-01-11 15:01:39 +01:00
8cc885c316
refactor: Cleanup
2017-01-11 03:07:28 +01:00
eeaad512a9
fix(battery): Calculation of remaining dis-/charge seconds
...
- Optimize calculation
- Do not allow division by zero
Refs #303
2017-01-09 14:58:14 +01:00
ef442025fa
fix(battery): File contents comparison
...
Refs #297
2017-01-07 12:08:16 +01:00
611ed0e348
fix(battery): Cap value of full-at
2017-01-01 04:00:35 +01:00
22b93a1167
fix(battery): Use full namespace
2016-12-31 07:32:57 +01:00
ad0af86a7b
refactor(battery): Abstract value readers
...
Refs #263 , #245
2016-12-31 04:20:48 +01:00
78bb3695e6
refactor(config): Deduce return type from default value
2016-12-30 23:32:05 +01:00
24aba14541
fix(battery): Safety check
...
Refs #269
2016-12-24 05:29:12 +01:00
bc9b9f0d12
refactor: Cleanup
2016-12-21 23:22:02 +01:00
788a7ca3a3
refactor(modules): Get rid of .inl files
2016-12-21 09:21:35 +01:00
7979f5b3d4
refactor(modules): Handle events using signal_receiver
2016-12-21 08:38:44 +01:00
c01f111e34
refactor(modules): Move setup to constructor
2016-12-21 08:00:09 +01:00
a89c4ef2dd
refactor: Move all event handling to the controller
2016-12-20 05:16:04 +01:00
09ea07b750
refactor(battery): Use charge_{now,full} to calculate percentage
2016-12-16 09:58:54 +01:00
ff9be848c7
refactor(clang-tidy): Apply fixes
2016-11-25 21:58:49 +01:00
c1162960cc
fix(battery): Try several value files
...
Fixes #177
2016-11-21 08:30:25 +01:00
c6d85b2b92
refactor: Optimize build
2016-11-20 23:04:31 +01:00
88c8bbd940
refactor: Fwd declare drawtypes
...
Ref #164
2016-11-19 15:49:06 +01:00
38f9ba81cd
feat(battery): Estimated time remaining
...
Adds a new token %time% that will display an
estimate of the remaining time until fully
charged/discharged
2016-11-19 15:42:31 +01:00
489d429644
refactor(ci): Split into scripts
2016-11-19 12:23:02 +01:00
fd57ab0f3d
fix: project rename
2016-11-19 06:26:07 +01:00
a1472dfd0f
refactor(battery): Poll values by default
...
Fixes jaagr/lemonbuddy#140
2016-11-03 15:21:46 +01:00
52c08675e6
fix(battery): Ignore the fake inotify event
...
Assume fake event if polling flag is set.
Fixes jaagr/lemonbuddy#140
2016-11-03 14:40:12 +01:00
af2289e397
fix(battery): Poll until real inotify event occurs
...
Fixes jaagr/lemonbuddy#140
2016-11-03 12:56:35 +01:00
e7cb345cec
wip: Separate source from definitions
2016-11-03 12:54:32 +01:00
d359ab6057
refactor: Application rewrite
2016-10-10 14:52:57 +02:00
8caa95de7f
fix: Initialize token labels in constructor
2016-06-22 19:07:57 +02:00
5f0a90722a
fix(battery): Replace debug message with trace
2016-06-21 07:50:05 +02:00
89ea8d9146
fix(battery): Store paths
2016-06-21 04:38:01 +02:00
e1f8c001dd
refactor: Pass by value
2016-06-21 04:23:23 +02:00
ec92ac91ab
feat(core): Custom thread sleep
...
Makes it possible to manually wake up sleeping threads
2016-06-20 22:11:58 +02:00
ea15f4a5de
fix(battery): Prevent broadcast if values are unchanged
2016-06-14 05:24:56 +02:00
39d3f61497
refactor(core): Clean-up
...
- use "#pragma once" instead of the regular include guard
- fix errors and warnings reported by cppcheck
2016-06-02 01:32:06 +02:00
f1e7991279
fix(battery): Check file existance
2016-06-01 16:06:36 +02:00
688ca94658
fix(battery): Remove pointless lock
2016-05-31 15:51:48 +02:00
260519ec55
fix(battery): Better safety checks
2016-05-31 15:40:17 +02:00
de1d5f3f4a
fix(battery): Make it possible to disable polling
2016-05-31 03:05:09 +02:00
4a6a36f08f
fix(battery): Poll capacity level
...
Some distros doesn't report any inotify event's for
the filesystem where the battery capacity file is located.
Resort to polling for now...
2016-05-31 02:55:08 +02:00
23b2cc69dd
fix(battery): Proper handling of charge animation
...
Closes jaagr/lemonbuddy#3
2016-05-26 11:50:01 +02:00