Sha256: f3dd67f1f3630aa988d11d6d35706c683d656634288ff28a462ea8b34ffdf06f
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path('../../lib/volay', __FILE__) # Module volay module Volay # Main class to display app or control volume class Main def initialize cli = Volay::CLI.new cli.parse_options Volay::Config.set(:log_level, cli.config[:log_level]) Volay::Config.init_config if [:up, :down, :mute].any? { |k| cli.config.key?(k) } sound(cli.config) else app end end def sound(config) Volay::Config.mixer.up(config[:up]) unless config[:up].nil? Volay::Config.mixer.down(config[:down]) unless config[:down].nil? Volay::Config.mixer.toggle if config[:mute] end def app Gtk.init Volay::App.new('glade/volay.glade') Gtk.main end end end Volay::Main.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
volay-0.0.1 | bin/volay |