Page 26 of 32 FirstFirst ... 162425262728 ... LastLast
Results 251 to 260 of 313

Thread: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

  1. #251
    Join Date
    Sep 2008
    Location
    Filipinas; Formosa
    Beans
    201
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by wlourf View Post
    Hi all,

    While I was working on an equalizer widget, I tried an audio equalizer for conky. Well, it was easy because the work was already done for a screenlet for gnome (Impulse):
    https://launchpad.net/impulse.bzr

    So the work was only to adapt scripts from python to lua. I've done it for two "themes" default and circle like on the picture.

    If you want to try it, you have to set the path in the conkyrc (all variables are set in conkyrc so there is no need to make any changes in the lua script)

    And you need to download the C library from the Impulse web site :
    http://gnome-look.org/content/show.php/?content=99383
    just copy impulse.so and libimpulse.so into the script folder.

    the Lua script call the python script, in fact I use this line because i didn't find a better way to do it, so if you have any ideas !
    conky_parse('${exec python impulse.py'}')

    In the tar.gz, there is the conkyrc, the lua and python scripts and the two librairies .so.

    If you have any question, don't hesitate.

    Edit 28 Feb. 2010 : with the help of the auhor of Impulse, I managed to make something faster ! You can see here in action but the sound is crap, sorry for your ears...
    I also added peaks like on the video and it is possible to use this widget with the bargraph widget I made a few weeks ago

    Edit 10 March 2010 : the conkyrc can be called with an absolute path.
    I added last version of the bargraph widget which can be drawn on a circular way.
    And another video with better sound
    Does this work on karmic 64-bit? Thanks
    i5-750/P55-UD3P/HD4850 1GB DDR3/4GB DDR3 A-Data Ubuntu 11.04 x64 Natty/Igelle 1.0.0 DSV /Windows7 x64 (for gaming)

  2. #252
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by ProNux View Post
    Does this work on karmic 64-bit? Thanks
    Don't know, but why not ?! You need pulse audio...

  3. #253
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Hi all, another widget in Lua for Conky

    I needed it to display available space of all mounted drives on my computer on a fancy way. It's a pie chart and each sector of the pie displays a partition (each sector is proportional to the total space of the mounted drives). And each sector is filled according to the used space of the drive.
    Of course, the widget can display some other informations (cpu, ram ...)

    I think you will better understand with pictures attached !

    You need conky 1.8.0 because the script use the cairo_text_extents function for text alignment.
    The function takes some parameters :
    Code:
    tableV            - table of labels and values {{label1,value,max,convert to Go-Mo-Ko units or unit}, {label2,value,max,convert to Go-Mo-Ko units or unit}, ...}
    xc                - x center of the pie
    yc                - y center of the pie
    int_radius         - internal radius
    radius            - external radius
    first_angle        - first angle of the pie
    last_angle        - last angle of the pie
    proportional    - display proportional sectors (true/false)
    tablebg            - table of background colours ans alpha {{0xFF0000,1}, {0x00FF00,1}, ...}
    tablefg            - table of background colours ans alpha {{0xFF0000,1}, {0x00FF00,1}, ...}
    gradient_effect    - gradient effect (true/false)
    show_text        - display text (true/false)
    line_lgth        - length for horizontal line (from radius to end of line)
    line_space        - vertical space between two lines
    line_width        - width of line
    extend_line        - grow up the line (true/false) if length of text> line_lgth
    txt_font        - font
    font_size        - font size
    font_color        - font color
    font_alpha        - font alpha
    txt_offset        - space between text and line
    txt_format        - string for formatting text, possibles values are
                      &l for label
                      &o for occupied percentage
                      &f for free percentage
                      &v for occupied value
                      &n for free value (non-occupied)    
                      &m for max value
                      &p for percentage value of full graph        
    nb_decimals        - number of decimals for numbers
    Theses parameters are explained on this page, with pictures :
    http://u-scripts.blogspot.com/2010/0...rt-widget.html

    Voilà !

    Edit 15/05/2010 : v1.1 The parameters are set in a table, most of them are optional, it is more easy to set up the script.
    Added a parameter "type_arc" to display values like a ring.
    With old script, the filling was radial, now it can be also like a ring, as you can see on the two red arcs
    Edit 29/05/2010 : v1.2 added some parameters
    Edit 26/06/2010 : v1.21 minor corrections
    Last version of the script is now available on deviantArt
    Attached Images Attached Images
    Last edited by wlourf; January 26th, 2011 at 09:11 PM.

  4. #254
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Thumbs down Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by mobilediesel View Post
    I edited the code a little bit. Nothing important so you don't need to edit yours.

    Here it is with color coding to explain the different parts:
    Code:
    cal -m | sed '1d' | sed '/^ *$/d' | sed -r '0,/./s/.*/${color BFEEFC}&${color}/' | sed 's/\<'"$(date +%-d)"'\>/${color 4CD5FF}&${color}/'|sed 's/^/${alignc -30}/'
    Removes the first line. (Month and year)
    Removes any blank lines.
    The 0 means it'll only change the first line. It adds the color to the beginning and end of the line. (Names of the days of the week.)
    Surrounds the current day number with color code.
    Adds the alignment code to the beginning of each line.
    *edited for least number of program calls:

    Code:
    cal | sed -r '0,/./s/.*/${color BFEEFC}&${color}/'| sed -e '1d' -e '/^ *$/d' -e 's/\<'"$(date +%-d)"'\>/${color 4CD5FF}&${color}/' -e 's/^/${alignc -30}/'
    Surrounds the current day number with color code.
    Performs all other formating
    || Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

  5. #255
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by Crinos512 View Post
    *edited for least number of program calls:

    Code:
    cal | sed -r '0,/./s/.*/${color BFEEFC}&${color}/'| sed -e '1d' -e '/^ *$/d' -e 's/\<'"$(date +%-d)"'\>/${color 4CD5FF}&${color}/' -e 's/^/${alignc -30}/'
    Surrounds the current day number with color code.
    Performs all other formating
    I should have thought of that!

    You did make it one too few program calls:
    Code:
    cal | sed '1d' | sed -r '0,/./s/.*/${color BFEEFC}&${color}/' | sed -e '/^ *$/d' -e 's/\<'"$(date +%-d)"'\>/${color 4CD5FF}&${color}/' -e 's/^/${alignc -30}/'
    The sed -r was coloring the first line which was then getting deleted by the -e '1d'.

    If only -e and -r could be combined in the same command. I've tried and it tells me
    Code:
    sed: can't read 0,/./s/.*/${color BFEEFC}&${color}/: No such file or directory

  6. #256
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    oops.
    || Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

  7. #257
    Join Date
    Nov 2009
    Location
    Burgas,BG
    Beans
    0
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Bravo script is perfect.

    how can I show it without this window.
    Attached Images Attached Images
    Last edited by radoshow; April 14th, 2010 at 08:22 PM.

  8. #258
    Join Date
    Nov 2009
    Location
    Burgas,BG
    Beans
    0
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by radoshow View Post
    Bravo script is perfect.

    how can I show it without this window.
    I fix it.Change this line:
    Code:
    own_window yes with no

  9. #259
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    @radoshow

    or uncomment theses two lines :
    Code:
    own_window_type normal
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    and don't forget to set up latitude and longitude in the Lua script :
    Code:
    Latitude=46     #number
    NorthSouth=n    #n/s
    Longitude=0     #number
    EastWest=e      #e/w
    hth

  10. #260
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by Crinos512 View Post
    oops.
    Hey, even with one error it was a big improvement having one sed command run several filters.

Page 26 of 32 FirstFirst ... 162425262728 ... LastLast

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
  •