dumon 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/dumon.gemspec +1 -1
- data/lib/dumon/omanager.rb +7 -3
- data/lib/dumon/version.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb7a865d6495ecde56f343c847129901818c241c
|
4
|
+
data.tar.gz: d5d81ad2bc4c91586cc976b431d2c8f380b3bacb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a891d232b68a9b9be661204c0372b9daf0a7aa3a63f5a8f711dca8702da715ae54995f4e584ba27604a7a695d8ef474a25ada4912625663bbd574fec2a4a8e64
|
7
|
+
data.tar.gz: da38eb17ddce231a535206c7224e5d0d9c154c1dc984c51192fc19d684ee1f79250e18102220278f803c578cef0f12e0550a0ec4a1d74e71697726c81719e521
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|____/ \__,_|_| |_| |_|\___/|_| |_|
|
6
6
|
|
7
7
|
|
8
|
-
Dual monitor manager for Linux with GTK2 based user interface represented by system tray icon
|
8
|
+
Dual monitor manager for Linux with GTK2 based user interface represented by system tray icon's context menu.
|
9
9
|
|
10
10
|
## SCREENSHOTS
|
11
11
|
|
@@ -63,6 +63,8 @@ Dual monitor manager for Linux with GTK2 based user interface represented by sys
|
|
63
63
|
## FEATURES/PROBLEMS
|
64
64
|
|
65
65
|
* only for Linux
|
66
|
+
* dynamical detection of currently connected output devices
|
67
|
+
* support for storing profiles
|
66
68
|
* currently supports only two output devices
|
67
69
|
* currently works only with 'xrandr' (command line interface to RandR extension)
|
68
70
|
|
data/dumon.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new('> 1.3.1') if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ['Vaclav Sykora']
|
13
13
|
s.date = Dumon::VERSION_HISTORY[0][1]
|
14
|
-
s.description = %q{Dual monitor manager for Linux with GTK2 based user interface represented by system tray icon
|
14
|
+
s.description = %q{Dual monitor manager for Linux with GTK2 based user interface represented by system tray icon's context menu.}
|
15
15
|
s.email = %q{vaclav.sykora@gmail.com}
|
16
16
|
|
17
17
|
s.files = `git ls-files`.split("\n").select { |item| item unless item.start_with? 'screenshot' }
|
data/lib/dumon/omanager.rb
CHANGED
@@ -193,14 +193,18 @@ module Dumon
|
|
193
193
|
rslt[output][:resolutions] << resolution
|
194
194
|
end
|
195
195
|
end
|
196
|
+
# BF 13 not all outputs provide default resolution
|
197
|
+
rslt.each do |output,out_meta|
|
198
|
+
# consider the first resolution (the highest) as default
|
199
|
+
out_meta[:default] = out_meta[:resolutions].first unless out_meta.include? :default
|
200
|
+
end
|
196
201
|
Dumon::logger.debug "Outputs found: #{rslt}"
|
197
202
|
|
198
203
|
# verify structure of readed infos
|
199
204
|
assert(!rslt.empty?, 'no outputs found')
|
200
|
-
rslt.
|
201
|
-
out_meta = rslt[k]
|
205
|
+
rslt.each do |output,out_meta|
|
202
206
|
verify_options(out_meta, {:resolutions=>:mandatory, :default=>:mandatory, :current=>:optional})
|
203
|
-
assert(out_meta[:resolutions].size > 1, "no resolution found, output=#{
|
207
|
+
assert(out_meta[:resolutions].size > 1, "no resolution found, output=#{output}")
|
204
208
|
end
|
205
209
|
|
206
210
|
@outputs = rslt
|
data/lib/dumon/version.rb
CHANGED
@@ -2,6 +2,7 @@ module Dumon
|
|
2
2
|
|
3
3
|
# Version history.
|
4
4
|
VERSION_HISTORY = [
|
5
|
+
['0.2.6', '2013-04-23', 'BF #13, Failure if no default resolution provided by output'],
|
5
6
|
['0.2.5', '2013-04-02', 'BF #12, Profile dialog fails if configuration is empty'],
|
6
7
|
['0.2.4', '2013-03-29', 'New CLI argument: --reset, tested with MRI Ruby 2.0.0'],
|
7
8
|
['0.2.3', '2013-03-17', 'BF #10: Profile dialog fails unless configuration exists'],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vaclav Sykora
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk2
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.2.0
|
27
27
|
description: Dual monitor manager for Linux with GTK2 based user interface represented
|
28
|
-
by system tray icon
|
28
|
+
by system tray icon's context menu.
|
29
29
|
email: vaclav.sykora@gmail.com
|
30
30
|
executables:
|
31
31
|
- dumon
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
version: 1.3.1
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.0.
|
73
|
+
rubygems_version: 2.0.3
|
74
74
|
signing_key:
|
75
75
|
specification_version: 4
|
76
76
|
summary: Dual monitor manager for Linux.
|