Giter Site home page Giter Site logo

charpicker's People

Contributors

eepp avatar noracodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

charpicker's Issues

Update screenshot

I'll do this when I get home, my laptop doesn't have working color emoji.

Some characters are corrupted (with possible fix)

The selected unicode character is inserted using xdotool, but xdotool may corrupt some characters (this is ackowledged in its man page, see BUGS section). I also tried xte, from the xautomation package. No more corruption, but then xte silently fails if the Unicode character is not part of the current keymap... In the end I found this trick that works for me (so far):

     echo -n "$selected_symbol" | xclip -i
     xdotool click 2

The first line put the selected Unicode character in the primary selection clipboard using xclip. The second line insert a middle click, pasting the selection in the current window. This way the complexity of going from a character to X keyboard events is not needed, it's just like a cut and paste.

This works on X11, not tested under Wayland (is middle click paste supported now?). So it may be X11 only, TBC.

How to use with Wayland?

I'm pretty new to Wayland, but so far I haven't found a way to set up xdotool to work on it. With installed both rofi and xdotool your charpicker pops up and i select emoji, but it doesn't get pasted in the open app, nor to clipboard.

I've changed the last line instead of using xdotool to echo -n "$selected_symbol" | wl-copy. Maybe you can include that in the README.md or you suggest a different approach?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.