aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/battery.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config.dot/awesome.link/battery.lua')
-rw-r--r--config.dot/awesome.link/battery.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/config.dot/awesome.link/battery.lua b/config.dot/awesome.link/battery.lua
deleted file mode 100644
index 5e3523d..0000000
--- a/config.dot/awesome.link/battery.lua
+++ /dev/null
@@ -1,13 +0,0 @@
--- See http://blog.lick-me.org/2013/08/yet-another-battery-widget-awesome-3-5-1/
-battery_widget = widget({ type = "textbox", name = "battery", align = "right" })
-
-function getBatteryStatus(widget)
- local fd= io.popen(homedir .. "/apps/utils-battery/battery")
- local status = fd:read()
- fd:close()
- widget.text = status
-end
-
-batteryTimer = timer({ timeout = 1 })
-batteryTimer:add_signal("timeout", function () getBatteryStatus(battery_widget) end)
-batteryTimer:start()