diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:32:17 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-17 22:32:17 -0500 |
commit | df86f7b92a3d0985d6d8c9ab1d027eeddb7b0443 (patch) | |
tree | b5e27ebd0cea42abee2b3ef0981087cd2c3a57eb /awesome/widgets/battery.lua | |
parent | 572382a9ce99162bd93d2d6e3fd789f2c99bf420 (diff) | |
download | dotconfig-df86f7b92a3d0985d6d8c9ab1d027eeddb7b0443.tar.xz dotconfig-df86f7b92a3d0985d6d8c9ab1d027eeddb7b0443.zip |
remove awesome config, push to own repo
Diffstat (limited to 'awesome/widgets/battery.lua')
-rw-r--r-- | awesome/widgets/battery.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/awesome/widgets/battery.lua b/awesome/widgets/battery.lua deleted file mode 100644 index f6e6860..0000000 --- a/awesome/widgets/battery.lua +++ /dev/null @@ -1,24 +0,0 @@ -local awful = require("awful") -local wibox = require("wibox") -local naughty = require("naughty") - -local widget = wibox.widget.textbox() - --- update widget on lowbat output -local lowbat_pid = awful.spawn.with_line_callback("lowbat", { - stdout = function(stdout) - widget:set_text(stdout) - end, - stderr = function(stderr) - naughty.notify({ - preset = naughty.config.presets.critical, - title = "lowbat error", - text = stderr - }) - end, -}) - --- kill current lowbat on refresh/exit -awesome.connect_signal("exit", function() awful.spawn("kill " .. lowbat_pid) end) - -return widget |