Giter Club home page Giter Club logo

Comments (3)

bjornasm avatar bjornasm commented on May 22, 2024 2

Thank you for your extremely thorough reply as well as this added feature @poetaman !

from arttime.

poetaman avatar poetaman commented on May 22, 2024 1

@bjornasm Yes it is linked to #36. There is a plan for users to be able to specify their timers in more expressive ways, though I don't see it happening anytime soon. There is a workaround one can use for now: arttime's notification does show the name of art. A user can open multiple instances of arttime, and have different timers or time manager programs in each. If the displayed art in each instances is different, they would be able to get the context of notification.

Check for example the "keypoem" file share/arttime/keypoems/timer.banana10learn_8b below.

----
m2 bananas every hour for next 10 hours = 2000 calorie banana diet!
--------
abanana
--------
g1h;loop10
--------
mYou will get 10 notifications, though don't follow this diet :)

It can be loaded from command line like this: arttime -k timer.banana10learn_8b or from within running arttime instance by pressing k followed by Tab/arrow-keys based navigation followed by Enter.

The good part is you can create as many such "keypoems" and save them in the same or different directory. The syntax is the same as the keystrokes one would type in arttime's interface to get an effect. Essentially arttime interprets contents of the file as if each key were pressed (with couple differences). abanana followed by new line changes the art to banana. Art names refer to file names under directory share/arttime/textart. One can easily add a file for "water" or "glass" and save a timer.drinkwater_8b keypoem like this (_8b just slows down the read rate to 8 bytes per second for a visual effect, one can remove it):

----
mwater is essential for life, drink it! 
--------
awater
--------
g2h;loop10

Supporting info: https://github.com/poetaman/arttime/wiki

Here's the GIF that shows timer.banana10learn_8b in action, arttime does the "typing" for you like a ghost:

bananatimer

from arttime.

poetaman avatar poetaman commented on May 22, 2024 1

@bjornasm Btw... As getting notifications to drink water would be so common, I went ahead and added basic water ASCII art and a keypoem. To give it a try, pull and install the main branch again... Then either launch arttime to load the program at launch time: arttime -k timer.drinkwater_8b or after launching arttime press k followed by Tab/arrow-keys to navigate, and Enter to run the keypoem script.

from arttime.

Related Issues (20)

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.