From 6b144cda89324eba31cae67af49464161dd67b10 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 15 Jun 2019 11:01:41 +0000 Subject: [PATCH] [awesome] remove long unused files --- home/.config/awesome/battery.lua | 32 -------------------------------- home/.config/awesome/divider.lua | 9 --------- home/.config/awesome/sensors.lua | 23 ----------------------- 3 files changed, 64 deletions(-) delete mode 100644 home/.config/awesome/battery.lua delete mode 100644 home/.config/awesome/divider.lua delete mode 100644 home/.config/awesome/sensors.lua diff --git a/home/.config/awesome/battery.lua b/home/.config/awesome/battery.lua deleted file mode 100644 index 013464c..0000000 --- a/home/.config/awesome/battery.lua +++ /dev/null @@ -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) diff --git a/home/.config/awesome/divider.lua b/home/.config/awesome/divider.lua deleted file mode 100644 index f2ff99b..0000000 --- a/home/.config/awesome/divider.lua +++ /dev/null @@ -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) diff --git a/home/.config/awesome/sensors.lua b/home/.config/awesome/sensors.lua deleted file mode 100644 index 85d9a29..0000000 --- a/home/.config/awesome/sensors.lua +++ /dev/null @@ -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)