summaryrefslogtreecommitdiff
path: root/experiments/volume/arc-widget.lua
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-11-09 15:54:33 -0500
committerstreetturtle <streetturtle@gmail.com>2020-11-09 15:54:33 -0500
commita5ab50defbbb88f5d5b257437d7d4c4cadfe24a7 (patch)
treee513170089184069a1d16d51b708024ff061c333 /experiments/volume/arc-widget.lua
parent3cf9ce8ffec34e59f349f16c2fffaa68eafaac92 (diff)
[experiments-volume] add icon widget
Diffstat (limited to 'experiments/volume/arc-widget.lua')
-rw-r--r--experiments/volume/arc-widget.lua37
1 files changed, 0 insertions, 37 deletions
diff --git a/experiments/volume/arc-widget.lua b/experiments/volume/arc-widget.lua
deleted file mode 100644
index 85cc20a..0000000
--- a/experiments/volume/arc-widget.lua
+++ /dev/null
@@ -1,37 +0,0 @@
-local wibox = require("wibox")
-local beautiful = require('beautiful')
-
-local widget = {}
-
-function widget.get_widget()
-
- return wibox.widget {
- {
- id = "icon",
- image = '/usr/share/icons/Arc/status/symbolic/audio-volume-muted-symbolic.svg',
- resize = true,
- widget = wibox.widget.imagebox,
- },
- max_value = 100,
- thickness = 2,
- start_angle = 4.71238898, -- 2pi*3/4
- forced_height = 18,
- forced_width = 18,
- bg = '#ffffff11',
- paddings = 2,
- widget = wibox.container.arcchart,
- set_volume_level = function(self, new_value)
- self.value = new_value
- end,
- mute = function(self)
- self.colors = {'#BF616A'}
- end,
- unmute = function(self)
- self.colors = {beautiful.fg_color}
- end
- }
-
-end
-
-
-return widget \ No newline at end of file