mirror of https://github.com/lcpz/lain.git
#32 fix attempt 2
This commit is contained in:
parent
15df52747e
commit
5c9ddf31ae
|
@ -124,7 +124,7 @@ local function worker(args)
|
|||
-- notifications for low and critical states
|
||||
if bat_now.status == "Discharging" and notify == "on" and bat_now.perc ~= nil
|
||||
then
|
||||
local nperc = tonumber(bat_now.perc)
|
||||
local nperc = tonumber(bat_now.perc) or 100
|
||||
if nperc <= 5
|
||||
then
|
||||
bat.id = naughty.notify({
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 434d32a7dac5770ed7ddd1581967df7d7aeb76be
|
||||
Subproject commit b35f6931d9685d53e10a051c1d558151331b041f
|
Loading…
Reference in New Issue