Announcement

Collapse
No announcement yet.

superkaramba [solved]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    superkaramba [solved]

    What i need is a way of closing a superkaramba theme without shutting down the program.

    Ive tried looking for scripts but haven't been able to find one, would like it to be as simple as possible. ive got the 'open to work'

    Code:
    CLICKAREA x=10 Y=15 W=32 H=32 SENSOR=PROGRAM ONCLICK="superkaramba /home/nick/style/karamba/EggbanjoRC/eth1.theme"
    now would like to find how you can close that open window with 'onclick'
    Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

    #2
    Re: superkaramba

    Right click on the theme you want to close > than > close this theme
    Registered Linux User #418555<br />Kubuntu User #9254<br /><br />aptosid 2010-01 Xfce / aptosid 2010-01 KDE-Lite<br />Debian Wheezy Xfce / Kubuntu 10.04<br />aptosid 2011-01 Xfce / aptosid 2011-01 KDE-Lite<br />Debian Testing Gnome<br />Debian Sid Gnome<br />Epidemic 3.2<br />ALL pulseaudio free by default

    Comment


      #3
      Re: superkaramba

      Originally posted by eggbanjo
      now would like to find how you can close that open window with 'onclick'
      You can use superkaramba's dcop interface to close a theme, try something like:
      CLICKAREA x=10 Y=15 W=32 H=32 SENSOR=PROGRAM ONCLICK="dcop `dcop superkaramba*` default closeTheme your_theme_name"

      P.S. you can also use dcop to open themes

      Comment


        #4
        Re: superkaramba

        Cheers Kubicle thats got me on the right track.

        Only issue that im having now (all be it a major one) is under dcop superkaramba opens each time with a different number after it i.e

        Code:
        superkaramba-22059
        therefore the way of closing it differs each time

        Code:
        dcop superkaramba-19750 KarambaIface closeTheme
        is there anyway of giving it a static number or just having it as superkaramba??
        Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

        Comment


          #5
          Re: superkaramba

          Originally posted by eggbanjo
          Cheers Kubicle thats got me on the right track.

          Only issue that im having now (all be it a major one) is under dcop superkaramba opens each time with a different number after it i.e

          Code:
          superkaramba-22059
          therefore the way of closing it differs each time

          Code:
          dcop superkaramba-19750 KarambaIface closeTheme
          is there anyway of giving it a static number or just having it as superkaramba??
          That's the process id (PID) number of the running superkaramba instance. It's different everytime superkaramba is started (but stays the same while it's running).

          That's why I included the
          `dcop superkaramba*`
          part of the command, as
          Code:
          dcop superkaramba*
          should return the correct string "superkaramba-PID#".

          Notice that the command is encapsulated in "backticks" (`) which are not the same as single quotes (')...backticks means that the "backticked" command is run before the main command, and the result of that command is inserted into the main command.

          This means the main command should run with the correct PID
          Code:
          dcop superkaramba-PID# KarambaIface closeTheme
          However, this may not work if you have several superkaramba instances running (it's generally better to have a single instance with multiple themes anyway)

          Instead of
          Code:
          "dcop `dcop superkaramba*` default closeTheme your_theme_name"
          you can also use
          Code:
          "dcop superkaramba-`pidof superkaramba` default closeTheme your_theme_name"
          which should do the same thing.

          (You can copy/paste the command(s) if you don't know how to make the backtick (`) char (it varies with layout)

          Comment


            #6
            Re: superkaramba

            Code:
            dcop `dcop superkaramba*` KarambaIface closeTheme
            thats worked a treat, you're a star!


            finished item is here:

            Code:
            http://www.kde-look.org/content/show.php?content=75361
            Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

            Comment


              #7
              Re: superkaramba

              I can see some people are putting a [SOLVED] or *Solved* tag in their subject when the problem is solved. Why is this tag so rare?

              How to tag:
              The author of the thread, must modify the first message by manually editing the subject title.

              Of course.. I don't know if the author of this thread is satisfied with the answer ;-)

              I think the [SOLVED] tag in the subject title would make the forum system more efficient for helping people who need help.

              To all thread authors, consider using this tag. You can always start a new thread being more specific about an unanswered question, which rarely is the same as the original subject title.
              Check out my Ⓥegan youtube channel PlantSugar
              CV and gallery at grn.dk
              Please add [SOLVED] to topic subject when topic is solved.

              Comment

              Working...
              X