From 99d8fdc9b3627d526e500be2fac972b4c5069220 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 13 Jul 2015 23:07:30 +0200 Subject: [PATCH] Readme --- VolumeWidget/README.md | 15 +++++++++++++++ VolumeWidget/volWid.png | Bin 0 -> 301 bytes VolumeWidget/volume.lua | 11 +++++------ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 VolumeWidget/README.md create mode 100644 VolumeWidget/volWid.png diff --git a/VolumeWidget/README.md b/VolumeWidget/README.md new file mode 100644 index 0000000..2c4a717 --- /dev/null +++ b/VolumeWidget/README.md @@ -0,0 +1,15 @@ +## Volume widget +Simple and easy-to-install widget for Awesome Window Manager. + +This widget represents the sound level: ![Volume Wiget](./volWid.png) + +## Installation + +- clone/copy volume.lua file and volume-icons folder to your `~/home/username/.config/awesome/` folder; + +- include `volume.lua` and add volume widget to your wibox in rc.lua: +``` +require("volume") +... +right_layout:add(volumeWidget) +``` diff --git a/VolumeWidget/volWid.png b/VolumeWidget/volWid.png new file mode 100644 index 0000000000000000000000000000000000000000..fdfdd203769973b620954d3f12e2545cd6389b3e GIT binary patch literal 301 zcmV+|0n+}7P)VhCgdz z@(>0cxq++aFx= 80 and volume <= 100) then volumeLevel=9 end - icon:set_image("/home/pashik/.config/awesome/volume-icons/" .. volumeLevel .. ".png") + widget:set_image("/home/pashik/.config/awesome/volume-icons/" .. volumeLevel .. ".png") end -update_volume(volume_widget, volume_icon) +update_volume(volume_widget) mytimer = timer({ timeout = 0.2 }) -mytimer:connect_signal("timeout", function () update_volume(volume_widget, volume_icon) end) +mytimer:connect_signal("timeout", function () update_volume(volume_widget) end) mytimer:start() \ No newline at end of file