Page 1294 of 2328 FirstFirst ... 2947941194124412841292129312941295129613041344139417942294 ... LastLast
Results 12,931 to 12,940 of 23275

Thread: Post your .conkyrc files w/ screenshots

  1. #12931
    Join Date
    Mar 2010
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    I was messing around with the conky and I finally managed to get it to appear on the screen. Now all I've got to do is make a few changes when I've got the time.

    Thanks everyone, especially killerhippy.

    Cheers


  2. #12932
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by kyoji View Post
    Hello,

    I am hoping some of you conky pros can help me with a script I'm working on. The script is used to get your friends from Xbox live and pass it to conky. It works fine in a terminal, but when its passed to conky it will only print 4-5 friends and cuts off the last friend's status.

    This is based off the code from this post:
    http://ubuntuforums.org/showthread.php?t=1236199

    Code:
    #!/bin/bash
    
    Filename=~/Friends.aspx
    line=`awk '/ Online/' $Filename | wc -l`   #Gets the line count to determin how many friends are on.
    linect=$((line-1))      # Line will find 1 entry that does not relate to a friend, so this removes it.
    FRIENDS=$((linect*2)) #used to print only friends online.
    
    rm ~/Friends.aspx
    
    wget --load-cookies=cookies.txt --keep-session-cookies --ignore-length --no-check-certificate http://live.xbox.com/en-US/profile/Friends.aspx ;
    
    if [ "$line > 1" ]  ; then     
    
        awk '/h3|Online/' $Filename | sed -e '{
            s/<h3>//         #Deletes HTML "h3" tags.
            s/<.*>//g        #Deletes all other HTML tags.
            /Online/d        #Deletes the Online line.
            s/^ *//          #Moves txt to the right.
            s/^[^-]./*&/     #Places an "*" in front of the gamertag.
            s/^-//           #Deletes "-" in front of gamer status.
            s/[[:space:]]$// #Removes white spaces (conky writes them as a square box).   
            2d               #Deletes 2 blank lines at the beginnig of the piped txt.
    	/^$/d
            }
        ' | head -n$FRIENDS ;
        
    else 
        if [ "$line <= 1" ] ; then
            echo '**No Friends are online**' ;
            
        fi
    
    fi
    As I'm not at my comp I can't post my .conkyrc, but I think this is is the value that could be causing the problem.

    Code:
    I have tried:
    
    minimum_size 5 5
    &
    minimum_size 1280
    I read that conky will determin the hight of the window by the content of the command. Is this correct?

    Thanks
    has anybody done any more work on this?

    Quote Originally Posted by LostDakota View Post
    So I have been trying to find a script or some other tutorial on how to get my XBOX360 friends list to display in conky. Being unsucessfull, I decided to try my hand at creating one of my own. Now before you go off on me about how messy or bloated this is, or how much MS sucks, please note that I have only been using ubuntu for 6 months in my spare time and 360 is still pretty cool(IMO.) So if you have suggestions on how I can be more efficient, I'd love to hear them. As it stands, there are some flaws. Which is why I'm posting this so that those who are more educated can help me perfect it. And so it goes.

    CONKY XBO360 FRIENDS LIST

    1.) I use Firefox. I like it. If you use something else, I have no way to help you other than the usual "Google it!" So, we need a way to get the cookies from Firefox. FF has begun using cookies.sqlite instead of cookies.txt (which we need.) So the first step is to download a handy FF extension that does the conversion for us. Clicky.

    2.) Once installed, visit xbox.com and sign in making sure to check "Save my Login and Password." After you are signed in, click Tools in FF and you will notice the option "Export Cookies..." Click on it and a dialog box will come up asking you to name it and where you want it to go. The default (at least for me) was cookies.txt and the dir ~/ I left it like that and clicked Export.

    3.) The reason for all the cookie business is that wget need them to get past the M$ Javascript Login. We have to use wget to save the html of the Friends page. You do this by entering this into a terminal.

    Code:
    wget --load-cookies=cookies.txt --keep-session-cookies --ignore-length --no-check-certificate http://live.xbox.com/en-US/profile/Friends.aspx
    This will save a file called Friends.aspx to your home directory.

    4.) Now comes the part where you vets will shake you head and probably start twitching. Open up gedit, pico or vi and create a script in /usr/bin named xFriends. (You can name it whatever you want really. Just remember to change it in your conky.rc file.) Here it is...

    Code:
    #!/bin/bash
    
    rm ~/Friends.aspx
    
    wget --load-cookies=cookies.txt --keep-session-cookies --ignore-length --no-check-certificate http://live.xbox.com/en-US/profile/Friends.aspx
    
    cat Friends.aspx | grep 'h3\|Status' | tail -n+2 | tr -s " " " " | grep 'h3\|Xbox' | tr -s '"' "\n" | grep 'h3\|/span' | sed 's#\/span##g' | tr -s ">" " " | tr -s "<" " " | sed 's#\/h3##g' | sed 's#\h3##g' | sed 's/ |* /&|/g' | tr -s " " " " | head -n10
    The rm removes the Friends.aspx file so it doesn't create Friends.aspx.1, etc. The wget retrieves the page again. Then the debauchery hacks the html into what I felt was relevant to display in conky. Save the script and chmod 755 it.

    5.) In your conky.rc file, type this where you want the list to appear.

    Code:
    ${execi 30 /usr/bin/xFriends | head -n12}
    And viola! Your top 5 friend (either on line or top alphabetically) will be displayed on you desktop. And updated every 30 seconds.

    Now, I leave it up to you to modify as you see fit. I have noticed, that you need to Export Cookies daily or else it poops the bed and wont work. Formatting has also been an issue for me. Help me with this if you can. If not, oh well, I tried and it suits my needs/wants.

    P.S. I tried to type all of this into the New Post form and I believe I failed miserably. So if by some stretch I have double posted, (mods) feel free to banish one or the other to /dev/null. Screen shots follow.
    Does anybody know how to get it working without having to export the cookies daily. maybe another little script?
    I'm a super power user

  3. #12933
    Join Date
    Feb 2010
    Beans
    15

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    nice design. good integration into the background image
    thanks! much appreciated...

  4. #12934
    Join Date
    Jan 2007
    Beans
    25

    Re: Post your .conkyrc files w/ screenshots

    I forgot to add .conkyrc

    Uploaded as conkyrc.txt
    Attached Files Attached Files

  5. #12935
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by EclipseAgent View Post
    I forgot to add .conkyrc

    Uploaded as conkyrc.txt
    You can edit existing posts you know...

  6. #12936
    Join Date
    Jun 2010
    Beans
    31

    Question Re: Post your .conkyrc files w/ screenshots

    Hello,

    i grabed a code off here i like the lay out but i need to move it over some away from the right edge of the screen its cutting off some words and a network graph box some, here is the code..

    Code:
    # maintain spacing between certain elements
    use_spacer yes
    
    # set to yes if you want tormo to be forked in the background
    #background yes
    
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono-9
    #xftfont Andale Mono-9
    #xftfont Clean-9
    #xftfont cubicfive10:pixelsize=10
    #xftfont squaredance10:pixelsize=14
    #xftfont swf!t_v02:pixelsize=12
    
    # Text alpha when using Xft
    xftalpha 0.65
    
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 1.0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 230
    maximum_width 320
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no # amplifies text
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey90
    default_shade_color black
    default_outline_color DarkGrey
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 10
    gap_y 25
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # stuff after 'TEXT' will be formatted on screen
    
    ## IF I WANT TO ADD THE WEATHER BACK IN...
    #${color #ffcb48}WEATHER$color ${color #ffcb48}${hr 2}$color
    # ${execi 1800 /home/jeff/.conky-weather/weather.sh 02155}
    ##
    
    ## IF I WANT THE HDD TEMPERATURE BACK IN...
    # temp:$color ${hddtemp /dev/sda}
    ##
    
    ## IF I WANT BATTERY STATE BACK IN...
    #${color #ffcb48}BATTERY STATE$color ${color #ffcb48}${stippled_hr}$color
    # $battery (time left: ${battery_time})
    ##
    
    TEXT
    
    ${color #ffffff}$nodename$color
    $alignc ${color #ffffff}$sysname $kernel on $machine$color
    $alignr ${color #ffffff}Uptime:$uptime$color
    $stippled_hr
    
    ${color #ffcb48}CPU$color (${freq_g}GHz) ${color #ffcb48}$stippled_hr$color
     ${color #98c2c7}usage:$color $cpu% $alignr ${color #98c2c7}temp:$color $acpitemp
     ${cpugraph 7b1d16 ca7f1a}$color
     ${color #98c2c7}NAME             PID       CPU%      MEM%
     ${color #e5e5e5}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
     ${color #d4d4d4}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
     ${color #cacaca}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
     ${color #c0c0c0}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
     ${color #bababa}${top name 5} ${top pid 5}   ${top cpu 5}    ${top mem 5}
    ${color #ffcb48}HDD$color ${color #ffcb48}${stippled_hr}$color
     ${color #98c2c7}used:$color ${fs_used_perc /}% ($fs_used/$fs_size) $alignr ${color #98c2c7}
     ${color #c2c798}${fs_bar 6 /}$color
     ${color #98c2c7}disk IO:$color $diskio
     ${color #c2c798}${diskiograph 161d7b 1a7fca}$color
    
    ${color #ffcb48}RAM$color ${color #ffcb48}${stippled_hr}$color
     ${color #98c2c7}RAM used:$color $memperc% ($mem/$memmax)
     ${color #c2c798}${membar 6}$color
     ${color #98c2c7}swap used:$color $swapperc% ($swap/$swapmax)
     ${color #c2c798}${swapbar 6}$color
    
    ${color #ffcb48}NETWORKING$color ${color #ffcb48}${stippled_hr}$color
     ${color #98c2c7}eth0 (${addr eth0})$color $alignr ${color #98c2c7}eth1 (${addr eth1}|${linkstatus eth1}%)$color
     download ${color green}${downspeed eth0}kb/s$color $alignr download ${color green}${downspeed eth1}kb/s$color
     ${color #c2c798}${downspeedgraph eth0 25,140 1d761b 5faa00}$alignr${downspeedgraph eth1 25,140 1d761b 7fca1a}$color
     upload ${color red}${upspeed eth0}kb/s$color $alignr upload ${color red}${upspeed eth1}kb/s$color
     ${color #c2c798}${upspeedgraph eth0 25,140 760d0b ca3f1a}$alignr${upspeedgraph eth1 25,140 761d1b ca7f1a}$color
    
    ${if_running mpd}
    ${color #ffcb48}MUSIC$color ($mpd_status) ${color ffcb48}${stippled_hr}$color
     $alignr shuffle[$mpd_random] repeat[$mpd_repeat]
     $alignc${color 98c2c7}$mpd_artist$color::${color c2c798}$mpd_album$color
     $alignc${mpd_track} $mpd_title
     $mpd_elapsed ${mpd_bar 5,222} $alignr $mpd_length
    $endif

  7. #12937
    Join Date
    Jun 2010
    Beans
    31

    Question Need little help on this one.. Please

    Hi all,

    i like this conky setup but im having a problem trying to figure out so its not its own window i tried changing this section

    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    i changed it to no but it pushed it down low and off to the right off the screen..
    thought maybe someone would know a fix or a piece of code needed or even if the owner of this can help me out? Thanks for reading

    Code:
    # Conky sample configuration
    #
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # X font when Xft is disabled, you can pick one with program xfontsel artwiz package?
    #font 5x8
    font 6x9
    #font 6x10
    #font 6x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    # Use Xft?
    use_xft no
    
    # Set conky on the bottom of all other applications
    on_bottom yes
    
    # Xft font when Xft is enabled
    xftfont Gothic:size=8
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # Print everything to stdout?
    # out_to_console no
    
    # MPD host/port
    # mpd_host localhost
    # mpd_port 6600
    # mpd_password tinker_bell
    
    # Print everything to console?
    # out_to_console no
    
    # mail spool
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 1.0
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    # If own_window_transparent is set to no, you can set the background colour here
    own_window_colour grey
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 280 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline yes
    
    # Draw borders around text
    draw_borders yes
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    default_shade_color white
    default_outline_color black
    
    # Text alignment, other possible values are commented
    #alignment top_left
    #alignment top_right
    #alignment bottom_left
    alignment bottom_right
    #alignment none
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 1
    gap_y 3
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase yes
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer no
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    $alignc Uptime:${color lightgrey} $uptime $color with ${color lightgrey}$kernel $color
    ${color lightgrey}HDD I/O:$color $diskio
    ${color red}${diskiograph 0000ff 00ff00}
    ${color lightgrey}CPU Usage:$color $cpu% ${color #cc2222} ${cpubar}
    ${color red}${cpugraph 0000ff 00ff00}
    ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
    ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
    ${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
    $color$stippled_hr
    ${color pink} Temperature: ${color red} ${acpitemp}
    $color$stippled_hr
    ${color lightgrey}File systems:$color
     root  $color${fs_used /}  /${fs_size /} ${fs_bar /}
     home  $color${fs_used /home} /${fs_size /home} ${fs_bar /home}
     fat32 $color${fs_used /media/fat32}  /${fs_size /media/fat32} ${fs_bar /media/fat32}
    $color$stippled_hr
    ${color}CPU Usage:        CPU%   MEM%   PID
    ${color #ff4500} ${top name 1} ${top cpu 1} ${top mem 1} ${top pid 1}
    ${color #eeee00} ${top name 2} ${top cpu 2} ${top mem 2} ${top pid 2}
    ${color #00ee00} ${top name 3} ${top cpu 3} ${top mem 3} ${top pid 3}
    ${color lightgrey} ${top name 4} ${top cpu 4} ${top mem 4} ${top pid 4}
    ${color lightgrey} ${top name 5} ${top cpu 5} ${top mem 5} ${top pid 5}
    $color$stippled_hr
    ${color}MEM usage:
    ${color #ff4500} ${top_mem name 1} ${top_mem cpu 1} ${top_mem mem 1} ${top_mem pid 1}
    ${color #eeee00} ${top_mem name 2} ${top_mem cpu 2} ${top_mem mem 2} ${top_mem pid 2}
    ${color #00ee00} ${top_mem name 3} ${top_mem cpu 3} ${top_mem mem 3} ${top_mem pid 3}
    ${color lightgrey} ${top_mem name 4} ${top_mem cpu 4} ${top_mem mem 4} ${top_mem pid 4}
    ${color lightgrey} ${top_mem name 5} ${top_mem cpu 5} ${top_mem mem 5} ${top_mem pid 5}
    $color$stippled_hr
    ${color lightgrey}Networking:${color #00ee00} PPP0 ${color lightgrey} on $color ${addr ppp0}
    ${color lightgrey} Down:${color #8844ee} ${downspeedf ppp0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeedf ppp0} k/s
    ${color #0000ff}${downspeedgraph ppp0 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph ppp0 22,150 0000ff ff0000}
    $color$stippled_hr
    ${color lightgrey}Networking:${color #00ee00} ETH0 ${color lightgrey} on $color ${addr eth0}
     ${color lightgrey}Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s
    ${color #0000ff}${downspeedgraph eth0 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 22,150 0000ff ff0000}
    $color$stippled_hr
    ${color lightgrey}Networking:${color #00ee00} ETH1 ${color lightgrey} on $color ${addr eth1}
    ${color lightgrey}Link Status:$color ${linkstatus eth1}
     ${color lightgrey}Down:${color #8844ee} ${downspeed eth1} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth1} k/s
    ${color #0000ff}${downspeedgraph eth1 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth1 22,150 0000ff ff0000}
    $color$stippled_hr
    ${color lightgrey}Networking:
    $color PPP0:   downloaded ${totaldown ppp0}; uploaded ${totalup ppp0}
    $color ETH0:   downloaded ${totaldown eth0}; uploaded ${totalup eth0}
    $color ETH1:   downloaded ${totaldown eth1}; uploaded ${totalup eth1}
    $color$stippled_hr
    Port Statistics:
    ${color red} ${tcp_portmon 1 65535 count} $color total connections
                    ${color red} ${tcp_portmon 1 1024 count} $color btw ${color red}1-1024
                                    ${color green} ${tcp_portmon 80 80 count} $color on ${color red}80
                                    ${color green} ${tcp_portmon 20 23 count} $color on ${color red}20-23
                                    ${color green} ${tcp_portmon 443 443 count} $color on ${color red}443

  8. #12938
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Need little help on this one.. Please

    Quote Originally Posted by localguy View Post
    Hi all,

    i like this conky setup but im having a problem trying to figure out so its not its own window i tried changing this section

    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    i changed it to no but it pushed it down low and off to the right off the screen..
    thought maybe someone would know a fix or a piece of code needed or even if the owner of this can help me out? Thanks for reading
    Hi

    Do you want to put it on the desktop? try :
    Code:
    own_window_type desktop
    more info on settings here : http://conky.sourceforge.net/config_settings.html

    Edit ; look also at aligment and gap_x and gap_y variables

  9. #12939
    Join Date
    Apr 2010
    Location
    localhost
    Beans
    0

    Thumbs down Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by localguy View Post
    Hello,

    i grabed a code off here i like the lay out but i need to move it over some away from the right edge of the screen its cutting off some words and a network graph box some, here is the code..

    Code:
    ...
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 10
    gap_y 25
    ...
    Dunno where you have that from which states alignment as Text alignment. It is false.

    alignment places the window bottom|left|top|right|middle_left|right|middle - It is a window position parameter and its value can be abbrevied as bl (bottom_left), etc.

    gap_x and gap_y now can move the already placed window right-/leftwise and up- and downwards the given count of +/- pixels.
    It is important e. g. to know for spanning pictures that pixel 0/0 is the corner at the very top left of your desktop, x goes vertikal and y horizontally.

    When experimenting with placing windows, I always set draw_border temporary to yes which helpes a lot.

  10. #12940
    Join Date
    Jun 2010
    Beans
    31

    Re: Need little help on this one.. Please

    Quote Originally Posted by wlourf View Post
    Hi

    Do you want to put it on the desktop? try :
    Code:
    own_window_type desktop
    more info on settings here : http://conky.sourceforge.net/config_settings.html

    Edit ; look also at aligment and gap_x and gap_y variables
    thankyoy that did then all i had to do was mess with the

    gap_x 11
    gap_y 100
    to get on the screen and up some, now just to remove the dotted border and some how raise the font up a little and space things apart some? so it dont look all compact

Page 1294 of 2328 FirstFirst ... 2947941194124412841292129312941295129613041344139417942294 ... 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
  •