From 4057e5c379f48c02f8997e307c607a9d4f0b5b85 Mon Sep 17 00:00:00 2001 From: pmakhov Date: Mon, 9 Oct 2017 16:20:20 -0400 Subject: [PATCH] volumearc widget --- volumearc-widget/README.md | 25 +++++++++++++++++++- volumearc-widget/out.gif | Bin 0 -> 7288 bytes volumearc-widget/volumearc.lua | 42 +++++++++++++++------------------ 3 files changed, 43 insertions(+), 24 deletions(-) create mode 100644 volumearc-widget/out.gif diff --git a/volumearc-widget/README.md b/volumearc-widget/README.md index 56f4c7c..702b486 100644 --- a/volumearc-widget/README.md +++ b/volumearc-widget/README.md @@ -1,2 +1,25 @@ # Volumearc widget -:hammer: Work in progress...:construction: + +Almost the same as [volumebar widget](https://github.com/streetturtle/awesome-wm-widgets/tree/master/volumebar-widget), but using arcchart: + +![screenshot](out.gif) + +Supports: + - scroll up - increase volume, + - scroll down - decrease volume, + - left click - mute/unmute. + +## Installation + +Clone repo, include widget and use it in **rc.lua**: + +```lua +require("volumearc") +... +s.mytasklist, -- Middle widget + { -- Right widgets + layout = wibox.layout.fixed.horizontal, + ... + volumearc_widget, + ... +``` diff --git a/volumearc-widget/out.gif b/volumearc-widget/out.gif new file mode 100644 index 0000000000000000000000000000000000000000..61fa48657b906acc066cf6a3683471cc07705a11 GIT binary patch literal 7288 zcmb_>cR*9u-~LHR!VO`B9fp{&3_CzTK%xmV3^9x#R7Q}Epe!qb){wA4S;|nLEENN4 z5C>YR1O-891uKe{wqV77mHmm|z zfZu`mC9gzKP*zh=R##MkhlUb7RN$jXCYHLUR=Q?ZdS=!JX4ZNXYki9K21{GAxwQdhqmhLT znQCWjX=_5YGqj-@*=#nl-2wpH$c}EjiEc`B1Z?;nTba%@r@NRtFfCo&EnPe;nVwYU zRx39zD|atzk8LzZ=0;D}Mo({>ZN7Hf{A^i%w%%+zAOB5$+qd{_xAzO6!Gj&RdHaqn z0Xwz?25s39EVc^UWdmmqmWzisbE}V=moGgqm>v}35ESaPBLu$Z?Z3lkdysEH5IZo$ ze@7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