From f0b32f45746c026d402651013b7e98315d6956a1 Mon Sep 17 00:00:00 2001 From: delta Date: Sat, 4 Mar 2023 22:04:55 +0100 Subject: restructure awesome config, add fresnel --- .../awesome/components/statusbar/brightness.lua | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 .config/awesome/components/statusbar/brightness.lua (limited to '.config/awesome/components/statusbar/brightness.lua') diff --git a/.config/awesome/components/statusbar/brightness.lua b/.config/awesome/components/statusbar/brightness.lua deleted file mode 100644 index eb37f06..0000000 --- a/.config/awesome/components/statusbar/brightness.lua +++ /dev/null @@ -1,33 +0,0 @@ -local awful = require "awful" -local xresources = require "beautiful.xresources" -local dpi = xresources.apply_dpi -local vars = require "themes.prismite.vars" -local wibox = require "wibox" - - -local brightness = wibox.widget { - widget = wibox.container.place, - { - widget = wibox.widget.textbox, - font = vars.font, - text = "" - }, -} - -awful.tooltip { - objects = { brightness }, - timer_function = function() - return math.floor(tonumber(io.popen("brightnessctl g"):read("*a"):sub(0, -2)) / 255 * 100) .. "%" - end, - timeout = 0.5, - bg = vars.colors.bg, - fg = vars.colors.fg, - border_color = vars.colors.bright.black, - border_width = vars.border_width, - font = vars.font, - shape = vars.shape, - margin_leftright = dpi(6), - margin_topbottom = dpi(6) -} - -return brightness -- cgit v1.2.3