12

Simple question but hard answer, i searched around in Google a solution to make a dynamic widget to control and see the volume with Awesome Window manager but i can't find a working solution.

Any one got a solution to this ?

x_vi_r
  • 283
  • 1
  • 2
  • 7

4 Answers4

7

I simply followed the tutorial at http://awesome.naquadah.org/wiki/Volume_control_and_display and it worked. However, volume control was only via keyboard. Is this what you were looking for?

I should note that I'm on debian (testing) which I think uses awesome 3.4.

-- Update: After some testing out, I found http://awesome.naquadah.org/wiki/Farhavens_volume_widget, which has mouse controls (scroll mouse to control volume, and click to toggle mute). Following the tutorial works on my box.

Codebling
  • 239
jumpwah
  • 86
6

I'd like to mention following implementations just in case somebody is interested to have a volume control widget compatible with Awesome WM 4+:

screenshot

From left to right:

All three widgets support mouse control: scroll up/down - increases/decreases volume, click - toggles mute.

streetturtle
  • 181
  • 1
  • 6
4

If you have media keys you can use this

awful.key({}, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -D pulse sset Master 2%+", false) end),
awful.key({}, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -D pulse sset Master 2%-", false) end),
awful.key({}, "XF86AudioMute", function () awful.util.spawn("amixer -D pulse sset Master toggle", false) end),

in globalkeys in your rc.lua script

Arjun Gopkumar
  • 111
  • 1
  • 7
1

volumeicon worked out of the box for me. Note that this is not an AwesomeWM widget but a standalone project written in C. The advantage of this over the Awesome widgets are:

  • can use mouse to interact with widget and adjust volume (scroll wheel or dragging volume bar)
  • works out of the box with PulseAudio and multiple output sinks
  • configurable notifications when volume is adjusted (GTK+-style or FreeDesktop-style notifications, or none at all)
  • opens a mixer of your choice on middle click

If you'd prefer a pure Lua Awesome widget, here is a list of available ones:

Codebling
  • 239