BeClock

Various KDE 1.-4. Improvements

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

47
Score 85.2%
Description:

A simple clock, implemented as KWin Effect

- This is NO plasmoid!
- You need active desktop FX to use this clock

** NOTICE **
For KDE 4.10 you'll have to obtain the version from https://sourceforge.net/p/bekwinfx/
(either through preferably git or a live tarball)

0.18 will not work on KDE 4.10

Installation:
---
tar -xJf beclock-kwin-fx.x.y.txz
cd beclock-kwin-fx
./configure
cd build
make && sudo make install
---
to activate or configure
- rightclick some titlebar
- say "configure..."
- click "all effects"
- filter for beclock
- check and maybe configure it.
- click apply


Advances:
- always on top
- input event dead (you can click through etc.)

Features:
- AM/PM or 24h digital display
- optional date display
- binary clock
Last changelog:

7 years ago

0.18
----
- hometime support, ie you get one additional timezone to select which will appear as a dot in the analog rings only

0.17a
----
- yet another maintenance release, fixes 64bit (thanks to Raymond Wooninck for notice and a patch) and KDE 4.7 building
- hometime support comes later ...

0.17
----
- build fix
- show corner activated clock on countdown
- preselect local time format (24h ./. AM/PM)

0.16
----
- maintainance release for KDE SC 4.8rc1 compilation. No functional change.
- update on 2012-02-03: cmake janus compilation issues, no code change

0.15
----
- support for 4.8 (yes, doesn't disappear anymore)
- alpha support for GLSL 2.0 (the blendfunction was irrelevant since not used anyway - i fixed kwin to support 2.0 shaders on my box ;-)
- as an extra bonus a binary and a Maya inspired clock =)

C

thomas12777

7 years ago

What does
ls /usr/lib/libkwingl*
resp.
ls /usr/lib64/libkwingl*

print?

Report

Mte90

7 years ago

this files not exist...
on debian repo i not find this package for install it...

Report

C

thomas12777

7 years ago

ldd `which kwin` > kwin.libs
please mail me the file (kwin.libs)

Report

C

thomas12777

7 years ago

sigh, yes.

in the last third of CMakeLists.txt you'll find three OPENGLES_FOUND related statements, replace them with ENABLE_GLES

Got an idea for a a reasonable feature update, so i don't have to make another maintenance tarball?

Report

rabauke

7 years ago

Lot's of ideas, not sure they are feasible. :)

E.g. default to system defaults regarding time and date format. I had to enable "use 24 hour display" although the locale of my KDE is set to German, same for the date pattern in the advanced tab which defaults to yyyy-MM-dd.

Not sure if valid, but to avoid burn-in because the clock is at the same position forever and e.g. the ":" or the first bits of circles always visible, the clock could automatically move every x hours by y pixels in one direction and x hours later back to the original position.

And of course: do whatever is necessary to get this into kdereview and KDE SC afterwards since it's surely a killer feature! Small, noninvasive, useful, innovative… The only thing that hinders it to replace the default clock is that one cannot click on it to open the calendar. :-)

Another feature one could think of is to have multiple clocks with different timezones. Or an even more classical theme with hands.

Report

C

thomas12777

7 years ago

24h preselection is valid, but i picked the date format for being the only non stupid one ;-)

(It's btw. also the official European & German date format, believe it or not. Maybe not the most used, but still the official one: http://de.wikipedia.org/wiki/Datumsformat#ISO_8601_und_EN_28601 )

On burn in or (rather) not:
jumping around is no option, far too distracting.
I added an hour chime (so once per hour the clock pulses once)
However, while a hour signal might be a good idea, doing so to save your screen is delusion: If the area around (under) the clock does not update you'd have a similar issue for every (non uniform colored) wallpaper.
But burning in is really gone (but for plasmas) and only the cheapest and/or oldest of all screens will suffer from (usually not unrevertible) image persistence (that is NO burn in, trust me ;-)

About Hands: no way. Fork it =P

Timezones are a matter of it's own. While principally no major issue, they've the tendency to crowd the desktop (what becomes an issue for the overlay character) - i'll see whether i can come up with a usable idea to provide timezone changes in one clock, though i've never understood the need of this, i know it's 6h earlier in NY - and passed elementary school :-P

About KDE SC - that's likely never gonna happen.
The reason is that a WM plugin that has really nothing to do with WM has somehow no proper location in the SC and the tendency is to get "toys" out of KWin.
Maybe if there's ever a side package "Fun with compositing" *shrug*

Report

prowlerxpla

7 years ago

>24h preselection is valid, but i picked the date >format for being the only non stupid one ;-)

