Adjustable Clock

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

28
8 .4
Description:

Plasmoid to show date and time in adjustable format using rich text.
Developed and tested on KDE 4.11 with Qt 4.8 (Kubuntu 13.10).

Source (main repository, with more frequent updates) is located at:
https://github.com/Emdek/plasmoid-adjustable-clock

Warning!
Version 4.0 (and newer) is not backwards compatible with 3.x, all custom formats need to be exported and manually converted.

QML themes support is currently considered as experimental, behavior and available API are not yet stable and most probably will be changed with next release.

Tips:
- to change tool tip text you need to set options toolTipExpressionMain and toolTipExpressionSub in applets configuration file (usually located at ~/.kde4/share/config/plasma-desktop-appletsrc), in group containing line plugin=adjustableclock;
- you can use advanced WebKit features (all of these that work with for example rekonq should work here too), for example use CSS to create reflections:

-webkit-box-reflect:below 5px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white));

And much more. ;-)

If you created interesting theme and want to share it then post in comments!

Features:
- fully custom date and time using JavaScript API to obtain date and time components;
- multiple clock themes utilizing various designs;
- possibility to use rich text editor or edit source directly (HTML and CSS or QML) to adjust theme;
- context menu with actions to copy formatted (adjustable expressions) date and time to clipboard;
- fast copy to clipboard of adjustable date and time expression after middle mouse click on the clock or activation of keyboard shortcut;
- adjustable tool tip (hidden option, toolTipExpressionMain and toolTipExpressionSub keys);
- standard clock calendar.

If you have found bugs or have suggestions you can contact me via email, message or using comments, before you will vote bad. And remember that not everybody has enough time for fast replying. ;-)
Last changelog:

7 years ago

4.1.4 (01.11.2013):
- fixed week number not being updated;
- added missing title of "Insert Component" dialog.

4.1.3 (27.09.2013):
- ensure that component values are always up to date;
- adjust timestamp for time zone offset;
- do not allow for accidental nesting of components in editor;
- added option to hide date in Train Clock theme;
- added workaround to ensure that hands of SVG Clock have correct initial positions as soon as possible.

4.1.2 (01.06.2013):
- ensure that center of SVG Clock theme is always valid;
- improve resizing in vertical panels.

4.1.1 (25.05.2013):
- fixed WYSIWYG editor for HTML themes;
- fixed missing dialog for "Insert Component" actions.

4.1 (15.05.2013):
- added SVG Clock theme (analog clock that uses Plasma theme);
- added experimental support for QML themes (alpha state);
- added simple file templates for new themes;
- move theme editor to own dialog;
- move theme specific actions to context menu;
- added ability to install and export themes (Plasma Package ZIP);
- some other improvements and fixes.

9

5er

8 years ago

Another experiment:
http://pastebin.com/gx7zcihv

Report

C

Emdek

8 years ago

Nice. :-)

I'm planning new release for Wednesday, so if you have some ideas for original clock designs (mainly like your previous one or dbClock like) then it's best time to publish them (so those could be included in bundle). ;-)

Report

9

5er

8 years ago

A clock format using the progress tag of HTML5:
http://pastebin.com/RJGSY5r4

Report

C

Emdek

8 years ago

Wow, nice idea. :-)
Can I include it in next version (with some cosmetic changes)?

Report

9

5er

8 years ago

Sure.

Report

C

Emdek

8 years ago

Thanks.
I'm thinking about something a bit different (small changes though):
http://simplest-image-hosting.net/png-0-plasma-desktopfn1969

Report

9

cyberconan

8 years ago

Adjustable clock tooltip shows 24 events for me! I think is a problem with spanish regional settings because there are birthdays of all year.

I tried to disable tooltip using toolTipFormat=, ToolTipFormatMain= and ToolTipFormatSub=, but not work. Any solution?

Thanks!

Report

C

Emdek

8 years ago

It starts with lowercase letter. ;-)
toolTipFormatSub=
You can try to modify default value, %!Z%E, for example just remove %E.

Report

9

cyberconan

8 years ago

Ouch! My problem was I inserted the tooltip line in main section instead [Configuration]. Now tooltip only shows time and date. Thanks!

Report

C

Emdek

