Page 401 of 2296 FirstFirst ... 3013513913994004014024034114515019011401 ... LastLast
Results 4,001 to 4,010 of 22959

Thread: Post your .conkyrc files w/ screenshots

  1. #4001
    Join Date
    Jun 2007
    Beans
    166
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by kaivalagi View Post
    The best I can come up with:

    Code:
    ${exec netstat -p -t --numeric-hosts | grep '192.168.0.1' | grep 'ESTABLISHED' | cut -c44-67 | sed 's/:/\t\t\t/g'}
    gives me:

    Code:
     66.163.181.184			mmcc    
     204.225.124.69			ircd    
     216.239.59.16			imaps    
     207.46.109.81			msnp     
     216.239.59.16			imaps    
     216.165.191.52			ircd    
     216.239.59.16			imaps
    Just replace the \t\t\t with more or less \t's for more or less tabs to get the spacing you want.

    And for the connection count use this:

    Code:
    ${exec netstat -p -t --numeric-hosts | grep '192.168.0.1' | grep 'ESTABLISHED' | wc -l}
    It just counts the number of lines returned by netstat for active established connections present

    Both commands need the 192.168.0.1 ip address replacing with your externally facing ip address...

    Hope that helps
    Marvelous.. next question (more of a refinement) could this be seperated (I know this will be simple and make me look like more of a dolt) in a similar fashion for local and remote hosts as tcp_portmon does for inbound and outbound..

    My thinking is have it append to a txt file in /tmp and then goto conkyrc and
    ${if_existing /tmp/incoming.dat}
    **damn it I just got more complex than I Wanted to.. but would read x number of lines 3, 5 or whatever and echo result (2 colums was great btw)
    ${elseif}
    No Active Connections Detected
    ${endif}

    and a similar fashion for outgoing.dat..

  2. #4002
    Join Date
    Aug 2007
    Location
    Belgium
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by kaivalagi View Post
    You're the only dutch speaking user of conkyForecast I know, so it's up to you when it gets done
    Is it still the same way you explained in the conkyforecast thread?

    Nice use of conky with mpd btw!

    I don't understand your terminal comment though?
    Thanks. The conky is a maximized window with no decoration, and i'd like to close it when I want to without having to keep the terminal open

    thomas@thomas-laptop:~$ conky -c .conkyrcmpdbig
    Conky: desktop window (58) is root window
    Conky: window type - normal
    Conky: drawing to created window (2e00001)
    Conky: drawing to double buffer
    to close it I have to keep the terminal open and use ctrl-c
    El Belgicano
    -----------------
    Laptop: 5 years old Asus M6N (ATI9600/9700 graphics, 512Mb RAM, Intel Mobile 1.66GHz, 60Gb HDD) running 10.04-Lucid Lynx pretty nicely.

  3. #4003
    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 El_Belgicano View Post
    Is it still the same way you explained in the conkyforecast thread?
    Yep, once installed, use the .pot file found in /usr/share/conkyforecast/

    I have a translation guide on my website which is probably better though, you can find it here: http://www.kaivalagi.com/node/6 Just scroll down to the section "Producing a Language Specific .po and .mo File".

    Looking into how to record a pid for a command line process, so you can fire and forget, then kill based on a pid in a file...
    Last edited by kaivalagi; October 14th, 2008 at 11:56 PM.

  4. #4004
    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 El_Belgicano View Post
    i'd like to close it when I want to without having to keep the terminal open to close it I have to keep the terminal open and use ctrl-c
    Got the solution

    Create 2 script files, one to start and another to stop your conky...

    to start:

    Code:
    #!/bin/bash
    conky -c .conkyrcmpdbig &
    pid=$!
    echo $pid > /tmp/conkyrcmpdbig.pid
    and to stop:

    Code:
    #!/bin/bash
    if [[ -s  /tmp/conkyrcmpdbig.pid ]] ;then	
    	until ! read conkypid
    		do
    		kill "${conkypid}"
    		done < /tmp/conkyrcmpdbig.pid
    		rm -f /tmp/conkyrcmpdbig.pid			
    fi

  5. #4005
    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 HarshReality View Post
    Marvelous.. next question (more of a refinement) could this be seperated (I know this will be simple and make me look like more of a dolt) in a similar fashion for local and remote hosts as tcp_portmon does for inbound and outbound..

    My thinking is have it append to a txt file in /tmp and then goto conkyrc and
    ${if_existing /tmp/incoming.dat}
    **damn it I just got more complex than I Wanted to.. but would read x number of lines 3, 5 or whatever and echo result (2 colums was great btw)
    ${elseif}
    No Active Connections Detected
    ${endif}

    and a similar fashion for outgoing.dat..
    This is as far as I got for incoming connections, it's a little trickier:

    Code:
    netstat -l -t | grep 'LISTEN' | cut -c21-
    The same sort of thing needs to be applied to this as with the outgoing netstat commands, to get formatted output, i.e. sed command(s).

    The sed command also has a feature where it can give the first 5 lines of output only, bypassing the need for a file (if you can live without a no connections message, as you will have a zero for the number of connections)...e.g. for the above to restrict to the first 5 lines:

    Code:
    netstat -l -t | grep 'LISTEN' | cut -c21- | sed 5q
    Have a read of the sed command, there are some good example web pages out there, such as:

    http://www.grymoire.com/Unix/Sed.html
    http://www-h.eng.cam.ac.uk/help/tpl/unix/sed.html

    There may also be some scripts already out there for netstat formatting, search google based on these keywords instead...ignoring conky in the searching...you may have more luck

    Hope that helps

    ....off to bed....
    Last edited by kaivalagi; October 15th, 2008 at 12:52 AM.

  6. #4006
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by El_Belgicano View Post
    to close it I have to keep the terminal open and use ctrl-c
    Quote Originally Posted by kaivalagi View Post
    Create 2 script files, one to start and another to stop your conky...
    Or one script with an icon on the panel, I call mine cia.sh (conky in action):
    Code:
    #!/bin/sh
    
    # click to start, click to stop
    # comment out sleep lines for instant cia!
    
    if pidof conky | grep [0-9] > /dev/null
    then
     exec killall conky
    else
    conky -c ~/Conky/conkymain &
    # sleep 3
    conky -c ~/Conky/conkyforecast &
    # sleep 3
    conky -c ~/Conky/conkyemail &
    # sleep 3
    conky -c ~/Conky/calendar &
     exit
    fi
    Now just make it executable, use "Add to Panel" and it's "always" available.

    Please Note: The above script is not mine, I {cough cough} borrowed it from someone here.

    However here's an alias in my bashrc I like:
    Code:
    alias conke='(gedit ~/.startconky ~/Conky/conkymain ~/Conky/conkyforecast ~/Conky/calendar ~/Conky/conkyemail ~/Conky/scripts/myweather.template ~/.conkyForecast.config &)'
    Makes for easy editing of my conky(s).

    Have fun.
    CHIMO!
    Bruce

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

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

    Quote Originally Posted by kaivalagi View Post
    Got the solution

    Create 2 script files, one to start and another to stop your conky...
    I use 1 script, toggle-conky.sh mapped to a button on my AWN dock.

    Code:
    #!/bin/sh
    # click to start, click to stop
    
    if pidof conky | grep [0-9] > /dev/null
    then
     exec killall conky
    else
     conky -d &
     exit
    fi
    
    exit 0
    Doh.. Bruce beat me to it.

    (Please Note: The above script is not mine either, I also plagiarized it from someone here.)
    Last edited by Crinos512; October 15th, 2008 at 05:34 AM.
    || Kubuntu x86_64 (12.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Razer Lachesis Gaming Mouse || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

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

    Re: Post your .conkyrc files w/ screenshots

    There is one problem, El_Belgicano has several conky instances, but wants to only hook into one of them (the mpd orientated one). He wants the ability to stop and start that single conky, whilst the other instances are unaffected. killall conky will close all his conky instances...

  9. #4009
    Join Date
    Nov 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    The new minor modifications.

    - Hardware type stuff is now up top
    - Network and extra stuff at the bottom

    conkyt:
    Code:
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_colour black
    double_buffer yes
    use_spacer yes
    use_xft yes
    font AndrewScript_1.6:pixelsize=17
    xftfont AndrewScript_1.6:pixelsize=17
    xftalpha 0.5
    update_interval 5.0
    draw_shades no
    draw_outline yes # amplifies text if yes
    draw_borders no
    uppercase no # set to yes if you want all text to be in uppercase
    stippled_borders 3
    border_margin 0
    border_width 0
    default_color 999999
    # CHANGE ALIGNMENT FOR CONKYT AND CONKYB
    alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    gap_x 0
    gap_y 15
    # Subtract file system buffers from used memory?
    no_buffers yes
    draw_outline no
    draw_shades yes
    # shadecolor black
    default_outline_color black
    default_shade_color black
    minimum_size 1280
    
    
    
    TEXT
    $alignc${color white}${time %I:%M %p}$color ${time %A, %b %d %Y} ${color white}| ${color}Kernel: ${color white}${kernel} | ${color}Cpu: ${color white}${cpu}%  ${cpugraph 10,75} ${color white} | ${color }Mem: ${color white}${memperc}% ${membar 10,75}  |${color } Home: ${color white}${fs_used_perc /home}% ${fs_bar 10,75}  |${color } Root: ${color white}${fs_used_perc /}% ${fs_bar 10,75}  | ${color}Battery: ${color white}${battery BAT0} | ${color}Temp: ${color white}${acpitemp}C
    conkyb:
    Code:
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_colour black
    double_buffer yes
    use_spacer yes
    use_xft yes
    override_utf8_locale yes
    #font AndrewScript_1.6:pixelsize=17
    xftfont AndrewScript_1.6:pixelsize=17
    xftalpha 0.5
    update_interval 1.0
    draw_shades no
    draw_outline yes # amplifies text if yes
    draw_borders no
    uppercase no # set to yes if you want all text to be in uppercase
    stippled_borders 3
    border_margin 0
    border_width 0
    default_color 999999
    # CHANGE ALIGNMENT FOR CONKYT AND CONKYB
    #alignment top_left
    #alignment top_right
    alignment bottom_left
    #alignment bottom_right
    gap_x 10
    gap_y 22
    # Subtract file system buffers from used memory?
    no_buffers yes
    draw_outline no
    draw_shades yes
    # shadecolor black
    default_outline_color black
    default_shade_color black
    minimum_size 140
    
    
    
    
    TEXT
    ${color}Connected to:
    ${color white}${wireless_essid wlan0}
    ${color}Email: ${color white}${execi 300 python ~/scripts/gmail.py}
    ${color}Arch: ${color white}${texeci 10800 perl ~/scripts/conky-updates.pl}
    ${color}$mpd_status ${color white}$alignr$mpd_elapsed/$mpd_length
    $mpd_smart
    Attached Images Attached Images
    Want me to punchisize your face, For free??

  10. #4010
    Join Date
    Oct 2007
    Beans
    139

    Re: Post your .conkyrc files w/ screenshots

    I'm having a very annoying problem with conky. I'm hoping one of you can help me.

    Here's the conkyrc:
    Code:
    ###Configuration###
    # maintain spacing between certain elements
    #use_spacer right
    
    # set to yes if you want conky to be forked in the background
    background yes
    
    use_xft yes
    override_utf8_locale yes
    
    # Xft font when Xft is enabled
    xftfont Sans-12
    #xftfont DejaVu Sans-12
    #xftfont wenquanyi-zenhei:size=8
    #xftfont DejaVu Sans Mono-8
    #xftfont Bitstream Vera Sans Mono:size=8
    #xftfont Andale Mono-9
    #xftfont Clean-8
    #xftfont cubicfive10:pixelsize=9
    #xftfont squaredance10:pixelsize=14
    #xftfont swf!t_v02:pixelsize=10
    
    # Text alpha when using Xft
    xftalpha 1
    mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 1
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type override
    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 300 5
    #maximum_width 1490
    
    # Draw shadows for the text?
    draw_shades yes
    
    # Draw outlines that amplifies text?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 0
    
    # border width
    border_width 0
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color white
    default_shade_color black
    default_outline_color DarkGrey
    color3 white
    color1 black
    color2 888888  #dark grey
    color3 CECECE  #white-ish
    
    # Text alignment, other possible values are commented
    alignment tm
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment middle_right
    #alignment bottom_left
    
    # Gap between borders of screen and text
    gap_x 25
    gap_y 60
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    short_units 1
    
    ###End of configuration###
    
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    ${font DejaVu Sans:size=10:italic}$color3${user_names}@$nodename$color$font
    ${font stylebats:size=20}2$font    ${uptime}
    ${font stylebats:size=20}y$font    ${battery_percent}%
    ${font stylebats:size=20}q$font    ${ibm_temps 0}C
    ${font stylebats:size=20}p$font    ${cpu cpu0}%
    ${font stylebats:size=20}x$font    $memperc%
    ${font pizzadude bullets:size=17}0$font    ${fs_used /}/ ${fs_size}
    ${font pizzadude bullets:size=17}z$font    ${fs_used /home}/ ${fs_size /home}
    ${font pizzadude bullets:size=17}o$font    ${fs_used /media/disk}/ ${fs_size /media/disk}
    ${font pizzadude bullets:size=17}N$font    ${upspeed eth0}kb/s
    ${font pizzadude bullets:size=17}T$font    ${downspeed eth0}kb/s
    
    
    ${font Sans:size=10}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=DW --startday=0 --endday=0}$font
    ${font ConkyWeather:size=20}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=WF --startday=0 --endday=0}${font} ${font pizzadude bullets:size=17}r$font ${font pizzadude bullets:size=17}r$font ${font pizzadude bullets:size=17}r$font
    ${font Sans:size=10}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=DW --startday=1 --endday=1}$font
    ${font ConkyWeather:size=20}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=WF --startday=1 --endday=1}${font}
    ${font Sans:size=10}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=DW --startday=2 --endday=2}$font
    ${font ConkyWeather:size=20}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=WF --startday=2 --endday=2}${font}
    ${font Sans:size=10}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=DW --startday=3 --endday=3}$font
    ${font ConkyWeather:size=20}${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=WF --startday=3 --endday=3}${font}
    Temp: ${execi 3600 /home/gary/scripts/conkyforecast-1.18/conkyForecast --location=ASXX0001 --datatype=HT --startday=0 --endday=3}
    And here's a screenshot of the problem.


    If you notice, under "Wednesday" the symbols don't align straight. They just go lower and lower. what's the problem? And why does it say "N/A" for my weather forecast?

Page 401 of 2296 FirstFirst ... 3013513913994004014024034114515019011401 ... 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
  •