Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Jakub Valenta 10bd43a5c7 Initial commit pirms 4 gadiem
LICENSE Initial commit pirms 4 gadiem
NOTICE Initial commit pirms 4 gadiem
README.md Initial commit pirms 4 gadiem
pulseaudio_volume.py Initial commit pirms 4 gadiem

README.md

PulseAudio volume

Adjust volume or toggle mute of all running PulseAudio sinks. Ideal for binding to media keys.

Features:

  • Doesn't change the volume of non-running sinks.
  • Doesn't set the volume higher than 100%.

Example usage

Increase volume by 5% (don't go above 100%):

pulseaudio_volume.py inc 5

Decrease volume by 10%:

pulseaudio_volume.py dec 10

Toggle mute (mute if unmuted, unmute if mute):

pulseaudio_volume.py toggle

Example Awesome WM config snippet

awful.key({ }, "XF86AudioLowerVolume",  function () awful.util.spawn("pulseaudio_volume.py dec 5") end),
awful.key({ }, "XF86AudioRaiseVolume",  function () awful.util.spawn("pulseaudio_volume.py inc 5") end),
awful.key({ }, "XF86AudioMute",         function () awful.util.spawn("pulseaudio_volume.py toggle") end),

Contributing

Feel free to remix this piece of software. See NOTICE and LICENSE for license information.