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
8.4
Available as/for: -
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:

9 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

8 years ago

I like that kind of solution =)
Thanks for the update.

Report

C

thomas12777

8 years ago

I even run it with kwin git master here - did you recompile it?
(the effect ABI changed)

Report

C

thomas12777

8 years ago

"compilation works, btw" ... so that's not it?

a) sure it's beclock that cannot be activated and not sth. else and beclock just does not show up?

b) Does it work with the xrender backend?

c) the "could not be activated" should provide more information (like wrong ABI, does not support this backend, ... stuff)

Report

landice

8 years ago

I would like to suggest in addition of the timezone support beclock currently have, add a dbus call to set the timezone and adjust the displayed time according to it. I made some quick hack to do it in 0.18. With this dbus interface I can write a script to update the timezone using geoip city database, and have the script run automatically using networkmanager hooks. The net results is that everytime I travel to a new place, I simply connect to the network and beclock will automatically adjust to the local timezone.

Report

C

thomas12777

8 years ago

Nice idea, but possibly "wrong" approach?

The "correct" solution would be
sudo ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime

If you want to update beclock immediately just run
qdbus org.kde.kwin /BeClock countdown 0


Otherwise you'd get diverging timezone display/handling in your system - not sure whether that's what you want (you do have privileges when doing that from networkmanager, do you?)

Report

landice

8 years ago

I completely agree the timezone setting should be done in a more low level so more program can benefit from it. I decide to hack beclock mainly because it is THE clock I use, also I am unsure about the side-effect when changing /etc/localtime on the fly without logout/reboot. Anyway, It is just a suggestion, maybe it will inspire some more elegent solutions.

Report

prowlerxpla

9 years ago

Maaaanythanks :-) I'll ennjoy it when I will be abroad again :-)
it works well on kde 4.8.2,
as I undertood the dot is for the home or fixed time, the beclock is for the current where I am time, is it correct??
it seems ok, but in m y situation the dot is less visible than I expected, a solution could be a different color, or the inverted color of the circle....
Ciao Pier

Report

exeroc

9 years ago

Quote:
[ 85%] Building CXX object CMakeFiles/kwin4_effect_beclock.dir/beclock.o
/home/***/Telechargements/beclock-kwin-fx-0.18/beclock.cpp: In member function ‘virtual void KWin::BeClock::paintScreen(int, QRegion, KWin::ScreenPaintData&)’:
/home/***/Telechargements/beclock-kwin-fx-0.18/beclock.cpp:563:9: error: ‘ShaderManager’ was not declared in this scope
/home/***/Telechargements/beclock-kwin-fx-0.18/beclock.cpp:563:24: error: ‘sm’ was not declared in this scope
/home/***/Telechargements/beclock-kwin-fx-0.18/beclock.cpp:563:29: error: ‘ShaderManager’ is not a class or namespace
/home/***/Telechargements/beclock-kwin-fx-0.18/beclock.cpp:566:32: error: ‘ModulationConstant’ is not a member of ‘KWin::GLShader’
make[2]: *** [CMakeFiles/kwin4_effect_beclock.dir/beclock.o] Erreur 1
I have an opensuse 11.4 with kde 4.6, I have installed everything mentionned before like kde-workspace-dev ...
But I don't find how to compile it...

Report

C

thomas12777

9 years ago

The current version won't compile for you anymore - but i guess moving a few lines into #ifdefs will do.

Please look a one of the source files (.h, .cpp) and drop me a private mail. I'll send you versions with version branching until it compiles - since i don't have 4.6 around, that's far easier than uploading half a dozen fails here ;-)

Report

prowlerxpla

9 years ago

beclock 0.17 on opensuse 12.1 and kde 4.8.0, after some hours beclock disappear, as I was doing tests with "qdbus org.kde.kwin /BeClock getAttention 5" command and alarmclock, I was thinking it was related to it, but when I give the "qdbus org.kde.kwin /BeClock getAttention 5" command it worked and beclock appear and disappear 5 times, but after the last disappear didn't reappear any more.

Report

C

thomas12777