8 years ago

I'm currently debugging that flood of events, but it's source is bug in calendar data engine or underlying library. Thanks to tests done by Orivej Desh it appears that engine returns all data from KAddressBook ignoring date range restriction (I couldn't reproduce this using it with Akonadi on KDE 4.8.0)...
You can try to use plasmaengineexplorer to check what calendar data engine returns for query:
events:2012-02-15:2012-02-17
(you may need to update dates range)
If it shows too many things then it probably should reported on bugs.kde.org.

Report

gytis

8 years ago

Not working on KDE 4.8?

Report

C

Emdek

8 years ago

It works fine, but due to breaking ABI on KDE side you need to recompile it for 4.8 (clear build/ directory first).

Report

gytis

8 years ago

Confirmed to work. Thanks.

Report

C

Emdek

8 years ago

I'll warn again here, new version won't recognize previously used formats (the way how they were stored changed to allow easier extending in future) so you need to backup them first or redo from scratch after upgrading (they will need adjusting anyway).
Format placeholders were changed too, to allow to have more options and have more consistent (but no longer compatible with strftime()) placeholders (and make it harder to run off of free symbols).
Big thanks goes to Tomasz Wasilczyk due to his help with testing.

Report

9

Pafrape

9 years ago

This plasmoid is really great.
In early versions, we could remove the clock display to have the calendar when the cursor mouse passed over the plasmoid.
This option was later removed.
Is there a possibility to set this option to delete the clock when the cursor mouse passed over the plasmoid ?
Thank you very much.

Report

C

Emdek

9 years ago

I don't remember such feature (maybe that was byproduct or I've misunderstand)...
Or you ask how to remove time part from tool tip (it's described as second tip on this page, in applet description)?

Report

9

5er

9 years ago

A very beautiful plasmoid.
I feel the need to share my very simple configuration: http://pastebin.com/nwzC4fXu

Report

9

5er

9 years ago

The only issue I have with it is that when the text is very long, the height of the plasmoid is also unnecessarily increased.

Report

C

Emdek

9 years ago

Do you have example code that causes troubles?
You can also try to debug issue using background on main container to check if it's not caused by margins, paddings, font size, line height etc.
And last but not least there is always possibility to try to scale it disproportionate using CTRL (this is useful but hidden feature of default applet handle).

Report

flyingsheep

9 years ago

in case anybody likes vertical toolbars with a readable clock on it:

http://paste.kde.org/100915/

Report

cubuanic

9 years ago

After selecting several items in "Time zones", they is not appearing in hint at all.

Expected behavior: same as in default "Digital clock" applet with several additional timezones selected.

Report

C

Emdek

9 years ago

I will think about this, for example as kind of placeholder for additional timezones, that could be by default placed similarly to that in digital clock.

Report

woodsdog

9 years ago

Here is my format, in case anyone wants a different option. Nothing special,but I like the way it looks:

http://pastebin.com/e9sHgEPL

Report

chio

9 years ago

After updating to Qt 4.7.2, the applet is crashing, when i'm trying to run it.

Backtrace (plasmoidviewer adjustableclock): http://tinypaste.com/a4f8ca

OS: Debian SID/amd64, libqt4 4.7.2, KDE 4.6.1 (from http://qt-kde.debian.net/.

P.S.: Sorry for my bad English.

Report

C

Emdek

9 years ago

Did you tried to rebuild sources after upgrade?
If this doesn't help then it looks like a QtWebkit 64 bit version bug, as it crashes during JavaScript evaluation (I've the same versions of KDE and Qt on Mandriva 32 bit and it works fine).

Report

7 years ago

4.1.4 (01.11.2013):
- fixed week number not being updated;
- added missing title of "Insert Component" dialog.

4.1.3 (27.09.2013):
- ensure that component values are always up to date;
- adjust timestamp for time zone offset;
- do not allow for accidental nesting of components in editor;
- added option to hide date in Train Clock theme;
- added workaround to ensure that hands of SVG Clock have correct initial positions as soon as possible.

4.1.2 (01.06.2013):
- ensure that center of SVG Clock theme is always valid;
- improve resizing in vertical panels.

4.1.1 (25.05.2013):
- fixed WYSIWYG editor for HTML themes;
- fixed missing dialog for "Insert Component" actions.

4.1 (15.05.2013):
- added SVG Clock theme (analog clock that uses Plasma theme);
- added experimental support for QML themes (alpha state);
- added simple file templates for new themes;
- move theme editor to own dialog;
- move theme specific actions to context menu;
- added ability to install and export themes (Plasma Package ZIP);
- some other improvements and fixes.

12345678910
243
product-maker thevladsoft Aug 10 2015 9 excellent
product-maker vanguard7 Sep 01 2014 9 excellent
product-maker SicoBulo Jul 27 2014 3 bad
product-maker electron222 May 08 2014 9 excellent
product-maker janet Feb 22 2014 9 excellent
product-maker garthecho Feb 09 2014 9 excellent
product-maker renjooy Jan 24 2014 9 excellent
product-maker mixalns Nov 02 2013 9 excellent
product-maker MoonBlossom Oct 10 2013 9 excellent
product-maker vatsok Sep 29 2013 9 excellent
product-maker YAFU Sep 28 2013 9 excellent
product-maker fdservices Sep 27 2013 9 excellent
product-maker Omega9 May 16 2013 9 excellent
product-maker oOSplashOo May 15 2013 9 excellent
product-maker baltolkien May 04 2013 9 excellent
product-maker FraMari Apr 21 2013 9 excellent
product-maker monga Apr 21 2013 9 excellent
product-maker frag Apr 15 2013 9 excellent
product-maker SvenArcher Apr 14 2013 9 excellent
product-maker ArthurTaborda Apr 13 2013 9 excellent
product-maker ksolsim Apr 13 2013 9 excellent
product-maker migue Apr 13 2013 9 excellent
product-maker google01103 Apr 13 2013 9 excellent
product-maker evapor Apr 13 2013 9 excellent
product-maker unikum111 Apr 08 2013 9 excellent
product-maker tsujan Jan 06 2013 9 excellent
product-maker lionhater Oct 10 2012 9 excellent
product-maker quinnuendo Oct 03 2012 9 excellent
product-maker xMaki Oct 02 2012 9 excellent
product-maker CobraDOT Aug 13 2012 9 excellent
product-maker RAIDENSUB Jun 12 2012 9 excellent
product-maker remix Apr 03 2012 9 excellent
product-maker SeaJey Feb 15 2012 9 excellent
product-maker orivej Feb 13 2012 9 excellent
product-maker 5er Feb 07 2012 9 excellent
product-maker ZaWertun Feb 03 2012 9 excellent
product-maker cyberconan Jan 15 2012 9 excellent
product-maker CatchTime Dec 02 2011 9 excellent
product-maker paran0idx Dec 02 2011 9 excellent
product-maker deabru Dec 01 2011 9 excellent
product-maker vitoubien Dec 01 2011 9 excellent
product-maker e1nste1n Dec 01 2011 9 excellent
product-maker Pafrape Oct 12 2011 9 excellent
product-maker joseexposito89 Aug 30 2011 3 bad
product-maker ZXP6 Oct 15 2010 9 excellent
Be the first to comment
UnderTheGun
May 01 2014
quinnuendo
Mar 23 2014
BishopWolf
Jan 08 2014
MoonBlossom
Oct 10 2013
fdservices
Sep 27 2013
blue-dxca93
May 08 2013
baltolkien
May 04 2013
Maecla
May 04 2013
ArthurTaborda
Apr 13 2013
ksolsim
Apr 13 2013
migue
Apr 13 2013
elboulangero
Jan 07 2013
n-k
Jan 06 2013
xMaki
Oct 02 2012
CobraDOT
Aug 13 2012
Pafrape
Jun 15 2012
remix
Apr 03 2012
ZaWertun
Feb 03 2012
CatchTime
Dec 02 2011
paran0idx
Dec 02 2011
Bert
Aug 31 2010
olenz
May 11 2010
janet
Apr 30 2010
vazoline
Nov 02 2009
Pitmairen
Jul 02 2009
ahri
May 19 2009
deabru
Mar 27 2009
Sheridan
Mar 27 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
4.1.4 "Hello QML"
updated Nov 01 2013
added Nov 08 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5