Results 1 to 8 of 8

Thread: Single on/off switch for conky

  1. #1
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Single on/off switch for conky

    Here's a simple script to turn conky on and off. Just copy the script to a empty text file and make it executable(properties>permissions)->

    Code:
    #!/bin/sh
    
    # click to start, click to stop
    
    if pidof conky | grep [0-9] > /dev/null
    then
     exec killall conky
    else
     exec conky
    
    fi
    Then just create a single launcher for it(right click panel/desk) and point it to what ever you named your file, add a icon and your all set. I use mine so i can change my .conkyrc to try things and skip using the terminal to kill conky and start conky, clicking on the icon is way faster.
    Last edited by kerry_s; October 29th, 2006 at 08:40 AM.

  2. #2
    Join Date
    Jan 2007
    Location
    Turkey
    Beans
    275
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Single on/off switch for conky

    i couldn't understand how to make it exactly...
    how you name the file and how you make it executable.

    i paste it to the mousepad(text file) and save it..uh i couldnt go so far

  3. #3
    Join Date
    Jan 2007
    Location
    Turkey
    Beans
    275
    Distro
    Ubuntu 9.10 Karmic Koala

    Thumbs down Re: Single on/off switch for conky

    ok i did it..the problem was: i save it to the desktop and i couldnt change the permissions. i moved it to home folder and make it executable. it works great. now i can configure my .conkyrc in a practical way
    thanks again

  4. #4
    Join Date
    May 2007
    Location
    California
    Beans
    328
    Distro
    Ubuntu

    Re: Single on/off switch for conky

    Registered Ubuntu User # 18139 and Registered linux user # 486806 Stuck in a Windows world!!!

  5. #5
    Join Date
    Aug 2007
    Location
    Novocastria, Australia
    Beans
    751
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Single on/off switch for conky

    Awsome!! Thanks!

  6. #6
    Join Date
    May 2007
    Location
    La Porte City, IA , USA
    Beans
    56
    Distro
    Xubuntu

    Re: Single on/off switch for conky

    Looks like the one in Antix-mepis--
    works really good too!
    You can change it to work with wbar or any app. as well.
    Peace and Justice are two sides of the same coin.

  7. #7
    Join Date
    Jun 2007
    Beans
    49

    Re: Single on/off switch for conky

    sweet! ROX!

  8. #8
    Join Date
    Mar 2009
    Location
    Hornell, NY
    Beans
    6
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Single on/off switch for conky

    This is great! I find this so much easier now. Thanks so much for your contribution

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •