From a5ab50defbbb88f5d5b257437d7d4c4cadfe24a7 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 9 Nov 2020 15:54:33 -0500 Subject: [experiments-volume] add icon widget --- experiments/volume/arc-widget.lua | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 experiments/volume/arc-widget.lua (limited to 'experiments/volume/arc-widget.lua') 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 -- cgit v1.2.3