Fading Calendar

Plasma 4 Extensions

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

9
Become a Fan
8.0

Description:
A simple plasmoid displaying the days of the calendar in one column, with several fading options.
No mouse or keyboard interactions.
Quite useless, only intended to decorate the desktop.

update version 0.1.1
A new option: "circle shape" was been added.
The configuration is however a bit tricky: the general option "origin" defines the center of the circle, and the x position should then be negative (let's say -600). The size of the rectangle and the text horizontal shift should then be higher to appear on the screen (let's say 630 and 640).
Space between rectangle turns out to be useless in this "circle" configuration, and you have to play with "angle" and "rectangle width" to get a proper plain background.

Todo list:
* "right side of the screen" option
* other options
Last changelog:

update version 0.1.1: circle shape

update version 0.1.2: small debug, plasma background

update version 0.1.3: the plasma background theme can be used for the rectangles

update version 0.1.4:
- WE days
- default color = plasma theme color
- fix the config for multiple instances (with an ugly workaround)
CAUTION: this version resets the config parameters w.r.t. the old versions


Ratings & Comments

19 Comments

anderslund

I try this plasmoid, but it does not appear to save its configuration (number of days and colors).

cauch

Hi, I've changed the way of dealing with config in the latest version (to satisfy other demands), and I guess what I have done is not clean at all. However, it seems to work on KDE 4.5.5, but maybe the previous or further versions don't deal with plasmoid id as I was expecting. Can you provide me the kde version you are using ? (and do you use a lot of other plasmoids ? does this problem appear also when this plasmoid is the only one running ? ...) If you want to fix this quickly, you can go back to the previous way of dealing with config by editing the main.py file (~/.kde/share/apps/plasma/plasmoids/fading-calendar/contents/code) Just change: ("settings_"+self.pid) into ("settings") on lines: 20, 55, 70 and 98 (but then, the problem raised previously (no different config for multiple plasmoid) reappears) I will try to find a better solution, but unfortunately, I don't have time for the moment to dig into kde and qt docs or to spend a lot of time in experimenting myself.

anderslund

Thanks a lot for answering :) Currently, the only thing that is not saved appears to be size, but i am unsure why it didn't just save. Maybe kde crashes during shotdown, it sometimes does. But other applets does save their config without problems - maybe they do so by saving immediately? most applets seems to use plasma for saving their configuration, fading calender does not. Apart from that, I do like your applet, it provides valuable information in a relatively discrete manner :)

anderslund

I have fixed the problem with size restoring, by simply commenting away the line in your init method that sets the size. Plasma takes care of it. The line is 121 in main.py: #self.resize(self.param.width, self.param.height)

cauch

Nice! Many thanks.

AlejandroNova

1. Can I have separate settings for separate calendars? I have 4 calendars, because I have one activity per desktop, 4 desktops, and one calendar per desktop. When I set the colors for each calendar, it looks pretty until I reboot or restart Plasma Desktop. After that, the last settings remain in effect for all my calendars. Please, can you correct that? 2. Can I have a separate font/size for the weekday and the day text?

cauch

Finally, I've found some time to work on this. 1. Done. It's an ugly workaround, but it works and I haven't found any documentations on the subject (maybe I haven't seek enough). 2. Done. The "w-e days" style can be customized. And if today is a w-e day, the "Today" style is applied.

bitcrazy

Screenshot of your settings for the circular calendar would be nice as a hint where to start, because the description is not very helpful. m0nk

brucew

Tried to download.Says corrupted binary. Then did right-click save on link and tried to install, error corrupted. Please advise.

brucew

Again, in Konqueror, when the auto download starts it opens a window exposing the code with error, saving will be corrupted. Then tried with Firefox. Downloaded properly but fails to install.

cauch

Strange. When downloaded with firefox, in a terminal, what is the result of: $ plasmapkg -i *fading-calendar.plasmoid A .plasmoid file is simply a zipped file. You can also try to open it: $ ark *fading-calendar.plasmoid You can also try to install it via the plasmoid panel: http://userbase.kde.org/images.userbase/7/7f/Plasma_InstallingPlasmoids_DownloadNew.png

TheRob

looks nice! tryin to compete with conky huh ;-) ?

cauch

Hehe, I don't try to compete with conky, I don't want to lose :)

Drisch

Thank!

Montblanc

The plasmoid couldn't initialize the script. Am I missing any package?

cauch

Thanks for the feedback. Hum, do you have more info ? What is the error message in a terminal when you try: plasmapkg -i ./fading-calendar.plasmoid plasmoidviewer fading-calendar It's a python script, it then needs pyKDE4, pyQt4 and pyKDE4.plasma Try installing kdebase-workspace-python-applet or something similar.

Montblanc

Thanks for your answer! I thought python-plasma was the only bindings package I needed, but I had to install plasma-scriptengine-python too! Now it works and it's great! ;)

SeaJey

It would be nice to have a circular version like this one: http://kde-look.org/content/show.php/muuh-3?content=123645

cauch

I've added an option for a circular version. The config in this mode is then a bit messy, but there are explanations in the description. It's not yet as sexy and flexible as what conky can do, but it's my first plasmoid. Feel free to hack it.

Pling
0 Affiliates
Details
license
version 0.1.4
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 13 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0