use simpler function

This commit is contained in:
petrucci4prez 2018-08-05 16:09:36 -04:00
parent dc38389c8a
commit 02110b5860
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ local __cairo_destroy = cairo_destroy
local __collectgarbage = collectgarbage
local using_ac = function()
return Util.conky('${acpiacadapter AC}') == 'on-line'
return Util.read_file('/sys/class/power_supply/AC/online') == '1'
end
local current_last_log_entry = Util.execute_cmd('tail -1 /var/log/pacman.log')