Skip to content

Instantly share code, notes, and snippets.

View romanbarczynski's full-sized avatar

Roman Barczyński romanbarczynski

View GitHub Profile
@romanbarczynski
romanbarczynski / volume.rb
Created May 18, 2012 18:17 — forked from jaspervdj/volume.rb
Set pulseaudio volume from the command line
#!/usr/bin/ruby
# Pulseaudio volume control
class Pulse
attr_reader :volumes, :mutes
# Constructor
def initialize
dump = `pacmd dump`.lines
@volumes = {}