-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (29) .- Knowledge Base  . 

Adjustable Clock

   4.1.4 "Hello QML"  

Plasmoid Binary

Score 90%
Adjustable Clock
zoom


Adjustable Clock
zoom


Adjustable Clock
zoom


Depends on  KDE 4.x
Downloads:  9753
Submitted:  Nov 8 2008
Updated:  Nov 1 2013

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. ;-)




Changelog:

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.




LicenseGPL
Source(Adjustable Clock v4.1.4 (tar.bz2))
Source(Adjustable Clock master snapshot (zip))
SUSE(Packages on openSUSE Build Service)
Fedora(Packages for Fedora (by sokar620))
Ubuntu(Packages for Kubuntu (by Emdek))
Arch(Arch-Linux PKGBUILD (by ksolsim))
Donate
Send to a friend
Subscribe
Other  Apps  from Emdek
Report inappropriate content



goto page: prev  ... 3  4  5  6  7  8  9  10  11  12  13  14 

-

 Clock that I am using

 
 by gldvorak on: Sep 17 2012
 
Score 50%

<div style="text-align: center; color:#FFFF00;">
<span style="font-size: 20px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%h:%m:%s&nbsp;&nbsp;%p&nbsp;&nbsp;&nbsp;&nbsp;</span>
<span style="font-size: 14px;"><br>%$w,</span>
<span style="font-size: 14px;"><br>%$M&nbsp;%!d,&nbsp;%Y</span>
<span style="font-size: 12px;"><br>%$z&nbsp;UTC&nbsp;%!z</span><br>
</div>

Note that I use nonbreaking spaces to keep from having line wraps where I do not want them. I use a rather tall panel where this clock is located.


Reply to this

-

 Limiting text width

 
 by gldvorak on: Sep 17 2012
 
Score 50%

I am tryingwithout success so far to truncate the width of text, for example, display Monday as Mon and September as Sep.


Reply to this

-

 Finally

 
 by gldvorak on: Sep 18 2012
 
Score 50%

The clock displayed the way I want it to look!

<div style="text-align: center; color:#FFFF00;">
<span style="font-size: 20px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%h:%m:%s&nbsp;&nbsp;%p&nbsp;&nbsp;&nbsp;&nbsp;</span>
<span style="font-size: 14px;"><br>%!$w,&nbsp;%!$M&nbsp;%!d,&nbsp;%Y</span>
<span style="font-size: 12px;"><br>%!$z&nbsp;UTC&nbsp;%!z</span><br>
</div>

This displays on three lines and shows only the time zone city.


Reply to this

-

 a vertical clock setup

 
 by quinnuendo on: Oct 4 2012
 
Score 50%
quinnuendoquinnuendo
University of Novi Sad
Home
-
Doni Pracner 0

University of Novi Sad
Serbia, Novi Sad
Last visit Mar 23 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

With my current desktop setup, I found it really usefull to have a clock with really big digits in my vertical sidebar. So I am using the whole width of it for just the two digits that are the hours, and then bellow the minutes. A bit smaller is the date and the day of the week, which I also sometimes find handy :)

html:
<div style="text-align: center; font-family:Droid Sans">
<span class="gen shadowed clock">%h</span><br>
<span class="gen shadowed clock" style="font-size:12px">o o<br></span>
<span class="gen shadowed clock">%m<br></span>
<span class="gen shadowed" style="font-size: 40px;">%!$w</span><br>
<span class="gen shadowed" style="font-size: 30px;">%d/%M</span>
</div>

css:
.shadowed {text-shadow:black 0.04em 0.04em 0em, #bbf 0em 0.0em 0.3em}
.clock {font-size: 60px; font-weight:bold}
.gen {color:#ccc}

Could be a bit more elegant with the font sizes not hard coded, but it works. The important part anyway are the relative sizes, since the plasmoid gets resized to fit in the sidebar.


Reply to this

-
.

 fantatstic

 
 by pallegro on: Oct 7 2012
 
Score 50%

thanks for this


Reply to this

-

 unable to use it on javascript

 
 by nowardev on: Oct 11 2012
 
Score 50%

hi i can't use your widget in javascript


var applet = panel.addWidget("adjustableclock")
applet.writeConfig("announceInterval","0")
applet.writeConfig("calendarType","locale")
applet.writeConfig("clipboardFormats","%x,%f,%H:%M:%S,,%X,%F,,%c,%C,%Y-%m-%d %H:%M:%S,,%t")
applet.writeConfig("defaultTimezone","Local")
applet.writeConfig("displayEvents","true")
applet.writeConfig("displayHolidays","true")
applet.writeConfig("fastCopyFormat","%Y-%m-%d %H:%M:%S")
applet.writeConfig("holidaysRegions","us_en-us")
applet.writeConfig("holidaysRegionsDaysOff","us_en-us")
applet.writeConfig("timeFormat","<html><head></head><body><div style")
applet.writeConfig("timeFormatNames","Default 2,dbClock with reflection 2")
applet.writeConfig("timeFormatStrings",'<html><head></head><body><div style="text-align: center; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; white-space: pre; font-size: 57px; "><font color="#ffffff" face="Ubuntu"><span style="font-size: 54px; "><span style="font-size: 45px; ">%d.%m</span> </span><big style="font-size: 60px; "><b>%H:%M </b></big></font></div>,<html><head></head><body><div style="height:50px; background:none;"><div style="text-align:center; white-space:pre; font-size:25px; margin:-10px 0 5px 5px; -webkit-box-reflect:below -5px -webkit-gradient(linear\\, left top\\, left bottom\\, from(transparent)\\, color-stop(0.5\\, transparent)\\, to(white));"><span style="font-family:\'Nimbus Roman No9 L\';">%H:%M<span style="font-size:30px; position:relative; left:-8px; top:4px; z-index:-1; opacity:0.5;">%S</span></span></div></div>')


Reply to this

-

 Re: unable to use it on javascript

 
 by Emdek on: Oct 11 2012
 
Score 50%

You are doing it wrong. ;-)
Currently (3.1) themes are stored (only those which are not in themes XML file) in configuration subgroups (and it is not going to change anytime soon), like [Formats][Name], which have keys: background, css, html, script (I'm not sure if this key is already used in 3.1, since I'm using not released yet version ;-)), title.
Sou you shall first create such subgroup for new theme and then set key format to that name. Also I guess that manually creating some of keys like defaultTimezone is not necessary.


