Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (28 sloc) 0.644 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#!/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
Something went wrong with that request. Please try again.