Skip to content

Commit

Permalink
battery refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bytes-chaser committed Aug 10, 2022
1 parent f53694f commit 804b0c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .config/awesome/watchdogs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ end

watchdogs.callbacks[watchdogs.signals.pow] = function(widget, stdout)
local capacity = stdout:match(' (.*)')
awesome.emit_signal("sysstat::pow", tonumber(capacity), '%')
local status = stdout:match('(.*) ')
awesome.emit_signal("sysstat::pow", tonumber(capacity), '%', status)
end

local check_excluded_repo_path = function(w)
Expand Down

0 comments on commit 804b0c2

Please sign in to comment.