Skip to content

Desktop widget built with GTK+ that randomly picks a poem and displays it to you.

License

Notifications You must be signed in to change notification settings

yankihue/300TangDesktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

300Tang [WIP]

300Tang is a simple app that periodically shows you random Tang poetry. I wrote this GNOME extension with C and GTK+ for myself to display a different poem periodically on my desktop. I used this resource to download the 320 poems in json format.

Screenshot

If you don't interact with the window, a new poem will be displayed after a while. You can choose to save it for later, or copy it to your clipboard.

https://developer.gnome.org/

Installation

You need to have GTK+.

To compile the source code, use

gcc 300Tang.c `pkg-config --cflags --libs gtk+-3.0` -o 300Tang

and then run it with

./300Tang

(incomplete)

TODO

  • Add actual extension files like metadata and package with flatpak
  • Reformat the code with GNU style indentation
  • Add random poem selection
  • Add option to save and/or copy to clipboard
  • Add Pinyin and English (need to find machine-readable source for this)

License

MIT.

About

Desktop widget built with GTK+ that randomly picks a poem and displays it to you.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages