Sha256: 26781000e354da88ad5fdb5d1a178fc5dad9e7e5ab440689236360f629c1335f
Contents?: true
Size: 827 Bytes
Versions: 7
Compression:
Stored size: 827 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(File.expand_path('../../glade/volay.glade', __FILE__)) Gtk.main end end end Volay::Main.new
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
volay-0.7.0 | bin/volay |
volay-0.6.0 | bin/volay |
volay-0.5.0 | bin/volay |
volay-0.4.0 | bin/volay |
volay-0.3.0 | bin/volay |
volay-0.2.0 | bin/volay |
volay-0.1.0 | bin/volay |