summaryrefslogtreecommitdiff
path: root/brightness-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2017-02-03 22:15:16 -0500
committerstreetturtle <streetturtle@gmail.com>2017-02-03 22:15:16 -0500
commit52590602d91d705c9a356359b56f45c55cb4d9d8 (patch)
treef4a185265c806459cf8e9a225730d1877eca42c3 /brightness-widget
parent78fa8e629da7ea64ed54a2a8d6d08857b83e4324 (diff)
improve widget rendering and use wibox.widget wrapper
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,