Git Product home page Git Product logo

quoteoftheday-cinnamon's Introduction

Quote of the Day Cinnamon Desklet v0.3.0 - Oct. 30, 2016

This desklet displays a random quote of the day.  Left click it to display a new random quote at any time.


** Configuration options **
The following options are configurable via the Cinnamon Desklet GUI by right clicking "Quote of the Day desklet" and choosing Configure.

    - Input file - see below for details on file format
    - How frequently to display a new quote, from once a minute to once a day
    - Font size
    - Font color
    - Font shadow (size, color, and blur)

By default, the font should come from the active theme.  However, changes to the font face can be made by editing the stylesheet.css file.  Add a line to the existing .quote-container element such as:
font-family:"Times New Roman";

Important: Cinnamon may need to be restarted and/or the desklet may need to be removed and re-added for this change to take effect. 

** Input file format **
The input file format is the same as that for the classic fortune (/usr/games/fortune) program.  See /usr/share/games/fortunes for examples.  The format is simply, "a text file with quotations, each separated by the character "%" on its own line," as explained on the Wikipedia page.  Whitespace formatting within the text file is preserved when the quote is displayed.


** TODO **
- Provide a GUI method to change the font.

** Known Issues **
- When the desklet is added in Cinnamon 3.0+, the "Installed Desklets" screen shows a scary red exclaimation mark.  This is because Quote of the Day uses get_file_contents_utf8_sync to read the file of quotes, but this function was deprecated in Cinnamon 3.1  This warning will be fixable with the async version of this function, which should be available in Cinnamon 3.2.
- The text shadow may not be visible upon reboot until the mouse is hovered over the quote.  I'm unsure if this is an error in the desklet, or a problem with Cinnamon.


Comments welcome.

Jess (tinytinnu [at] gmail [dot] com)
RavetcoFX (RavetcoFX [at] gmail [dot] [com]

quoteoftheday-cinnamon's People

Contributors

corbin-auriti avatar jessw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

quoteoftheday-cinnamon's Issues

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.