summaryrefslogtreecommitdiff
path: root/brightness-widget
diff options
context:
space:
mode:
Diffstat (limited to 'brightness-widget')
-rw-r--r--brightness-widget/br-wid-1.pngbin1701 -> 1355 bytes
-rw-r--r--brightness-widget/brightness.lua11
2 files changed, 9 insertions, 2 deletions
diff --git a/brightness-widget/br-wid-1.png b/brightness-widget/br-wid-1.png
index cb11b55..f9200eb 100644
--- a/brightness-widget/br-wid-1.png
+++ b/brightness-widget/br-wid-1.png
Binary files differ
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua
index 59977d7..f003eca 100644
--- a/brightness-widget/brightness.lua
+++ b/brightness-widget/brightness.lua
@@ -1,12 +1,19 @@
local wibox = require("wibox")
local awful = require("awful")
+local gears = require("gears")
local watch = require("awful.widget.watch")
brightness_widget = wibox.widget.textbox()
brightness_widget:set_font('Play 9')
-brightness_icon = wibox.widget.imagebox()
-brightness_icon:set_image("/usr/share/icons/Arc/actions/22/object-inverse.png")
+brightness_icon = wibox.widget {
+ {
+ image = "/usr/share/icons/Arc/status/symbolic/display-brightness-symbolic.svg",
+ resize = false,
+ widget = wibox.widget.imagebox,
+ },
+ layout = wibox.container.margin(brightness_icon, 0, 0, 3)
+}
watch(
"xbacklight -get", 1,