Егор
90460d94ce
Abridge levels description, add example instead ( #683 )
...
fixes issue #681
2018-12-08 15:36:46 +00:00
Егор
fde7b6bb78
Added levels settings to the battery module ( #654 )
...
* Added levels settings to the battery module
Specify text for custom levels of the battery charge
* Round up charge the same way it is displayed
percentage value used to determine text from levels setting should be
round up the same way as when it is displayed on the screen
2018-12-03 11:41:02 +00:00
Duncan Elliot
e42efd8be7
Glyph based representation of numeric values ( #674 )
...
* Add make_glyph function to core utils
A new function (in line with similar functions such as make_bar),
make_glyph allows generating a glyph based representation of a numeric
value.
An example use case would be to use a set of battery level glyphs from
FontAwesome to represent battery charge percentage.
* Update battery module to use make_glyph function
Minor update to battery module to allow use of make_glyph function.
Default glyphs do not provide anything fancy, but allow a hook point for
using more interesting glyphs from fonts with battery icons.
2018-12-03 11:34:45 +00:00
Facetoe
27519031fe
Apply patch for battery notification spam. ( #607 )
...
Raised in #578 .
2017-09-20 00:37:22 +08:00
Facetoe
4ec39cacb0
Prevent battery module spamming notifications. ( #581 )
...
* Prevent battery module spamming notifications.
Raised in #578 .
* Fix pep8 issues.
2017-06-15 08:48:52 +07:00
pajowu
2ff5ea0262
Calculate battery percentage from energy instead of average of batteries ( #563 )
...
* Calculate battery percentage from energy instead of average of batteries
Average only works if all batteries have the same max energy level. If setups with different sizes the smaller ones influence the percentage overproportianly strong
* check for battery type before calculating percentage, use old way if needed
* translate charge into energy to always calculate correct percentage
2017-05-03 14:36:35 +07:00
Johannes Löthberg
123516fe54
battery: Make alert timeout configurable
...
Fixes #549 .
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-02-23 13:53:41 +01:00
Erik Johnson
97600454ed
Improve documentation for battery module
...
This adds a mention and usage example for ``formatp`` to hide the status
icon when the battery is full.
Resolves #232 .
2016-03-29 09:22:18 -05:00
enkore
612b8b07eb
Update modules to a7583a9
...
Not updated for various reasons:
clock,
dpms,
gpu_temp,
load,
mail,
mem_bar,
modsde,
net_speed,
pianobar,
pulseaudio,
regex [no named formatters],
runwatch,
shell,
solaar,
temp,
text,
updates,
weather,
whosonlocation,
xkblayout,
zabbix
This might break something: I can't test all these modules. If it does,
file a bug / open a PR / send me a note.
2016-01-27 19:53:33 +01:00
Lorian Coltof
ef58c5a6fa
Added the bar_design option in the format of the battery module
2016-01-03 16:43:29 +01:00
plumps
d1e3ee701a
small typo
2015-08-14 11:53:13 +02:00
plumps
873de77294
little typo in critical_level
2015-08-14 11:48:35 +02:00
plumps
f6d30ab093
changed alert_command to critical_level_command
...
this change is made to differentiate the low-energy from the critical
level one better.
new options:
- critical_level_command="<some command>"
- critical_level_percentage=int
2015-08-14 11:45:56 +02:00
plumps
f404874767
added the alert_command option
...
running a shell command before the battery is completely discharged
2015-08-10 18:41:49 +02:00
enkore
14b35c6081
Fix failing test, therefore fixing #89
2015-06-21 20:24:22 +02:00
enkore
ff519fbde0
Remove shebangs and coding tags
2015-06-17 10:32:10 +02:00
Mikael Knutsson
0bf17aa833
Fixed an accidental replace in a bullet list
2015-05-27 19:13:53 +02:00
Mikael Knutsson
848077dbfe
Fixed a typo in not_present_text
2015-05-27 19:13:53 +02:00
Mikael Knutsson
01a4a04fa1
The tests now complete successfully!
2015-05-27 19:13:53 +02:00
Mikael Knutsson
3e8e0b8b18
Added a mention of the new "ALL" battery_ident value which will summarise all batteries available
2015-05-27 19:13:53 +02:00
Mikael Knutsson
2251889855
Add support for multiple batteries
2015-05-27 19:13:53 +02:00
Gordon Schulz
c6c7e162b3
Add support for depleted batteries
...
This commit adds support for detecting depleted (empty) batteries.
Introduces new 'Depleted' battery status and a 'DPL' status mapping.
2015-01-06 12:35:45 +01:00
enkore
f6e910c114
PEP 8 (I'm bored): battery
2014-10-14 16:32:07 +02:00
enkore
eeeb629e98
Nicer doc markup
2014-10-12 11:35:44 +02:00
Argish42
15b9484e98
def-status
2014-08-28 13:16:31 +02:00
Argish42
de4bc9e70f
battery-full
2014-08-28 00:43:46 +02:00
Argish42
c91c792a7d
battery full
2014-08-28 00:28:23 +02:00
enkore
910de1d40b
dito, close #91
2014-07-31 17:20:09 +02:00
enkore
f07485ac81
Possible fix for #89
2014-07-30 19:42:56 +02:00
Josef Gajdusek
e38274b5ce
Added not_present_text and not_present_color parameters to the battery module
...
This commit also fixes i3pystatus crashing if the battery is removed while
running.
2014-07-10 16:13:43 +02:00
Josef Gajdusek
61168e22de
Add {bar} to the battery module
...
Add {bar} (from util.make_bar()) formatter to the battery module. Also removed
the final .strip() call as it was eating the padding used by make_bar.
2014-07-10 15:43:51 +02:00
Josef Gajdusek
ab36aee3c2
Add charging_color and full_color parameters to the battery module
2014-07-10 15:43:42 +02:00
enkore
00c230f4f8
Update battery tests, add case for #66 , fix #66
2014-06-13 23:23:29 +02:00
enkore
f06a76ad52
PEP8
2014-04-30 14:51:41 +02:00
Stéphane Brunner
6d8dba3468
Make battery colors configurable
2014-04-16 18:03:16 +02:00
Stéphane Brunner
5aef5f529a
CURRENT_NOW isn't always present
2014-04-16 18:03:16 +02:00
enkore
98ba2e69da
battery: Use alert_percentage for coloring the entry red
2013-10-24 15:36:51 +02:00
enkore
ff32f74bec
battery: formatting
2013-10-24 15:36:34 +02:00
enkore
af0f9fc585
battery: rename a few variables
2013-10-24 15:36:29 +02:00
enkore
7a20cdb8de
battery: use DesktopNotification
2013-10-24 15:36:15 +02:00
enkore
5eb271c684
Remove PrefixedKeyDict (unused)
2013-10-23 16:54:51 +02:00
enkore
6a3090ba8a
Releasing 3.27
...
* Add weather module (with most bugs fixed I hope)
* Add text module (in preparation for #22 )
* PulseAudio module: Add muted/unmuted options
2013-10-20 18:42:54 +02:00
enkore
cdbb2f3e36
While we're at it, some other PEP8 stuff.
...
[obama] Except too long lines, because big screens.
2013-10-09 09:58:38 +02:00
enkore
d63896d465
Avoid non-ASCII chars
2013-10-09 09:15:24 +02:00
enkore
9feb1b7281
Partial merge of #19
2013-10-07 11:52:30 +02:00
enkore
78c01dd3e5
PEP8
2013-10-01 15:22:09 +02:00
enkore
69b702d2f1
3.24: Introduce time wrapper, remove battery remaining_* formatter(!!!)
2013-08-04 23:40:19 +02:00
enkore
e848fc4a6f
Improve documentation
2013-07-31 21:39:59 +02:00
enkore
c5153ae12a
3.14: Battery: add status setting
...
I use it like this to save a few characters
status={
"DIS": "↓",
"CHR": "↑",
"FULL": "=",
}
2013-07-05 19:58:53 +02:00
enkore
d3c310e885
Fixed a bug where the battery alert would be displayed while charging
2013-04-09 16:29:37 +02:00