Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (28 sloc) 644 Bytes
#!/usr/bin/env ruby
$: << File.dirname(__FILE__) unless $:.include?(File.dirname(__FILE__))
require 'configru'
require 'gtk2'
class Pinion
def initialize
@@timer = Timer.new
@@panel = Panel.new
load_plugins
end
def load_plugins
# Reverse so it's left->right instead of right->left
Configru.plugins.reverse!
Configru.plugins.each do |plugin|
Pinion::Plugins.load(plugin)
end
::Pinion.panel.show_all
end
# Ew hacks D:
def self.panel; @@panel; end
def self.timer; @@timer; end
end
require 'lib/panel'
require 'lib/timer'
require 'lib/plugins'
require 'plugins/default'
Pinion.new
Gtk.main