9 years ago

there's just one state whether the clock is visible or not[1], there's likely been a collision in the counter (like chime ./. getAttention ./. countdown)

There's a shortcut to show/hide the clock - i think i defaulted it to shift+ctrl+f12 - at least that's configure here ;-)

[1] to answer your question: because the features grew on top of it ;-)

Report

prowlerxpla

9 years ago

I installed 0.17 version, that now is on suse repos :-), but I cannot understand what the new features do, in a week I didn't see any change...
-what attention period is?
-what count down attentions are?
-chime on the hour should be some "effect" every hour, it should but I didn't see yet, I wasn't there in that minute maybe:-)
thanks

Report

C

thomas12777

9 years ago

open a terminal and enter
qdbus org.kde.kwin /BeClock getAttention 1

This should also happen on every hour change if you activate that option.

Now type
qdbus org.kde.kwin /BeClock countdown 10

When the countdown is done you get n attentions. If not, there's an issue with getting the texture translucent (ie. trying to use shaders while they're not supplied or not using shaders while they control the appearance)

Report

prowlerxpla

9 years ago

>open a terminal and enter
>qdbus org.kde.kwin /BeClock getAttention 1

>This should also happen on every hour change if >you activate that option.

"qdbus org.kde.kwin /BeClock getAttention 1" produce only the disappearing of clock, did you think that this is something that get attention?? :-)

Report

C

thomas12777

9 years ago

It's supposed to perform a "pulse", ie. disappear and re-appear (several times in doubt)

Do you use the dynamic mode? (in doubt just post the BeClock settings from ~/.kde/kwinrc)

Report

prowlerxpla

9 years ago

I think static, and the clock disappear and reappear after 4-5 seconds, no pulse, the config on my suse 12.1 it should be this
/home/pla/.kde4/share/config/kwinrc
[Effect-BeClock]
24h=true
Align=34
AttentionPeriod=9000
Background=255,255,255
Chime=true
CountDownAttention=16
DatePattern=yyyy-MMM-dd
ElectricBorders=
Font=Sans Serif,9,-1,5,50,0,0,0,0,0
Foreground=46,114,25
HideOnHover=true
Screen=-1
ShowDate=true
ShowDayOfWeek=true
ShowDigits=true
ShowRings=true
ShowSeconds=false
Size=320
Type=0
X=20
Y=20

thanks:-)

Report

C

thomas12777

9 years ago

Nowhere, that's ununixish ;-)

You can cause a countdown whenever you want through dbus (there's afaik some plasmoid and i've a script/alias so i can "countdown m s" eg. from krunner, konsole or whatever. You could also create a kteatime clone, ie. a droplist with some preset timeouts.

I've added the chime to the setup (happens once per hour, but causes only ONE pulse) but you can use crontab or atq to schedule those pulses (and as many) whenever you want.

Report

C

thomas12777

9 years ago

I think static, and the clock disappear and reappear after 4-5 seconds, no pulse

Yes, and yes there is - technically ;-)

> AttentionPeriod=9000
The value controls the period, ie 0.001/Hz - in other words, one "pulse" cycle lasts 9000 ms

Since the animation speed itself is static, this means "fade out - wait, wait longer - fade in"
Try to lower this value (the default is 3600, the minimum is 1500)

> CountDownAttention=16
So when the countdown finishes there will be 16 "pulses" within 2.4 minutes =)

Report

prowlerxpla

9 years ago

ooookkk:-) it works, 16 events with 1500 ms for me is ok, but, where can I set the countdown or time when this will happen??

Report

prowlerxpla

9 years ago

I installed 0.17 version, that now is on suse repos :-), but I cannot understand what the new features do, in a week I didn't see any change...
-what attention period is?
-what count down attentions are?
-chime on the hour should be some "effect" every hour, it should but I didn't see yet, I wasn't there in that minute maybe:-)
thanks

Report

9

Moviuro

9 years ago

Thanks to have it "make" correctly on KDE 4.8.0.
I'm wondering why it is still not part of the official KDE though.... ;-)

Report

C

thomas12777