Life is unfair...
Reply to this

-

 Re: Re: unable to use it on javascript

 
 by nowardev on: Oct 21 2012
 
Score 50%

what?
i am unable to use your widget via javascript i have tried a lots nothing worked




var panel = new Panel
panel.location = 'bottom' //panel.location = 'top'



var applet = panel.addWidget("adjustableclock")

applet.currentConfigGroup = new Array('Configuration') // CONFIGURE DOCKERS HELPERS

applet.writeConfig("timeFormatStrings",'<html><head></head><body><div style="text-align:center; margin:5px; white-space:pre;"><font face="\'Nimbus Roman No9 L\'" color="#ffffff"><b><big>%x %H:%M </big></b></font></div>')


Reply to this

-

 Re: Re: Re: unable to use it on javascript

 
 by Emdek on: Nov 2 2012
 
Score 50%

Sorry for delay but I was busy with defense of my MD thesis...

Which version of applet are you using? Your code will not work with current version, as stated before. Configuration layout is very different from old one.


Life is unfair...
Reply to this

-

 Re: Re: Re: Re: unable to use it on javascript

 
 by nowardev on: Nov 3 2012
 
Score 50%

:D no problem at all for delay for now i have made my collection of panels with standard clock but because of it lacks of options i would like use your widget so i need to use it with javascript.

anyway i have this one (debian package)

ii plasma-widget-adjustableclock 2.6.1-1


Reply to this

-

 Re: Re: Re: Re: Re: unable to use it on javascript

 
 by Emdek on: Nov 3 2012
 
Score 50%

You should update to current version, which is already "old". ;-)
There are big chances that old one doesn't react at all or does it improperly in case of configuration changes done from outside.

And if no one want to maintain this package in Debian then it should be dropped, since it makes even more harm to have so outdated one there...


Life is unfair...
Reply to this

-

 Re: Re: Re: Re: Re: Re: unable to use it on javasc

 
 by nowardev on: Nov 3 2012
 
Score 50%

ok upgraded but ... no changes how should i do ?

it's faster if you do because i can't undestand your way.

i have tested this : with and without the array Configuration

you could just try it out : alt f2 >> desktop console => copy and paste the code it's not a pain it just add an empty panel and it tries to add your widget with some config


var panel = new Panel
panel.location = 'bottom' //panel.location = 'top'



var applet = panel.addWidget("adjustableclock")

applet.currentConfigGroup = new Array('Configuration')


applet.writeConfig("timeFormatNames","Default 2")


applet.writeConfig("timeFormatStrings",'<html><body><div style="text-align:center; margin:5px; white-space:pre;"><span style="color:#ffffff;"><b style="font-size: 27px; "><span style="font-size: 32px; "><span style="font-family:\'Ubuntu\';">%d %x</span><span style="font-family: Ubuntu; font-size: 40px; "> </span></span><big style="font-size: 56px; "><span style="font-family:\'Ubuntu\';">%H:%M</span></big></b></span></div>')

panel.reloadConfig()



-

 Re: Re: Re: Re: Re: unable to use it on javascript

 
 by Emdek on: Nov 25 2012
 
Score 50%

Sorry for next delay, but apparently I'm extremely busy recently. :-/
I'm unable to open that scripting console, it is application name or binary name, or there is some special command known only for KRunner (hopefully not translated...)?
And I can only tell that your approach is still wrong, here is example configuration file layout with two formats (test and test2):
http://paste.kde.org/614522/


Life is unfair...
Reply to this

-

 Re: Re: Re: Re: Re: Re: unable to use it on javasc

 
 by nowardev on: Nov 26 2012
 
Score 50%

well you need to configure krunner and turn on desktop console plugin

http://wstaw.org/m/2012/11/26/plasma-desktopwu5011.png

or if you can't there is a shell command that works for sure , type in konsole :

qdbus org.kde.plasma-desktop /MainApplication showInteractiveConsole

there is no problem for delay cuz i have already done plasma panels collections 2 it would say i will use your widget when we will be able to script it ;)



-

 Re: Re: Re: Re: Re: unable to use it on javascript

 
 by Emdek on: Nov 26 2012
 
Score 50%

Got it, thanks. :-)
I will try to find some free time to test it during this week, in case of no activity feel free to send me message (here, by email, on github or elsewhere).

Well, it is already scriptable, it is just not so trivial after themes become more advanced. ;-)


Life is unfair...
Reply to this

-

 Re: Re: Re: Re: Re: unable to use it on javascript

 
 by Emdek on: Mar 12 2013
 
Score 50%

It seems that best way would be to include those themes that you need (if current are not enough) and then simply change single configuration key with identifier.
But the main issue is that you would need at least 3.0 to make it work (older versions have different configuration keys layout).


Life is unfair...
Reply to this

goto page: prev  ... 3  4  5  6  7  8  9  10  11  12  13  14 

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.