Having fun with my first themes ... addicting stuff! Being new to this fun, I do hope my question makes sense: how can you stap a theme?
Say, if a rum 'superkaramba 'mysilly.theme' from the Konsole I can either close that Konsole-session or either use Ctrl + C or Ctrl + Q on that karamba on my desktop.
Isn't there, either;
1) a simple command line option (say: 'superkaramba -kill mysilly.theme)?
2) a call you can make from within mysilly.py (say: 'widgetKill(widget)')
3) or something like that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well ... I wouldn't yet know how to write a script that right clicks on a theme! ;)
(Besides, 'ps -ax' might tell you there's more than one theme running but you more or less have to guess which theme - read: which /usr/bin/superkaramba process - should be killed.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You don't need to write anything. You can always right click on any theme to bring up a menu which lets you close it, reloaded it, edit it, and unlock it (so you can drag it around your desktop).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I guess I haven't made myself clear. I already know you can right click but I'd LIKE to be able to script it.
Actually ... what I'd like to accomplish is that a text-karamba will be changed because another process stops or starts.
For instance: if an 'ippp' device goes up I want to start a theme, if that 'ippp' device becomes 'connected' I want to replace it with another theme, if the 'ippp' device gets hungup I want it yet again replaced by another theme and if that 'ippp' device is down I want that last theme simply to stop.
(If you could start, change and stop just one theme the same effect could de reached.)
Does this still makes sense?
But please remember I'm just having fun - great fun! - now ... this may all be just be something that is of little use anyway ... or already possibel ... I really can't say right now. (And I'm pretty sure it might be difficult to code ... so please don't think I'm criticising this project ... on the contrary!)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Alright, so what you really need is a DCOP interface to SuperKaramba that could start and stop themes.
Then you could do:
# dcop superkaramba killtheme themename
or whatever in any kind of shell script. (if you aren't familiar with DCOP, try running kdcop and playing around with it. It is kde's subsystem to allow inter-application communication and the ability to script KDE applications from shell scripts).
Thats a great idea. I'll work on it.
And I didn't think you were criticizing :) I got no negative vibes so to speak from your earlier posts :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the other hand, maybe what I want could easier be done with
If=some_test interval=1000
text x=0 y=0 value='Printed if test is true'
else
text x=0 y=0 value='Test was false'
endif
I suppose that idea is clear.
Maybe that's easier to implement/ I guess not, but it could be very powerfull!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Having fun with my first themes ... addicting stuff! Being new to this fun, I do hope my question makes sense: how can you stap a theme?
Say, if a rum 'superkaramba 'mysilly.theme' from the Konsole I can either close that Konsole-session or either use Ctrl + C or Ctrl + Q on that karamba on my desktop.
Isn't there, either;
1) a simple command line option (say: 'superkaramba -kill mysilly.theme)?
2) a call you can make from within mysilly.py (say: 'widgetKill(widget)')
3) or something like that?
Why don't you just right click on the theme and click on "Close Theme"?
I'll probably also add a python call for it later.
Well ... I wouldn't yet know how to write a script that right clicks on a theme! ;)
(Besides, 'ps -ax' might tell you there's more than one theme running but you more or less have to guess which theme - read: which /usr/bin/superkaramba process - should be killed.)
You are making this way harder than it is :)
You don't need to write anything. You can always right click on any theme to bring up a menu which lets you close it, reloaded it, edit it, and unlock it (so you can drag it around your desktop).
Well, I guess I haven't made myself clear. I already know you can right click but I'd LIKE to be able to script it.
Actually ... what I'd like to accomplish is that a text-karamba will be changed because another process stops or starts.
For instance: if an 'ippp' device goes up I want to start a theme, if that 'ippp' device becomes 'connected' I want to replace it with another theme, if the 'ippp' device gets hungup I want it yet again replaced by another theme and if that 'ippp' device is down I want that last theme simply to stop.
(If you could start, change and stop just one theme the same effect could de reached.)
Does this still makes sense?
But please remember I'm just having fun - great fun! - now ... this may all be just be something that is of little use anyway ... or already possibel ... I really can't say right now. (And I'm pretty sure it might be difficult to code ... so please don't think I'm criticising this project ... on the contrary!)
Alright, so what you really need is a DCOP interface to SuperKaramba that could start and stop themes.
Then you could do:
# dcop superkaramba killtheme themename
or whatever in any kind of shell script. (if you aren't familiar with DCOP, try running kdcop and playing around with it. It is kde's subsystem to allow inter-application communication and the ability to script KDE applications from shell scripts).
Thats a great idea. I'll work on it.
And I didn't think you were criticizing :) I got no negative vibes so to speak from your earlier posts :)
Great ... I'll be patient ...
On the other hand, maybe what I want could easier be done with
If=some_test interval=1000
text x=0 y=0 value='Printed if test is true'
else
text x=0 y=0 value='Test was false'
endif
I suppose that idea is clear.
Maybe that's easier to implement/ I guess not, but it could be very powerfull!