Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.
/ cros-copyme Public archive

Given a string from stdin, copy it into the clipboard of the Chrome OS, automatically.

License

Notifications You must be signed in to change notification settings

andy0130tw/cros-copyme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cros-copyme

Given a string from stdin, copy it into the clipboard of the Chrome OS, automatically.

Yeah I can't find any workarounds on the internet since Chrome OS 81 and it has been broken as of v88. So I write it on my own. Issues & PRs are welcome.

Update (2021/2/10): The latest wl-copy works fine. Don't install the default one in the Debian repository. Please refer to this reddit thread: https://www.reddit.com/r/Crostini/comments/let418/i_made_a_program_for_copying_strings_in_crostini/.

Dependency: GTK 3.

apt install libgtk-3-dev

Sample Usage:

make
echo "Hello world" | ./copyme

TODO

  • The current implementation adds a 100 ms delay in hope of correctly persist the clipboard content. This ugly hack is unfortunately not bullet-proof. I know nothing of the internal mechanism of Sommelier. Should get rid of this.
  • The application should not show in the task bar. This should be possible, i.e., fcitx's tray window, but I cannot reproduce.

Related threads

About

Given a string from stdin, copy it into the clipboard of the Chrome OS, automatically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published