I like the way to format the date now, I can for example put 2012-feb-14, very good


>About Hands: no way. Fork it =P

withouthandsforever :-)))) I'm with you

>Timezones are a matter of it's own. While >...understood the need of this, i know it's 6h >earlier in NY - and passed elementary school :-P

is becouse you are young and you have a good memory :-), when I was in USA, and asked you this enhancemente, I never remembered if Italy was 6 hour before or later... :-)

an idea could be a different color dot in the hour and minute circles, (possibly with a couple of letter, like IT for italy, to insert optionally) and the time in the same color of the added dot (or star??) upon the master time.

Report

prowlerxpla

7 years ago

>24h preselection is valid, but i picked the date >format for being the only non stupid one ;-)

I like the way to format the date now, I can for example put 2012-feb-14, very good


>About Hands: no way. Fork it =P

withouthandsforever :-)))) I'm with you

>Timezones are a matter of it's own. While >...understood the need of this, i know it's 6h >earlier in NY - and passed elementary school :-P

is becouse you are young and you have a good memory :-), when I was in USA, and asked you this enhancemente, I never remembered if Italy was 6 hour before or later... :-)

an idea could be a different color dot in the hour and minute circles, (possibly with a couple of letter, like IT for italy, to insert optionally) and the time in the same color of the added dot (or star??) upon the master time.

Report

rabauke

7 years ago

About the date: KDE has locale settings which define the currency, date format etc. Those settings should be used by all KDE apps – at least by default.

If it's feasible the effect could use JavaScript and thus be downloadable without compilation.

Thanks for the new release, I'll try to build it.

Report

C

thomas12777

7 years ago

> If it's feasible the effect could use JavaScript
> and thus be downloadable without compilation.

Hehe - "no", it's quite beyond that ;-)

But one could possibly implement general OSD functionality in the compositor, eg. usable from amaroks "tune changed" osd, for the existing solutions have their issues - no idea how i'd implement the circle painting in JS though (having 720pngs is probably a lousy solution :-)

Report

rabauke

7 years ago

Your CMakeList.txt does not disable OpenGLES building if it was not found.

I have a system with GLES and one without. On the GLEs enabled one it builds fine. But if I comment out the find_package(OPENGLES) it fails to build instead of just not building the GLES bit.

-- COMPILING FOR 4.8
-- HAVE OPENGL
-- Configuring done

Should not build anything GLES related yet it does which is why compiling on non GLES systems always fails. And it fails on GLES enabled systems if you comment out find_package(OPENGLES) in the CMakeList.txt.

CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o: In function `KWin::BeClock::paintScreen(int, QRegion, KWin::ScreenPaintData&)':
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:545: undefined reference to `KWin::ShaderManager::instance()'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:547: undefined reference to `KWin::ShaderManager::isValid() const'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:570: undefined reference to `KWin::GLTexture::bind()'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:571: undefined reference to `KWin::GLTexture::render(QRegion, QRect const&)'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:572: undefined reference to `KWin::GLTexture::unbind()'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:565: undefined reference to `KWin::GLTexture::bind()'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:566: undefined reference to `KWin::GLTexture::render(QRegion, QRect const&)'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:567: undefined reference to `KWin::GLTexture::unbind()'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:547: undefined reference to `KWin::ShaderManager::getBoundShader() const'
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:548: undefined reference to `KWin::GLShader::setUniform(KWin::GLShader::Vec4Uniform, QVector4D const&)'
CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o: In function `KWin::BeClock::updateBuffer()':
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:1129: undefined reference to `KWin::GLTexture::GLTexture(QImage const&, unsigned int)'
CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o: In function `KWin::BeClock::reconfigure(QFlags<KWin::Effect::ReconfigureFlag>)':
/usr/src/packages/BUILD/beclock-kwin-fx-0.16/beclock.cpp:448: undefined reference to `KWin::GLTexture::GLTexture(QImage const&, unsigned int)'
collect2: ld returned 1 exit status

