Giter Club home page Giter Club logo

dmenu-kaomoji's Introduction

dmenu-kaomojis

List kaomojis from http://kaomoji.ru/en in dmenu, and copy them to the clipboard

Requirements

Dmenu

Requires atleast the printindex patch to work associated with the -I flag (the patch uses -ix). This is because I added this feature manually in my build of dmenu without using that patch, and I have a bunch of scripts relying on dmenu having a -I flag. Either apply the patch and change the flag, or modify dmenu-kaomojis to use the flag you want.

Python

The script relies on the requests and BeautifulSoup libraries, which you can install by running:

pip install -r requirements.txt

Usage

First run get_kaomojis.py to generate a kaomojis.tsv file, which will be placed by default in either $XDG_CACHE_HOME, $HOME/.cache, or in the current directory (the first one that exists). You can also specify the path for this as the first argument:

./get_kaomojis.py /path/to/kaomojis.tsv

Then run dmenu-kaomojis by either typing it in a terminal, or binding it to a key from your DE/WM of choice. You can optionally specify the path to the kaomojis.tsv file if you choose a custom location, and every argument after that is interpreted as a dmenu option:

./dmenu-kaomojis /path/to/kaomojis.tsv -c -w 500 -l 10

./dmenu-kaomojis -B -l5

dmenu-kaomoji's People

Contributors

jonathannerat avatar

Watchers

James Cloos avatar  avatar

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.