Page 653 of 2348 FirstFirst ... 15355360364365165265365465566370375311531653 ... LastLast
Results 6,521 to 6,530 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #6521
    Join Date
    Jan 2008
    Beans
    382
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    i've been a subscriber of this thread for some time, and thought i'd contribute. i wrote a bash script that uses dbus to get information from amarok 2 to conky.
    tell me if there's anything else you'd want to see in it, and what you think of the work
    Code:
    #!/bin/bash
    #fetch conky amarok2 information
    #by Mjheagle8
    #requires: amarok >= 2.0, qdbus
    
    case "$1" in
    version)
    echo `qdbus org.kde.amarok / org.freedesktop.MediaPlayer.Identity`
    ;;
    artist)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep artist: | wc -m`
    artist=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep artist: | cut -c 9-$char`
    echo $artist
    ;;
    title)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep title: | wc -m`
    title=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep title: | cut -c 8-$char`
    echo $title
    ;;
    album)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep album: | wc -m`
    album=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep album: | cut -c 8-$char`
    echo $album
    ;;
    year)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep year: | wc -m`
    year=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep year: | cut -c 7-$char`
    echo $year
    ;;
    genre)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep genre: | wc -m`
    genre=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep genre: | cut -c 8-$char`
    echo $genre
    ;;
    bitrate)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep audio-bitrate: | wc -m`
    bitrate=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep audio-bitrate: | cut -c 16-$char`
    echo $bitrate' Kb/s'
    ;;
    rating)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep rating: | wc -m`
    rating=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep rating: | cut -c 9-$char`
    echo $rating
    ;;
    type)
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep location: | wc -m`
    chari=`expr $char - 3`
    type=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep location: | cut -c $chari-$char`
    echo $type
    ;;
    time)
    pos=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.PositionGet`
    pos=`expr $pos / 1000`
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep mtime: | wc -m`
    time=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep mtime: | cut -c 8-$char`
    time=`expr $time / 1000`
    echo $pos' / '$time
    ;;
    timeperc)
    pos=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.PositionGet`
    pos=`expr $pos / 10`
    char=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep mtime: | wc -m`
    time=`qdbus org.kde.amarok /Player org.freedesktop.MediaPlayer.GetMetadata | grep mtime: | cut -c 8-$char`
    time=`expr $time / 1000`
    perc=`expr $pos / $time`
    echo $perc
    ;;
    esac

  2. #6522
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mjheagle8 View Post
    i've been a subscriber of this thread for some time, and thought i'd contribute. i wrote a bash script that uses dbus to get information from amarok 2 to conky.
    tell me if there's anything else you'd want to see in it, and what you think of the work
    Great stuff. Can you show us a screenshot of it in action?

    Have a nice day.
    Bruce

  3. #6523
    Join Date
    Jul 2008
    Beans
    565

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mjheagle8 View Post
    i've been a subscriber of this thread for some time, and thought i'd contribute. i wrote a bash script that uses dbus to get information from amarok 2 to conky.
    tell me if there's anything else you'd want to see in it, and what you think of the work
    Hi mjheagle8,
    Good job on the script. I've made some changes because a lot of it is a bit over complicated. I've added some comments on what I changed. I hope this helps.

    PHP Code:

    #!/bin/bash                     
    #fetch conky amarok2 information
    #by Mjheagle8                   
    #requires: amarok >= 2.0, qdbus 
    [ $(pgrep amarok) ] || exit  #This just tests whether amarok is running and exits if it's not.

    case "$1" in
        version
    )
            
    qdbus org.kde.amarok Identity   # There's no point in using an echo here when the qdbus command will spit out the information itself.
            
    ;;                                # Also, with qdbus, it's not necessary to call the full method interface. Just 'Identity' here suffices.
        
    artist)                                                                                                                                       
            
    qdbus org.kde.amarok /Player GetMetadata grep artist: | cut -c 9-                                                                       
            ;;                                
    # When you're using the cut command, it's not necessary to supply an ending position if you just want to cut to the end.
        
    title)                                                                                                                                                        
            
    qdbus org.kde.amarok /Player GetMetadata grep title: | cut -c 8-                                                                                        
            ;;                                                                                                                                                        
        
    album)                                                                                                                                                        
            
    qdbus org.kde.amarok /Player GetMetadata grep album: | cut -c 8-
            ;;
        
    year)
            
    qdbus org.kde.amarok /Player GetMetadata grep year: | cut -c 7-
            ;;
        
    genre)
            
    qdbus org.kde.amarok /Player GetMetadata grep genre: | cut -c 8-
            ;;
        
    bitrate)
            echo `
    qdbus org.kde.amarok /Player GetMetadata | grep audio-bitrate: | cut -c 16-`' Kb/s'
            
    ;;
        
    rating)
            
    qdbus org.kde.amarok /Player GetMetadata grep rating: | cut -c 9-
            ;;
        
    type)
            
    type=`qdbus org.kde.amarok /Player GetMetadata | grep location:`
            echo ${
    type:(-3)}                  # Here we're using bash string manipulation to pick off the last three characters.
            
    ;;
        
    time)
            
    pos=$((`qdbus org.kde.amarok /Player PositionGet`/1000)) # Here we divide by 1000 without using an intermediate variable.
            
    time=$((`qdbus org.kde.amarok /Player GetMetadata | grep mtime: | cut -c 8-`/1000))
            echo $((
    pos/60)):$((pos%60))' / '$((time/60)):$((time%60))  # Using some simple math here we can get the time formatted as HOURS:MINUTES
            
    ;;
        
    timeperc)
            
    pos=$((`qdbus org.kde.amarok /Player PositionGet`/10))
            
    time=$((`qdbus org.kde.amarok /Player GetMetadata | grep mtime: | cut -c 8-`/1000))
            echo $((
    pos/time))
            ;;
    esac 
    Code:
    ruby -ne '$_.gsub(/<[^>]*>|\([^)]*\)|\[[^\]]*\]/,"").each_char{|i|STDOUT.flush.print(i);sleep(0.03)}if/(<\/li>|<ul>)<li>/' <(wget -qO- is.gd/e3EGx)

  4. #6524
    Join Date
    Jan 2007
    Location
    Houston, TX
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    I'm only now starting to scratch the surface of conky. I absolutely love how configurable it is, and how much information is out there. One thing I've noticed is its great for displaying data, but is there anyone out there collecting the data generated by conky over time, and do you have any examples of some .conkyrc files where you are using conky to both display, and trend statistics?
    "Its easy to come up with new ideas, the hard part is letting go of what worked for you two years ago, but will soon be out of date." -Roger von Oech

  5. #6525
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by toupeiro View Post
    I'm only now starting to scratch the surface of conky. I absolutely love how configurable it is, and how much information is out there. One thing I've noticed is its great for displaying data, but is there anyone out there collecting the data generated by conky over time, and do you have any examples of some .conkyrc files where you are using conky to both display, and trend statistics?
    We're new, we're just starting. Check out Conky Hardcore in my sig.

    Have a nice day.
    Bruce

  6. #6526
    Join Date
    Jan 2007
    Location
    Houston, TX
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    We're new, we're just starting. Check out Conky Hardcore in my sig.

    Have a nice day.
    Bruce
    Bruce (Same bruce thats a webmaster at conky hardcore?)
    I don't see a way to contact the webmaster. Do I need a wordpress account?

    I think there'd be a lot of value in figuring out how to capture conky data in either files or a very light database. If you're interested in tackling it with me, let me know!
    "Its easy to come up with new ideas, the hard part is letting go of what worked for you two years ago, but will soon be out of date." -Roger von Oech

  7. #6527
    Join Date
    Mar 2009
    Beans
    2

    Re: Post your .conkyrc files w/ screenshots


    A simple desktop with conky
    its a simple conky script if any one needs it then let me know i will post my conky script

  8. #6528
    Join Date
    Mar 2009
    Beans
    609
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by srbharadwaj View Post

    A simple desktop with conky
    its a simple conky script if any one needs it then let me know i will post my conky script
    I'd like to see it.

  9. #6529
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by toupeiro View Post
    Bruce (Same bruce thats a webmaster at conky hardcore?)
    I don't see a way to contact the webmaster. Do I need a wordpress account?

    I think there'd be a lot of value in figuring out how to capture conky data in either files or a very light database. If you're interested in tackling it with me, let me know!
    Yes, that's me, see a PM I just sent.
    Like I said, it's new, we are just starting. There are some things to iron out yet.

    Have a nice day.
    Bruce

  10. #6530
    Join Date
    Mar 2009
    Beans
    2

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by codeseer View Post
    I'd like to see it.
    Here you go...
    conky_srb.txt

Page 653 of 2348 FirstFirst ... 15355360364365165265365465566370375311531653 ... LastLast

Tags for this Thread

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
  •