Menu

How to 'kill' a theme

Help
Paul Bolle
2003-05-08
2003-05-08
  • Paul Bolle

    Paul Bolle - 2003-05-08

    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?

     
    • Adam Geitgey

      Adam Geitgey - 2003-05-08

      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.

       
    • Paul Bolle

      Paul Bolle - 2003-05-08

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

       
      • Adam Geitgey

        Adam Geitgey - 2003-05-08

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

         
    • Paul Bolle

      Paul Bolle - 2003-05-08

      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!)

       
      • Adam Geitgey

        Adam Geitgey - 2003-05-08

        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 :)

         
    • Paul Bolle

      Paul Bolle - 2003-05-08

      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!

       

Log in to post a comment.