Registered Member
|
hi guys,
how difficult would it be to implement a timer/countdown effect for KWin? Ideally it would work like the BeClock, but instead of showing the clock it would show a timer. I have no programming skills in C++/Qt but I'd like to learn if it's not too complicated. Is this feasible? Where should I look first to learn what I need? |
Administrator
|
Doesn't sound like it would be too complicated, I would start looking at the source of BeClock. I also recommend learning the fundamentals of C++ and a bit of Qt. I blogged about my experience learning C++/Qt here. It's a bit out-of-date, but may serve as a motivation. You can also have a look at the KDE developer guide.
Finally, if you just want something that works, you can try this runner which allows you to use BeClock as a timer.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
|
actually all you need is
beclock has a countdown feature accessible via dbus - all you require is some interface to trigger it. qdbus is a cli dbus tool - you could also combine that with kdialog (so all you need is a bas script) or do whatever else you know =) |
Registered Member
|
amazing stuff
Thanks, I'll follow your advices anyway since I'd like to learn a bit of c++/qt sooner or later |
Registered Member
|
by the way, where should I look for a list of magic stuff doable via the dbus interface? More specifically, is it possible to show/hide the clock via dbus? Something like:
|
Administrator
|
You could try the application qdbusviewer.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered Member
|
Thanks! Found it:
While we're here, there is a typo in BeClock KCM, the "Advanced" is called "Andvanced" |
|
nope - not atm.
you can however invoke the toggling shortcut
or (if that is what you want) cycle show/hides
You can also make kwin un/load the effect at runtime (eg. if you only want it during the countdown)
"qdbus org.kde.kwin /Effects toggleEffect kwin4_effect_beclock" will toggle the un/load status of the effect About the typo. One? Thousands (I'm really good at that |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar