awesome-wm-widgets/volume-widget
Roman Sokolkov 5beb57b8e6 Added mute detection for volume widget 2017-02-04 11:58:04 +01:00
..
README.md Merge branch 'master' of https://github.com/streetturtle/AwesomeWM 2017-02-01 21:45:25 -05:00
vol-widget-1.png improve widget rendering and use wibox.widget wrapper 2017-02-03 22:15:16 -05:00
volume.lua Added mute detection for volume widget 2017-02-04 11:58:04 +01:00

README.md

Volume widget

Simple and easy-to-install widget for Awesome Window Manager which represents the sound level: Volume Wiget

Note that widget uses the Arc icon theme, so it should be installed first under /usr/share/icons/Arc/ folder.

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