Commenting all gles bits out in the CMAkeList.txt works around the issue.

Report

C

thomas12777

7 years ago

scroll 5 comments up - the issue is that GLES is installed (thus found) but kwin_gles is not (i'll add a script looking for that lib with the next version)

Report

rabauke

7 years ago

Just to make sure:

It compiles on my computer fine. So kwin_gles is present.

On the same computer it fails to build if I comment out find_package(OPENGLES). Although kwin_gles is present.

To me this means that if OPENGLES is not found it fails no matter whether kwin_gles is present or not.

Try it out by commenting out the find_package line in the CMakeList on a computer where it does compile fine.

Report

C

thomas12777

7 years ago

Ok, that one's been a little more nasty ;-)

Thanks for the notice, i rewrote the janus compilation script. Should work fine now + you get an option to dis/enable gles which defaults to the presence of kwinglesutils.so

Report

rabauke

7 years ago

Thanks for fixing it that quickly!

Report

masterdany88

7 years ago

Hey. I have problem, I think that I dont have all dependecies. I use kubuntu 11.10
please help


danielo@danielos:~/pobrane_Firefox/beclock-kwin-fx/build$ make
[ 57%] Built target kcm_kwin4_effect_beclock_automoc
[ 57%] Built target kcm_kwin4_effect_beclock
[ 57%] Built target kwin4_effect_beclock_automoc
[ 57%] Building CXX object CMakeFiles/kwin4_effect_beclock.dir/beclock.o
In file included from /usr/include/kwinglutils.h:28:0,
from /home/danielo/pobrane_Firefox/beclock-kwin-fx/beclock.cpp:24:
/usr/include/kwinglutils_funcs.h:51:19: fatal error: GL/gl.h: Nie ma takiego pliku ani katalogu
compilation terminated.
make[2]: *** [CMakeFiles/kwin4_effect_beclock.dir/beclock.o] Błąd 1
make[1]: *** [CMakeFiles/kwin4_effect_beclock.dir/all] Błąd 2
make: *** [all] Błąd 2
danielo@danielos:~/pobrane_Firefox/beclock-kwin-fx/build$

Report

srog

7 years ago

Many binaries can be found from the Personal Package Archives for Ubuntu: https://launchpad.net/ubuntu/+ppas

BeClock search: https://launchpad.net/ubuntu/+ppas?name_filter=beclock

Report

C

thomas12777

7 years ago

mesa/mesa-dev package

Report

mixalns

7 years ago

Great Idea, thank you so much.

Report

gravy

7 years ago

It work good for me on Opensue 12.1 KDE 4.7.2 but just upgrade to KDE 4.7.4 release 11 and it not work . Disable and enable again: Kwin say:
This desktop effect counld be activeted:BeCLock.
How to fix?

Report

C

thomas12777

7 years ago

Recompile - the Effects are not ABI stable and every now and then the API version is bumped because of this. To prevent plugins from crashing, they're denied when they propagate the wrong API version number.
So whenever the API changes, the plugins must be recompiled against that version.

Report

mikala

7 years ago

Hello,
a rebuild does not seems enough under kde 4.7.95.
the plugin can be selectionned & there's no error messages however using the shortcut to make the clock appear does not work.
There's no log error in ~/.xsession-errors (all output are enable in kdebudialog)

Regards,

Report

bitcrazy

7 years ago

Same here. Compiling succeeds, activation without error, but no clock.

Report

C

thomas12777

7 years ago

KWin GLES? - I'd have to admit to not have tested that backend so far.

Does the cmake run say it's compiling for 4.8?

Does it work with the xrender backend?

Report

Moviuro

7 years ago

HI, I've got KDE 4.8.0 on OpenSUSE 11.4, all headers ok:
[ 81%] Building CXX object CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o
[ 90%] Building CXX object CMakeFiles/kwin4_effect_gles_beclock.dir/moc_dbus.o
Linking CXX shared module lib/kwin4_effect_gles_beclock.so
CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o: In function `KWin::BeClock::paintScreen(int, QRegion, KWin::ScreenPaintData&)':
beclock.cpp:(.text+0x1384): undefined reference to `KWin::ShaderManager::instance()'
beclock.cpp:(.text+0x138f): undefined reference to `KWin::ShaderManager::isValid() const'
beclock.cpp:(.text+0x13d1): undefined reference to `KWin::GLTexture::bind()'
beclock.cpp:(.text+0x1425): undefined reference to `KWin::GLTexture::render(QRegion, QRect const&)'
beclock.cpp:(.text+0x1439): undefined reference to `KWin::GLTexture::unbind()'
beclock.cpp:(.text+0x1678): undefined reference to `KWin::GLTexture::bind()'
beclock.cpp:(.text+0x16cc): undefined reference to `KWin::GLTexture::render(QRegion, QRect const&)'
beclock.cpp:(.text+0x16e0): undefined reference to `KWin::GLTexture::unbind()'
beclock.cpp:(.text+0x1714): undefined reference to `KWin::ShaderManager::getBoundShader() const'
beclock.cpp:(.text+0x1751): undefined reference to `KWin::GLShader::setUniform(KWin::GLShader::Vec4Uniform, QVector4D const&)'
CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o: In function `KWin::BeClock::updateBuffer()':
beclock.cpp:(.text+0x4699): undefined reference to `KWin::GLTexture::GLTexture(QImage const&, unsigned int)'
CMakeFiles/kwin4_effect_gles_beclock.dir/beclock.o: In function `KWin::BeClock::reconfigure(QFlags<KWin::Effect::ReconfigureFlag>)':
beclock.cpp:(.text+0x639e): undefined reference to `KWin::GLTexture::GLTexture(QImage const&, unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [lib/kwin4_effect_gles_beclock.so] Erreur 1
make[1]: *** [CMakeFiles/kwin4_effect_gles_beclock.dir/all] Erreur 2
make: *** [all] Erreur 2

FYI, I cannot build anything on plasma (taskbars & so on won't configure), i do not know if it is related.

Report

7 years ago

0.18
----
- hometime support, ie you get one additional timezone to select which will appear as a dot in the analog rings only

0.17a
----
- yet another maintenance release, fixes 64bit (thanks to Raymond Wooninck for notice and a patch) and KDE 4.7 building
- hometime support comes later ...

0.17
----
- build fix
- show corner activated clock on countdown
- preselect local time format (24h ./. AM/PM)

0.16
----
- maintainance release for KDE SC 4.8rc1 compilation. No functional change.
- update on 2012-02-03: cmake janus compilation issues, no code change

0.15
----
- support for 4.8 (yes, doesn't disappear anymore)
- alpha support for GLSL 2.0 (the blendfunction was irrelevant since not used anyway - i fixed kwin to support 2.0 shaders on my box ;-)
- as an extra bonus a binary and a Maya inspired clock =)

12345678910
141
product-maker lei00 Feb 25 2013 9 excellent
product-maker OdinEidolon Feb 09 2013 9 excellent
product-maker vootey Feb 07 2013 9 excellent
product-maker alvanet Dec 26 2012 9 excellent
product-maker mkudro Dec 19 2012 9 excellent
product-maker RAIDENSUB Jun 12 2012 9 excellent
product-maker hamidsafdari May 28 2012 9 excellent
product-maker fella Apr 22 2012 9 excellent
product-maker pvt14 Feb 06 2012 9 excellent
product-maker rabauke Feb 06 2012 9 excellent
product-maker 8Ypsilon Feb 03 2012 9 excellent
product-maker atorkhov Jan 18 2012 9 excellent
product-maker F1ash Jan 18 2012 9 excellent
product-maker qwerta Jan 09 2012 9 excellent
product-maker mixalns Dec 27 2011 9 excellent
product-maker rotoglok Dec 11 2011 9 excellent
product-maker Moviuro Dec 11 2011 9 excellent
product-maker dr4g0n Oct 30 2011 9 excellent
product-maker RazrFalcon Oct 27 2011 9 excellent
product-maker Xepher Oct 12 2011 9 excellent
product-maker joetux Sep 19 2011 3 bad
product-maker olegue Sep 09 2011 9 excellent
product-maker reves121 Sep 06 2011 9 excellent
product-maker laloch Aug 31 2011 9 excellent
product-maker tobaj Jul 19 2011 9 excellent
product-maker deabru Jun 18 2011 9 excellent
product-maker mcder Jun 15 2011 9 excellent
product-maker TheRob Jun 13 2011 9 excellent
product-maker bretzeltux Apr 12 2011 9 excellent
product-maker LukSch Mar 27 2011 9 excellent
product-maker terrorbaby92 Mar 11 2011 9 excellent
product-maker kalmar Feb 28 2011 9 excellent
product-maker Artcor Feb 10 2011 9 excellent
product-maker steveke Feb 10 2011 9 excellent
product-maker srog Feb 07 2011 9 excellent
product-maker mywereld Jan 01 2011 9 excellent
product-maker hhees Dec 07 2010 9 excellent
product-maker koral Dec 06 2010 9 excellent
product-maker agaya Nov 25 2010 9 excellent
product-maker infectedsoundsystem Nov 16 2010 9 excellent
product-maker annia Nov 11 2010 9 excellent
product-maker fhh Oct 09 2010 9 excellent
product-maker Count: 4 Rating: 5.0

laloch

Mar 18 2013

Mte90

Feb 19 2012

tomsdale

Feb 03 2012

atorkhov

Jan 18 2012

rotoglok

Dec 11 2011

bas89

Nov 12 2011

EternalLight

Nov 08 2011

olegue

Sep 09 2011

hlebarkata

Aug 20 2011

prowlerxpla

Aug 13 2011

rieper

Aug 02 2011

tobaj

Jul 19 2011

mcder

Jun 15 2011

dglent

Jun 14 2011

LukSch

Mar 27 2011

m00nraker

Mar 22 2011

deabru

Dec 08 2010

terrorbaby92

Dec 08 2010

nick1701

Nov 20 2010

veleno

Aug 19 2010

quincunx

Aug 12 2010

CyberTribe

Jul 22 2010

OdinEidolon

Jul 15 2010

dfx

Jun 26 2010

flowabcd

Jun 26 2010

shadyabhi

Jun 08 2010

uteck

Jun 06 2010

Vistausss

Jun 05 2010

zvonSully

May 16 2010

AlejandroNova

May 11 2010

sensemilla

Apr 16 2010

gimox

Apr 03 2010

janet

Apr 02 2010

Bottom-Egg

Mar 20 2010

lonk

Mar 17 2010

mountainjew

Mar 14 2010

gzu

Feb 02 2010

olingerc

Feb 02 2010

Havoc65

Jan 24 2010

parapente

Jan 20 2010

brucew

Jan 19 2010

genericity

Jan 05 2010

DjNeophyte

Jan 05 2010

TheRob

Jan 02 2010

nowardev

Dec 25 2009

Znurre

Dec 24 2009

Diablo

Dec 23 2009
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.18
updated Mar 04 2012
added Dec 23 2009
downloads 24h
0
page views 24h 15