hexapic 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hexapic/desktop_environment.rb +9 -10
- data/lib/hexapic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec414c571a2ba9cd65bf7dd058f93b3520a6a400
|
4
|
+
data.tar.gz: 5dc1213003aede65f59fa46720ce513cb3bda170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4920f3f2566399fea4dd0deef648c51e166731b28edffee50d643578473bd67c82aa4a85161a98a74d832cec1e51ae180a1a798b1b0f462f9f5f37f2185859f
|
7
|
+
data.tar.gz: a71e7d7b8cf7268a3086a879e15e4dac0a4ae7dd4a5df924200df53157bf98c7320e9860f3c7ad68d08989f2a4099db05bf10b5d2f9e8bb3584d6e2bc1f9e679
|
@@ -25,18 +25,17 @@ module Hexapic
|
|
25
25
|
|
26
26
|
DE[wm_name] || wm_name.to_sym
|
27
27
|
end
|
28
|
-
|
28
|
+
def self.output
|
29
|
+
output_name = nil
|
29
30
|
|
30
|
-
|
31
|
-
|
31
|
+
Open3.popen3('xrandr' ,'| grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"') do |inp, out, err|
|
32
|
+
inp.close
|
33
|
+
err.close
|
34
|
+
output_name = out.strip
|
35
|
+
out.close
|
36
|
+
end
|
32
37
|
|
33
|
-
|
34
|
-
inp.close
|
35
|
-
err.close
|
36
|
-
output_name = out.strip
|
37
|
-
out.close
|
38
|
+
output_name
|
38
39
|
end
|
39
|
-
|
40
|
-
output_name
|
41
40
|
end
|
42
41
|
end
|
data/lib/hexapic/version.rb
CHANGED