Skip to content

Commit

Permalink
Remove invalid escapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaed committed Apr 27, 2017
1 parent 575112d commit 645b8fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rc.lua
Expand Up @@ -182,9 +182,9 @@ function battery_status ()
local fd=io.popen("acpitool -b", "r") --list present batteries
local line=fd:read()
while line do --there might be several batteries.
local battery_num = string.match(line, "Battery \#(%d+)")
local battery_load = string.match(line, " (%d*\.%d+)%%")
local time_rem = string.match(line, "(%d+\:%d+)\:%d+")
local battery_num = string.match(line, "Battery #(%d+)")
local battery_load = string.match(line, " (%d*.%d+)%%")
local time_rem = string.match(line, "(%d+:%d+):%d+")
if time_rem == "00:00" then time_rem = nil end
local discharging
if string.match(line, "discharging")=="discharging" then --discharging: always red
Expand Down

0 comments on commit 645b8fc

Please sign in to comment.