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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48d064edd097a6afda83cc568cbc7c69ddf0a69d
4
- data.tar.gz: 29458a8ea610e7947418e056e4400827f6f75b19
3
+ metadata.gz: ec414c571a2ba9cd65bf7dd058f93b3520a6a400
4
+ data.tar.gz: 5dc1213003aede65f59fa46720ce513cb3bda170
5
5
  SHA512:
6
- metadata.gz: 899df792cf0bea83c933cf7a0d6c1a2cd050da269c1a7d8ae435034cad58f98c71b413d068267de39ec940852050d64801fad1ff232abf920de5d317fb53a015
7
- data.tar.gz: 8d1e18072868b42ccc9d0a29a811e91facddc923a01277369392b04be96aca5a304d429d6363ce1c0f5a9dd4f50b0174a7f5fd3370b1804b97c25a64495c9105
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
- end
28
+ def self.output
29
+ output_name = nil
29
30
 
30
- def self.output
31
- output_name = nil
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
- Open3.popen3('xrandr' ,'| grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"') do |inp, out, err|
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
@@ -1,3 +1,3 @@
1
1
  module Hexapic
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexapic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Siganov