[awesome] remove long unused files

This commit is contained in:
Simon Bruder 2019-06-15 11:01:41 +00:00
parent c613821410
commit 6b144cda89
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 0 additions and 64 deletions

View file

@ -1,32 +0,0 @@
local timer = require("gears.timer")
local wibox = require("wibox")
local utils = require("utils")
local battery_widget = wibox.widget{
markup = 'U00',
align = 'center',
widget = wibox.widget.textbox
}
local battery_timer = timer({ timeout = 10 })
battery_timer:connect_signal("timeout", function() battery_update() end)
battery_timer:start()
function battery_update()
local percent = utils.readfile("/sys/class/power_supply/BAT1/capacity")
local status = utils.readfile("/sys/class/power_supply/BAT1/status")
if status == "Charging" then
prefix = "C"
elseif status == "Discharging" then
prefix = "D"
else
prefix = "F"
end
battery_widget:set_markup(prefix .. percent)
end
battery_update()
return wibox.container.margin(battery_widget, 4)

View file

@ -1,9 +0,0 @@
local wibox = require("wibox")
local divider_widget = wibox.widget{
markup = '|',
align = 'center',
widget = wibox.widget.textbox
}
return wibox.container.margin(divider_widget, 4)

View file

@ -1,23 +0,0 @@
local timer = require("gears.timer")
local wibox = require("wibox")
local utils = require("utils")
local sensors_widget = wibox.widget{
markup = '00°C',
align = 'center',
widget = wibox.widget.textbox
}
local sensors_timer = timer({ timeout = 10 })
sensors_timer:connect_signal("timeout", function() sensors_update() end)
sensors_timer:start()
function sensors_update()
local temp = utils.readfile("/sys/class/thermal/thermal_zone1/temp") / 1000
sensors_widget:set_markup(string.format("%02d", temp) .. "°C")
end
sensors_update()
return wibox.container.margin(sensors_widget, 4)