Module: YSupport::X

Defined in:
lib/y_support/x.rb

Class Method Summary collapse

Class Method Details

.echo_primary_clipboard(string) ⇒ Object

Echo a string to the primary X clip with ‘xsel -b -i`.



7
8
9
# File 'lib/y_support/x.rb', line 7

def echo_primary_clipboard( string )
  system 'echo -n "' + string + '" | xsel -b -i'
end

.echo_secondary_clipboard(string) ⇒ Object

Echo a string to the secondary X clip with ‘xsel -b -i`.



13
14
15
# File 'lib/y_support/x.rb', line 13

def echo_secondary_clipboard( string )
  system 'echo -n "' + string + '" | xsel -s -i'
end