[awesome] remove long unused files
This commit is contained in:
parent
c613821410
commit
6b144cda89
|
@ -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)
|
|
@ -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)
|
|
@ -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)
|
Reference in a new issue