dumon 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +9 -4
- data/dumon.gemspec +2 -7
- data/lib/dumon/ui.rb +23 -1
- data/lib/dumon/version.rb +7 -0
- data/lib/{monitor.png → monitor24.png} +0 -0
- data/lib/monitor48.png +0 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
____
|
2
|
+
| _ \ _ _ _ __ ___ ___ _ __
|
3
|
+
| | | | | | | '_ ` _ \ / _ \| '_ \
|
4
|
+
| |_| | |_| | | | | | | (_) | | | |
|
5
|
+
|____/ \__,_|_| |_| |_|\___/|_| |_|
|
6
|
+
|
2
7
|
|
3
8
|
Dual monitor manager for Linux with GTK2 based user interface represented by system tray icon and its context menu.
|
4
9
|
|
@@ -55,9 +60,9 @@ Dual monitor manager for Linux with GTK2 based user interface represented by sys
|
|
55
60
|
|
56
61
|
## REQUIREMENTS
|
57
62
|
|
58
|
-
* Ruby 1.
|
59
|
-
* ruby-gtk2 1.2.x
|
60
|
-
* xrandr 1.3.x
|
63
|
+
* Ruby 1.8.7 +
|
64
|
+
* ruby-gtk2 1.2.x +
|
65
|
+
* xrandr 1.3.x +
|
61
66
|
|
62
67
|
## AUTHOR
|
63
68
|
|
data/dumon.gemspec
CHANGED
@@ -17,15 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.files = `git ls-files`.split("\n").select { |item| item unless item.start_with? 'screenshot' }
|
18
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
-
s.require_paths = [
|
21
|
-
|
22
|
-
s.extra_rdoc_files = [
|
23
|
-
"LICENSE",
|
24
|
-
"README.md"
|
25
|
-
]
|
20
|
+
s.require_paths = ['lib']
|
21
|
+
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
26
22
|
s.homepage = %q{http://github.com/veny/dumon}
|
27
23
|
s.rdoc_options = ['--charset=UTF-8']
|
28
|
-
s.require_paths = ['lib']
|
29
24
|
s.rubygems_version = %q{1.3.7}
|
30
25
|
s.summary = %q{Dual monitor manager for Linux.}
|
31
26
|
|
data/lib/dumon/ui.rb
CHANGED
@@ -21,6 +21,12 @@ module Dumon
|
|
21
21
|
Dumon::logger.info "Terminted..."
|
22
22
|
end
|
23
23
|
|
24
|
+
###
|
25
|
+
# Provides information about the app.
|
26
|
+
def about
|
27
|
+
raise NotImplementedError, 'this should be overridden by concrete sub-class'
|
28
|
+
end
|
29
|
+
|
24
30
|
end
|
25
31
|
|
26
32
|
|
@@ -45,6 +51,18 @@ module Dumon
|
|
45
51
|
Gtk.main_quit
|
46
52
|
end
|
47
53
|
|
54
|
+
def about #:nodoc:
|
55
|
+
about = Gtk::AboutDialog.new
|
56
|
+
about.set_program_name 'Dumon'
|
57
|
+
about.set_version Dumon::VERSION
|
58
|
+
about.set_copyright "(c) Vaclav Sykora"
|
59
|
+
about.set_comments 'Dual monitor manager'
|
60
|
+
about.set_website 'https://github.com/veny/dumon'
|
61
|
+
about.set_logo Gdk::Pixbuf.new(::File.join(::File.dirname(__FILE__), '..', 'monitor48.png'))
|
62
|
+
about.run
|
63
|
+
about.destroy
|
64
|
+
end
|
65
|
+
|
48
66
|
end
|
49
67
|
|
50
68
|
|
@@ -64,7 +82,7 @@ module Dumon
|
|
64
82
|
|
65
83
|
@tray = Gtk::StatusIcon.new
|
66
84
|
@tray.visible = true
|
67
|
-
@tray.pixbuf = Gdk::Pixbuf.new(::File.join(::File.dirname(__FILE__), '..', '
|
85
|
+
@tray.pixbuf = Gdk::Pixbuf.new(::File.join(::File.dirname(__FILE__), '..', 'monitor24.png'))
|
68
86
|
@tray.tooltip = "Dual Monitor Manager"
|
69
87
|
|
70
88
|
@tray.signal_connect('popup-menu') do |w, button, activate_time|
|
@@ -181,6 +199,10 @@ module Dumon
|
|
181
199
|
# separator
|
182
200
|
item = Gtk::SeparatorMenuItem.new
|
183
201
|
rslt.append(item)
|
202
|
+
# About
|
203
|
+
item = Gtk::ImageMenuItem.new(Gtk::Stock::ABOUT)
|
204
|
+
item.signal_connect('activate') { self.about }
|
205
|
+
rslt.append(item)
|
184
206
|
# Quit
|
185
207
|
item = Gtk::ImageMenuItem.new(Gtk::Stock::QUIT)
|
186
208
|
item.signal_connect('activate') { self.quit }
|
data/lib/dumon/version.rb
CHANGED
@@ -2,6 +2,7 @@ module Dumon
|
|
2
2
|
|
3
3
|
# Version history.
|
4
4
|
VERSION_HISTORY = [
|
5
|
+
['0.1.7', '2013-02-13', 'Enh #4: About dialog'],
|
5
6
|
['0.1.6', '2013-02-11', 'BF #3: Crash by rendering popup menu if only one output is there'],
|
6
7
|
['0.1.5', '2013-02-08', 'Enh #2: Support for primary output'],
|
7
8
|
['0.1.4', '2013-02-07', 'Enh #1: Starting as daemon'],
|
@@ -14,4 +15,10 @@ module Dumon
|
|
14
15
|
# Current version.
|
15
16
|
VERSION = VERSION_HISTORY[0][0]
|
16
17
|
|
18
|
+
###
|
19
|
+
# Returns the version of Dumon.
|
20
|
+
def self.version
|
21
|
+
VERSION
|
22
|
+
end
|
23
|
+
|
17
24
|
end
|
File without changes
|
data/lib/monitor48.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gtk2
|
@@ -47,7 +47,8 @@ files:
|
|
47
47
|
- lib/dumon/omanager.rb
|
48
48
|
- lib/dumon/ui.rb
|
49
49
|
- lib/dumon/version.rb
|
50
|
-
- lib/
|
50
|
+
- lib/monitor24.png
|
51
|
+
- lib/monitor48.png
|
51
52
|
homepage: http://github.com/veny/dumon
|
52
53
|
licenses: []
|
53
54
|
post_install_message:
|