awesome-wm-widgets/volume-widget
streetturtle e214e416d3 screenshots and readme 2017-02-01 21:25:25 -05:00
..
README.md screenshots and readme 2017-02-01 21:25:25 -05:00
vol-widget-1.png screenshots and readme 2017-02-01 21:25:25 -05:00
volume.lua new widgets added 2017-01-30 21:40:01 -05:00

README.md

Volume widget

Simple and easy-to-install widget for Awesome Window Manager.

This widget represents the sound level: Volume Wiget

Installation

  • clone/copy volume.lua file;

  • include volume.lua and add volume widget to your wibox in rc.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):

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"}),