diff options
Diffstat (limited to 'config.dot')
-rw-r--r-- | config.dot/awesome.link/battery.lua | 13 | ||||
-rw-r--r-- | config.dot/awesome.link/widgets.lua | 1 |
2 files changed, 0 insertions, 14 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() diff --git a/config.dot/awesome.link/widgets.lua b/config.dot/awesome.link/widgets.lua index 475cba5..f1ab01a 100644 --- a/config.dot/awesome.link/widgets.lua +++ b/config.dot/awesome.link/widgets.lua @@ -1,7 +1,6 @@ -- {{{ Misc widgets dofile(configdir .. "/leds.lua") dofile(configdir .. "/volume.lua") -dofile(configdir .. "/battery.lua") if awful.util.file_readable(homedir .. "/.custom/awesome/awesompd.lua") then awesompd = true |