2017-10-05 02:46:09 +02:00
|
|
|
# Volumearc widget
|
2017-10-09 22:20:20 +02:00
|
|
|
|
|
|
|
Almost the same as [volumebar widget](https://github.com/streetturtle/awesome-wm-widgets/tree/master/volumebar-widget), but using arcchart:
|
|
|
|
|
2019-03-30 22:42:59 +01:00
|
|
|
![screenshot]({{'/assets/img/screenshots/volumearc-widget.gif' | relative_url }}){:.center-image}
|
2017-10-09 22:20:20 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2019-03-30 22:42:59 +01:00
|
|
|
1. Clone this repo under **~/.config/awesome/**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Require volumearc widget at the beginning of **rc.lua**:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
local volumearc_widget = require("awesome-wm-widgets.volumearc-widget.volumearc")
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Add widget to the tasklist:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
s.mytasklist, -- Middle widget
|
|
|
|
{ -- Right widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
...
|
|
|
|
--[[default]]
|
|
|
|
volumearc_widget(),
|
|
|
|
--[[or customized]]
|
|
|
|
volumearc_widget({
|
|
|
|
main_color = '#0000ff',
|
|
|
|
mute_color = '#ff0000',
|
|
|
|
path_to_icon = '/usr/share/icons/Arc/actions/symbolic/view-grid-symbolic.svg',
|
|
|
|
thickness = 5,
|
|
|
|
height = 25
|
|
|
|
}),
|
|
|
|
|
|
|
|
...
|
|
|
|
```
|