diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-01 15:28:39 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-01 15:28:39 -0200 |
commit | 8c41f6c4fc9eff302285dd4285ad52b1df8d82a5 (patch) | |
tree | 0926a0d0f4e5ff24152c76bcc9c667e0b9eb2fea | |
parent | a4bfda5a45c207d2ecefe7f034619dde134488f8 (diff) | |
download | awesome-8c41f6c4fc9eff302285dd4285ad52b1df8d82a5.tar.gz awesome-8c41f6c4fc9eff302285dd4285ad52b1df8d82a5.tar.bz2 |
Removes unused battery widget
-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 |