GithubHelp home page GithubHelp logo

xmansay's Introduction

xmansay

a poor duplicate of xcowsay. it just display a poor being with a bubble of whatever you told it to say :)

Usage:

first install qt bindings completely. (you can skip the build process and deploy your application with therecipe/qt docker containers)

go get github.com/smf8/xmansay

don't worry, because of qt binding for go it might take sometime to download project

for building desired output for your enviroment use qtdeploy build [linux/windwos/etc] don't forget to copy res folder to the generated deploy folder

If you want to use it with cron:

  • create a link to original executable file inside one of PATH addresses.

  • add these lines to your ~/.profile to save $DISPLAY and $XAUTHORITY on each login. ref

    case $DISPLAY in                                                                                                                                                                   
    :*) export | grep -E '(^| )(DISPLAY|XAUTHORITY)=' | cut -d = -f 2 > ~/.local-display-setup.sh;;                                                                                                              
    esac  
  • (Optional) create a file of sentences you want xmansay to say.

  • add this to your crontab

    */10 * * * * export XAUTHORITY=$(tail -n 1 ~/.local-display-setup.sh) && export DISPLAY=$(head -n 1 ~/.local-display-setup.sh) && shuf -n 1 /path/to/sentences/list/sentences.txt | xmansay -time 10
    

Demo:

as there is no official API for rendering persian texts in go #27281, multiline farsi texts are not rendered correctly in this project.

farsi text available because of goarabic

xmansay's People

Contributors

smf8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.