9 years ago

See some comments up - i've never approached. The problem is, that it doesn't seem to be belong anywhere.

Certainly not KWin, since it's not about window managing
Certainly not Plasma(-desktop/-applets) since it's no plasmoid.

One could possibly move it standalone to extragear, but that wouldn't change anything. And as long as your distro has a binary there's ultimately no difference through some "approved by KDE" tag anyway.

Report

9

rabauke

9 years ago

I think there might still be a slight mix-up in the CMakeList.txt.

WARNING: GLES was found, but libkwinglesutils.so is not present

Ensure your KDE is complete and use ccmake to enable GLES nevertheless
-- COMPILING GLES ONLY
-- Configuring done

That should be COMPILING OPNGL ONLY should it not?

And the build fails with:

/usr/bin/cmake -E cmake_link_script CMakeFiles/kcm_kwin4_effect_beclock.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-Bsymbolic-functions -shared -Wl,-soname,kcm_kwin4_effect_beclock.so -o lib/kcm_kwin4_effect_beclock.so CMakeFiles/kcm_kwin4_effect_beclock.dir/kcm_kwin4_effect_beclock_automoc.o CMakeFiles/kcm_kwin4_effect_beclock.dir/beclock_config.o /usr/lib/libkdeui.so.5.7.0 -lkwineffects /usr/lib/libkdecore.so.5.7.0 /usr/lib/libQtDBus.so /usr/lib/libQtCore.so -lpthread /usr/lib/libQtGui.so /usr/lib/libQtSvg.so
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: cannot find -lkwinglesutils
collect2: ld returned 1 exit status
make[2]: *** [lib/kwin4_effect_beclock.so] Error 1

Report

Mte90

9 years ago

i have the same problem on compiling.

Report

Mte90

9 years ago

Scanning dependencies of target kcm_kwin4_effect_beclock_automoc
Generating beclock_config.moc
[ 0%] Built target kcm_kwin4_effect_beclock_automoc
[ 14%] Generating ui_beclock_config.h
Scanning dependencies of target kcm_kwin4_effect_beclock
[ 28%] Building CXX object CMakeFiles/kcm_kwin4_effect_beclock.dir/kcm_kwin4_effect_beclock_automoc.o
[ 42%] Building CXX object CMakeFiles/kcm_kwin4_effect_beclock.dir/beclock_config.o
Linking CXX shared module lib/kcm_kwin4_effect_beclock.so
[ 42%] Built target kcm_kwin4_effect_beclock
Scanning dependencies of target kwin4_effect_beclock_automoc
Generating moc_beclock.cpp
/home/mte90/Desktop/beclock-kwin-fx/beclock.h:97: Warning: Class BeClock inherits from two QObject subclasses QObject and Effect. This is not supported!
[ 42%] Built target kwin4_effect_beclock_automoc
[ 57%] Generating moc_dbus.cxx
Scanning dependencies of target kwin4_effect_beclock
[ 71%] Building CXX object CMakeFiles/kwin4_effect_beclock.dir/kwin4_effect_beclock_automoc.o
[ 85%] Building CXX object CMakeFiles/kwin4_effect_beclock.dir/beclock.o
[100%] Building CXX object CMakeFiles/kwin4_effect_beclock.dir/moc_dbus.o
Linking CXX shared module lib/kwin4_effect_beclock.so
/usr/bin/ld: cannot find -lkwinglutils
collect2: ld returned 1 exit status
make[2]: *** [lib/kwin4_effect_beclock.so] Error 1
make[1]: *** [CMakeFiles/kwin4_effect_beclock.dir/all] Error 2
make: *** [all] Error 2

i get this error with 0.17 version on aptosid 64bit

Report

9 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 07 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
Be the first to comment
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 09 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 21 2010
lonk
Mar 17 2010
mountainjew
Mar 15 2010
gzu
Feb 02 2010
olingerc
Feb 02 2010
Havoc65
Jan 24 2010
parapente
Jan 20 2010
brucew
Jan 20 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 MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.18
updated Mar 04 2012
added Dec 23 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2