summaryrefslogtreecommitdiff
path: root/volume-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2017-02-01 21:25:25 -0500
committerstreetturtle <streetturtle@gmail.com>2017-02-01 21:25:25 -0500
commite214e416d3ce53dec14e5f0e81ceae587f1fd4bc (patch)
tree24c7568429fb584761c710adee87d8b77b87bd03 /volume-widget
parent64652e0f38d610145eb58800699fd04c94abf00a (diff)
screenshots and readme
Diffstat (limited to 'volume-widget')
-rw-r--r--volume-widget/README.md31
-rw-r--r--volume-widget/vol-widget-1.pngbin0 -> 817 bytes
2 files changed, 31 insertions, 0 deletions
diff --git a/volume-widget/README.md b/volume-widget/README.md
new file mode 100644
index 0000000..99d3ad8
--- /dev/null
+++ b/volume-widget/README.md
@@ -0,0 +1,31 @@
+# Volume widget
+
+Simple and easy-to-install widget for Awesome Window Manager.
+
+This widget represents the sound level: ![Volume Wiget](./vol-wid-1.png)
+
+## Installation
+
+- clone/copy **volume.lua** file;
+
+- include `volume.lua` and add volume widget to your wibox in rc.lua:
+
+```lua
+require("volume")
+...
+s.mytasklist, -- Middle widget
+ { -- Right widgets
+ layout = wibox.layout.fixed.horizontal,
+ ...
+ volume_widget,
+ ...
+```
+
+## Control volume
+
+To be able to control volume level add following lines in shortcut section of the **rc.lua** (the command could be slightly different depending on your pc configuration):
+
+```lua
+awful.key({ modkey}, "[", function () awful.spawn("amixer -D pulse sset Master 5%-") end, {description = "increase volume", group = "custom"}),
+awful.key({ modkey}, "]", function () awful.spawn("amixer -D pulse sset Master 5%+") end, {description = "decrease volume", group = "custom"}),
+``` \ No newline at end of file
diff --git a/volume-widget/vol-widget-1.png b/volume-widget/vol-widget-1.png
new file mode 100644
index 0000000..ba03630
--- /dev/null
+++ b/volume-widget/vol-widget-1.png
Binary files differ