Page 2347 of 2347 FirstFirst ... 13471847224722972337234523462347
Results 23,461 to 23,462 of 23462

Thread: Post your .conkyrc files w/ screenshots

  1. #23461
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by freebird54 View Post
    I am pretty sure this is called Eye-Friendly-Bright.
    Thanks!
    Quote Originally Posted by freebird54 View Post
    Have fun - it is tougher than it used to be to find a decent (non-flat) theme

    freebird
    Ain't that the truth.
    Theme found here: https://www.gnome-look.org/search/pr...riendly-Bright
    Last edited by 1fallen; 4 Weeks Ago at 11:01 PM. Reason: add link
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  2. #23462
    Join Date
    Jan 2007
    Location
    Toronto ON Canada
    Beans
    1,109
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Post your .conkyrc files w/ screenshots

    I guess I was a little too quick to post the last lot - with a little refinement (read clean up) and new coding - here's the result:
    I'll include all the ways it looks, depending on what the music player is doing.

    https://i.imgur.com/8chL5Iq.png = Overview

    https://imgur.com/rRBITRj = Playing

    https://imgur.com/bLHmHnL = Paused

    https://imgur.com/0Kdy7lw = Stopped

    https://imgur.com/5MfXKTI = Not Running

    and here is the updated conky_aud3.sh

    Code:
    #!/bin/bash
    
    # This script assumes the following:
    # the directory for each song contains folder.jpg containing album art
    # and your home dir has a directory Work with a substitute image for
    # when folder.jpg is not found.
    # It also assumes that imagemagick is installed
    # (source of the convert command to resize and change to cover.png for display)
    ################################################################################
    # variable declarations and settings
    playback_status=`audtool --playback-status`
    aud="Audacious is now"
    status=`audtool --playback-status`
    title=`audtool --current-song-tuple-data title`
    artist=`audtool --current-song-tuple-data artist`
    album=`audtool --current-song-tuple-data album`
    year=`audtool --current-song-tuple-data year`
    track_no=`audtool --current-song-tuple-data track-number`
    track_length=`audtool --current-song-length`
    track_position=`audtool --current-song-output-length`
    play_len=`audtool --playlist-length`
    play_pos=`audtool --playlist-position`
    
    # functions for later for clarity and easier scripting
    ShowInfo ()
        {
        # If the scroller is not used, uncomment the title/artist/album lines that suit your use
        # Switch the comment block to shorter output
        # works in both locations (paused and playing)
        # if your output area is narrow or your font big
        # echo  "   Title: " ${title}
        # echo  "  Artist: " ${artist}
        # echo  "   Album: " ${album}
        echo "Song " ${play_pos}" of " ${play_len}
        echo " "
        echo  "    Year: " ${year}
        echo  "   Track: " ${track_no}
        echo " "
        echo  "  Length: " ${track_length}
        echo  "Position: " ${track_position}                    # Updates with frequency you set with execi
        # echo  ${title}
        # echo  ${artist}
        # echo  ${album}
        # echo  ${year}
        # echo  ${track_no}
        # echo  ${track_length}
        # echo  `audtool current-song-output-length`
        }
        # End of ShowInfo
    
    GetArt ()
        {
        file_path="$(audtool --current-song-tuple-data file-path)"
        file_path="$(readlink -f "$(bash -c "echo $file_path")")"   # expand and resolve path
        if [[ ! -d $file_path ]]; then
            echo "Error: $file_path does not exist"
            exit 1
        fi
        folder_jpg="$file_path/folder.jpg"                      # look for album art
        if [[ ! -e "$folder_jpg" ]]; then
            cp ~/Work/vinyl.png /tmp/cover.png                  # not there - copy placeholder
        else
            convert "$folder_jpg" -resize 120x120 /tmp/cover.png
        fi
        }
        # end of GetArt
    
    if [ "${check}" == "No song playing." ]; then               # Check if audacious is running
        rm /tmp/trackPlaying 2> /dev/null                       # clean up
        exit 1                                                  # done this pass
    fi
    
    case ${playback_status} in
        "paused")
            echo " "
            echo ${aud} ${status}                                # report status
            ShowInfo                                            # Display song info
            ;;
        "stopped")
            echo " "
            echo ${aud} ${status}                               # report status
            if [[ -e '/tmp/trackPlaying' ]]; then               # if scroller file exists
                echo >/tmp/trackPlaying " "                     # clear file to avoid error and stop scroll
                cp ~/Work/blank.png /tmp/cover.png              # blank out cover art
            fi
            ;;
        "playing")
            if  [  "${track_position}" == "0:00" ]; then       # at song beginning
                GetArt                                         # Retrieve and display cover art
                echo > /tmp/trackPlaying ${track_play}"  Title: "${title}"   *  Artist: "${artist}"   *   Album: "${album}"  "
            fi
            echo " "
            echo " "
            ShowInfo                                           # Display song info
            ;;
        *)
            ;;
    esac
    and the piece of the main file that deals with Audacious:

    Code:
    # ##################################
    # ##     Audacious                ##
    # ##################################
    ${if_match "${lua if_running audacious}" == "1"}${voffset 5}${font DroidSans:bold:size=8}${color4}Audacious Running${offset 8}${color6}${voffset -2}${hr 1}#
    ${voffset 150}${if_match "${audacious_status}" != "Stopped"}${goto 8}${color3}${audacious_bar 6,277}${font}${endif}#
    ${voffset -150}${font DroidSansMono:size=10}${color2}${execi 2 ~/conky_aud3.sh}#
    ${image /tmp/cover.png -p 160,855}#
    ${else}#
    ${voffset 8}${font :bold:size=8}${color4}No Media Playing ${color1}${hr 1}${font}#
    ${image ${template5} -p 55,855 }#
    ${endif}#
    Last edited by freebird54; 6 Days Ago at 01:34 PM. Reason: update pic - and now the .sh code
    |Intel E6550 2.33 | Intel mb/gfx/snd | 4 Gb RAM | Seagate 500Gb | 64 Gb SSD|24" LCD |16.04/18.04 | AMD A10 5800K 3.8GHz / ATI gfx| Asus A88X-Pro mb/snd | 8 Gb RAM | Corsair Force 128 Gb SSD | Seagate 3+2TB | USB 2TB | Sony 40" | Ubuntu 16.04/18.04 |

Page 2347 of 2347 FirstFirst ... 13471847224722972337234523462347

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
  •