Page 2168 of 2307 FirstFirst ... 1168166820682118215821662167216821692170217822182268 ... LastLast
Results 21,671 to 21,680 of 23061

Thread: Post your .conkyrc files w/ screenshots

  1. #21671
    Join Date
    May 2012
    Beans
    1

    Smile Re: Post your .conkyrc files w/ screenshots

    conkyrc

    Code:
     # set to yes if you want Conky to be forked in the background
    background yes
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    out_to_console no
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 7x12
    #font 6x10
    #font 7x13
    #font 8x13
    #font 7x12
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
    
    # Use Xft?
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont Ubuntu:size=8.5
    
    own_window_transparent yes
    own_window_colour black
    # Text alpha when using Xft
    #xftalpha 1
    
    #on_bottom yes
    
    # mail spool
    mail_spool $MAIL
    lua_load ~/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    # 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_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type normal
    
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 180 500
    maximum_width 1280
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders no
    
    # border margins
    #border_margin 0
    
    # border width
    border_width 0
    
    # Default colors and also border colors
    default_color black
    default_shade_color grey
    default_outline_color white
    
    # Text alignment, other possible values are commented
    #alignment top_left
    gap_x 1
    gap_y 40
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment top_left
    
    # Gap between borders of screen and text
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer right
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # none, xmms, bmp, audacious, infopipe (default is none)
    #xmms_player bmp
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # Possible variables to be used:
    #
    #      Variable         Arguments                  Description                
    #  acpiacadapter                     ACPI ac adapter state.                   
    #  acpifan                           ACPI fan state                           
    #  acpitemp                          ACPI temperature.                        
    #  adt746xcpu                        CPU temperature from therm_adt746x       
    #  adt746xfan                        Fan speed from therm_adt746x             
    #  battery           (num)           Remaining capasity in ACPI or APM        
    #                                    battery. ACPI battery number can be      
    #                                    given as argument (default is BAT0).     
    #  buffers                           Amount of memory buffered                
    #  cached                            Amount of memory cached                  
    #  color             (color)         Change drawing color to color            
    #  cpu                               CPU usage in percents                    
    #  cpubar            (height)        Bar that shows CPU usage, height is      
    #                                    bar's height in pixels                   
    #  downspeed         net             Download speed in kilobytes              
    #  downspeedf        net             Download speed in kilobytes with one     
    #                                    decimal                                  
    #  exec              shell command   Executes a shell command and displays    
    #                                    the output in torsmo. warning: this      
    #                                    takes a lot more resources than other    
    #                                    variables. I'd recommend coding wanted   
    #                                    behaviour in C and posting a patch :-).  
    #  execi             interval, shell Same as exec but with specific interval. 
    #                    command         Interval can't be less than              
    #                                    update_interval in configuration.        
    #  fs_bar            (height), (fs)  Bar that shows how much space is used on 
    #                                    a file system. height is the height in   
    #                                    pixels. fs is any file on that file      
    #                                    system.                                  
    #  fs_free           (fs)            Free space on a file system available    
    #                                    for users.                               
    #  fs_free_perc      (fs)            Free percentage of space on a file       
    #                                    system available for users.              
    #  fs_size           (fs)            File system size                         
    #  fs_used           (fs)            File system used space                   
    #  hr                (height)        Horizontal line, height is the height in 
    #                                    pixels                                   
    #  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
    #                                    may be omitted if you have only one I2C  
    #                                    device. type is either in (or vol)       
    #                                    meaning voltage, fan meaning fan or temp 
    #                                    meaning temperature. n is number of the  
    #                                    sensor. See /sys/bus/i2c/devices/ on     
    #                                    your local computer.                     
    #  kernel                            Kernel version                           
    #  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
    #                                    minute, 2 for past 5 minutes and 3 for   
    #                                    past 15 minutes.                         
    #  machine                           Machine, i686 for example                
    #  mails                             Mail count in mail spool. You can use    
    #                                    program like fetchmail to get mails from 
    #                                    some server using your favourite         
    #                                    protocol. See also new_mails.            
    #  mem                               Amount of memory in use                  
    #  membar            (height)        Bar that shows amount of memory in use   
    #  memmax                            Total amount of memory                   
    #  memperc                           Percentage of memory in use              
    #  new_mails                         Unread mail count in mail spool.         
    #  nodename                          Hostname                                 
    #  outlinecolor      (color)         Change outline color                     
    #  pre_exec          shell command   Executes a shell command one time before 
    #                                    torsmo displays anything and puts output 
    #                                    as text.                                 
    #  processes                         Total processes (sleeping and running)   
    #  running_processes                 Running processes (not sleeping),        
    #                                    requires Linux 2.6                       
    #  shadecolor        (color)         Change shading color                     
    #  stippled_hr       (space),        Stippled (dashed) horizontal line        
    #                    (height)        
    #  swapbar           (height)        Bar that shows amount of swap in use     
    #  swap                              Amount of swap in use                    
    #  swapmax                           Total amount of swap                     
    #  swapperc                          Percentage of swap in use                
    #  sysname                           System name, Linux for example           
    #  time              (format)        Local time, see man strftime to get more 
    #                                    information about format                 
    #  totaldown         net             Total download, overflows at 4 GB on     
    #                                    Linux with 32-bit arch and there doesn't 
    #                                    seem to be a way to know how many times  
    #                                    it has already done that before torsmo   
    #                                    has started.                             
    #  totalup           net             Total upload, this one too, may overflow 
    #  updates                           Number of updates (for debugging)        
    #  upspeed           net             Upload speed in kilobytes                
    #  upspeedf          net             Upload speed in kilobytes with one       
    #                                    decimal                                  
    #  uptime                            Uptime                                   
    #  uptime_short                      Uptime in a shorter format               
    #
    #  seti_prog                         Seti@home current progress
    #  seti_progbar      (height)        Seti@home current progress bar
    #  seti_credit                       Seti@hoome total user credit
    
    
    # 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
    #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
    #${font Verdana:size=10}as many times as I choose
    #${font Perry:size=10}Including UTF-8,
    # stuff after 'TEXT' will be formatted on screen
    #${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}
    default_color FFFFFF
    color1 DDDDDD
    color2 AAAAAA
    color3 888888
    color4 EF5A29
    color5 black
    color6 0077ff
    color7 orange
    draw_graph_borders no
    format_human_readable yes
    own_window_title yes
    show_graph_range no
    show_graph_scale no
    #battery_percent yes
    #blink_text_and_other_conky_vars yes
    text_buffer_size 1024
    
    TEXT
    ${font Ubuntu:size=8.5,weight:bold}${color4}${alignc}${color 0077ff}*${color4}System${color 0077ff}*
    ${font Ubuntu:size=8}
    ${font Ubuntu:size=8}${color4}*${color6}Hostname ${goto 103}$color3}:${goto 130}${color5}${exec whoami} ${color4} @  ${color5}$nodename 
    ${color4}*${color6}Linux Kernel${goto 103}$color3}:${goto 130}${color5}$sysname  $kernel
    ${font Ubuntu:size=8}${color4}*${color 0077ff}Uptime${goto 103}$color3}:${goto 130}${color black} $uptime     
    ${color4}*${color6}ACPI Battery${goto 103}$color3}:${goto 130}${color5}${execi 1 acpi -b | awk '{print $3, $4, $5, $6}' | sed -e s/,//4}
    ${color4}*${color 0077ff}Processor${goto 103}$color3}:${goto 130}${color black}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} 
    ${color4}*${color 0077ff}Usage${goto 103}$color3}:${goto 130}${color 0077ff} ${color black}${cpu}%${color3}${goto 250}${cpubar}
    ${color 0077ff}${cpugraph 000000 0077ff} 
    ${color4}*${color 0077ff}Processes${goto 103}$color3}:${goto 130}${color black}$processes${goto 200}${color4}*${color 0077ff}Running$color3}:${goto 270}${color black} $running_processes 
    ${color4}*${color 0077ff}RAM${goto 103}$color3}:${goto 130}${color black} $mem/$memmax - $memperc% ${alignr}${color3}${membar 5,100}
    ${color4}*${color 0077ff}SWP${goto 103}$color3}:${goto 130}${color black} $swap/$swapmax - $swapperc% ${alignr}${color3}${swapbar 5,100}
    ${color4}*${color 0077ff}HD IO${goto 103}$color3}:${goto 132}${color black}${diskio}
    ${color 0077ff}${diskiograph 000000 0077ff}
    ${font Ubuntu:size=8.5,weight:bold}${color4}${alignc}${color 0077ff}*${color4}Hard Disks${color 0077ff}*
    ${font Ubuntu:size=8}
    ${color4}*${color 0077ff} Root ${goto 103}$color3}:${goto 130}${color black}${fs_used /}/${fs_size /}${alignr}${color3}${fs_bar 5,120 /}
    ${color4}*${color 0077ff} Windows ${goto 103}$color3}:${goto 130}${color black}${fs_used /media/7}/${fs_size /media/7}${alignr}${color3}${fs_bar 5,120 /media/7}
    
    ${font Ubuntu:size=8.5,weight:bold}${color4}${alignc}${color 0077ff}*${color4}Top 5 Sorted By  CPU Usage${color 0077ff}*
    ${font Ubuntu:size=8}
    ${color dark green}       NAME            ${goto 130}PID ${goto 200}CPU%   ${goto 270}MEM%
    ${color4}>>${color6} ${top name 1} ${goto 130}${top pid 1} ${goto 200}${top cpu 1} ${goto 270}${top mem 1}
    ${color4}>>${color5} ${top name 2} ${goto 130}${top pid 2} ${goto 200}${top cpu 2} ${goto 270}${top mem 2}
    ${color4}>>${color5} ${top name 3} ${goto 130}${top pid 3} ${goto 200}${top cpu 3} ${goto 270}${top mem 3}
    ${color4}>>${color3} ${top name 4} ${goto 130}${top pid 4} ${goto 200}${top cpu 4} ${goto 270}${top mem 4}
    ${color4}>>${color3} ${top name 5} ${goto 130}${top pid 5} ${goto 200}${top cpu 5} ${goto 270}${top mem 5}
    
    ${font Ubuntu:size=8.5,weight:bold}${color4}${alignc}${color 0077ff}*${color4}Top 5 Sorted By  MEM Usage${color 0077ff}*
    ${font Ubuntu:size=8}
    ${color dark green}      NAME           ${goto 130}PID   ${goto 200} CPU%   ${goto 270}MEM%
    ${color4}>>${color6}${top_mem name 1}${goto 130}${top_mem pid 1} ${goto 200}${top_mem cpu 1}${goto 270}${top_mem mem 1}
    ${color4}>>${color5}${top_mem name 2}${goto 130}${top_mem pid 2} ${goto 200}${top_mem cpu 2}${goto 270}${top_mem mem 2}
    ${color4}>>${color5}${top_mem name 3}${goto 130}${top_mem pid 3} ${goto 200}${top_mem cpu 3}${goto 270}${top_mem mem 3}
    ${color4}>>${color3}${top_mem name 4}${goto 130}${top_mem pid 4} ${goto 200}${top_mem cpu 4}${goto 270}${top_mem mem 4}
    ${color4}>>${color3}${top_mem name 5}${goto 130}${top_mem pid 5} ${goto 200}${top_mem cpu 5}${goto 200}${top_mem mem 5}
    
    ${font Ubuntu:size=8.5,weight:bold}${color4}${alignc}${color 0077ff}*${color4}NetWork${color 0077ff}*
    ${font Ubuntu:size=8}
    ${color4}*${color 0077ff}Down${goto 80}$color3}:${goto 130}${color black} ${downspeed ppp0} k/s ${goto 200}${color4}*${color 0077ff} Up ${goto 270}$color3}:${goto 300}${color black} ${upspeed ppp0} k/s
    ${color 0077ff}${downspeedgraph ppp0 27,120 000000 0077ff 180} $alignr${color 0077ff}${upspeedgraph ppp0 27,120 000000 0077ff 25}
    ${color black}${totaldown ppp0} $alignr ${color black}${totalup ppp0}
    ${font Ubuntu:size=8.5,weight:bold}${alignc}${color 0077ff}*${color4}Outbound Connections${color 0077ff}* 
    ${color4}>>${color5}${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
    ${color4}>>${color5}${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
    ${color4}>>${color5}${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
    ${color4}>>${color5}${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
    ${color4}>>${color5}${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
    ${color4}>>${color5}${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5}
    #${color4}>>${tcp_portmon 1 65535 rhost 6} ${alignr} ${tcp_portmon 1 65535 lservice 6}
    
    ${color4}*${color 0077ff}Outbound${goto 80}$color3}:${goto 130} ${color black}${tcp_portmon   1 65535 count}  ${goto 200}${color4}*${color 0077ff}Total$color3}${goto 270}:${goto 300}${color black}${tcp_portmon 1 65535 count}
    draw_bg.lua

    Code:
    --[[
    Background by londonali1010 (2009)
    
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
        lua_load ~/scripts/draw_bg.lua
        lua_draw_hook_pre draw_bg
    
    Changelog:
    + v1.0 -- Original release (07.10.2009)
    ]]
    
    -- Change these settings to affect your background.
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    
    corner_r=0
    
    -- Set the colour and transparency (alpha) of your background.
    
    bg_colour=0xffffff
    bg_alpha=0.0
    
    require 'cairo'
    function rgb_to_r_g_b(colour,alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    function conky_draw_bg()
        if conky_window==nil then return end
        local w=conky_window.width
        local h=conky_window.height
        local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
        cr=cairo_create(cs)
        
        cairo_move_to(cr,corner_r,0)
        cairo_line_to(cr,w-corner_r,0)
        cairo_curve_to(cr,w,0,w,0,w,corner_r)
        cairo_line_to(cr,w,h-corner_r)
        cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
        cairo_line_to(cr,corner_r,h)
        cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
        cairo_line_to(cr,0,corner_r)
        cairo_curve_to(cr,0,0,0,0,corner_r,0)
        cairo_close_path(cr)
        
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
        cairo_fill(cr)
    end
    Last edited by acidspoof; March 12th, 2013 at 01:22 PM.

  2. #21672
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Posting my screenshot and configs as requested by Kopkins.

    To use simply extract the attached .conky folder to your home directory and add ~/.conky/runConky.sh to your startup applications.

    Notes...

    getExternalIP.sh needs curl installed.

    conkyUpdates requires the apt-show-versions package. It is also dependant on having an updated package list, I have an entry for apt-get update in my root crontab running every half hour.

    conkyInfrastructure just performs a simple ping test at the moment, I'm thinking of rewriting it to check if a particular service is running on the remote host using either telnet or nmap.



    conkyMain
    Code:
    ## Conky settings 
    update_interval 3
    total_run_times 0
    net_avg_samples 1
    cpu_avg_samples 2
    double_buffer yes
    no_buffers yes
    format_human_readable
    
    ## Text settings
    use_xft yes
    xftfont Ubuntu:size=8
    xftalpha 0.8
    override_utf8_locale yes
    text_buffer_size 4096
    
    ## Window specifications
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_argb_visual no
    own_window_argb_value 0
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment top_right
    gap_x 20
    gap_y 48
    border_inner_margin 8
    minimum_size 200 0
    maximum_width 200
    default_bar_size 92 6
    
    ## Graphics settings
    draw_shades yes
    default_shade_color 000000
    default_color FFFFFF
    
    ## Lua Background
    lua_load ~/.conky/drawBackground.lua
    TEXT
    ## System
    ${lua conky_draw_bg}${alignc}${image ~/.conky/ubuntulogo.png -p 25,5}
    ${voffset 43}${font Ubuntu:style=Bold:size=8}SYSTEM $stippled_hr${font}
    ${goto 40}${voffset 6}${kernel}${alignr}${uptime}
    ## CPU
    ${voffset 6}${font Ubuntu:style=Bold:size=8}CPU${font}${offset -20}${voffset 10}${cpubar cpu0 4,18}
    ${voffset -23}${goto 40}Core 1: ${font Ubuntu:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 7,70 EEEEEE}
    ${voffset 1}${goto 40}Core 2: ${font Ubuntu:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 7,70 EEEEEE}
    ${voffset 1}${goto 40}Core 3: ${font Ubuntu:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}${cpubar cpu3 7,70 EEEEEE}
    ${voffset 1}${goto 40}Core 4: ${font Ubuntu:style=Bold:size=8}${cpu cpu4}%${font} ${alignr}${cpubar cpu4 7,70 EEEEEE}
    ## RAM
    ${voffset 6}${font Ubuntu:style=Bold:size=8}RAM${font}${goto 40}RAM: ${font Ubuntu:style=Bold:size=8}$memperc%${font}
    ${voffset 6}${offset 1}${voffset -8}${membar 4,18}${voffset 4}${goto 40}${voffset -2}Free: ${font Ubuntu:style=Bold:size=8}${memeasyfree}${font} ${goto 110}Used: ${font Ubuntu:style=Bold:size=8}${mem}${font}
    ## SWAP
    ${voffset 5}${font Ubuntu:style=Bold:size=8}SWP${font}${goto 40}Swap: ${font Ubuntu:style=Bold:size=8}${swapperc}%${font}
    ${voffset 4}${offset 1}${voffset -7}${swapbar 4,18}${voffset 4}${goto 40}Free: ${font Ubuntu:style=Bold:size=8}$swapmax${font} ${goto 110}Used: ${font Ubuntu:style=Bold:size=8}$swap${font}
    ## Top
    ${voffset 4}${font Ubuntu:style=Bold:size=8}TOP${font}${voffset 0}${goto 126}CPU${alignr}RAM
    ${voffset -1}${goto 40}${top name 1}${font Ubuntu:style=Bold:size=8} ${goto 120}${top cpu 1}${alignr }${top mem 1}${font}
    ${voffset -1}${goto 40}${top name 2}${font Ubuntu:style=Bold:size=8} ${goto 120}${top cpu 2}${alignr }${top mem 2}${font}
    ${voffset -1}${goto 40}${top name 3}${font Ubuntu:style=Bold:size=8} ${goto 120}${top cpu 3}${alignr }${top mem 3}${font}
    ## HD
    ${voffset 4}${font Ubuntu:style=Bold:size=8}HD $stippled_hr${font}
    ${voffset 4}${goto 20}/ : ${font Ubuntu:style=Bold:size=8}${fs_used_perc /}%${font}${goto 100}${alignr}${fs_bar 6,68 /}
    ${offset 7}Free: ${font Ubuntu:style=Bold:size=8}${fs_free /}${font} ${alignr 1}Used: ${font Ubuntu:style=Bold:size=8}${fs_used /}${font}
    ${voffset 4}${goto 20}/home : ${font Ubuntu:style=Bold:size=8}${fs_used_perc /home}%${font}${goto 100}${alignr}${fs_bar 6,68 /home}
    ${offset 7}Free: ${font Ubuntu:style=Bold:size=8}${fs_free /home}${font} ${alignr 1}Used: ${font Ubuntu:style=Bold:size=8}${fs_used /home}${font}
    ${voffset 4}${goto 20}/mnt/data : ${font Ubuntu:style=Bold:size=8}${fs_used_perc /mnt/data}%${font}${goto 100}${alignr}${fs_bar 6,68 /mnt/data}
    ${offset 7}Free: ${font Ubuntu:style=Bold:size=8}${fs_free /mnt/data}${font} ${alignr 1}Used: ${font Ubuntu:style=Bold:size=8}${fs_used /mnt/data}${font}
    ${voffset 4}${goto 20}/mnt/emulation : ${font Ubuntu:style=Bold:size=8}${fs_used_perc /mnt/emulation}%${font}${goto 100}${alignr}${fs_bar 6,68 /mnt/data}
    ${offset 7}Free: ${font Ubuntu:style=Bold:size=8}${fs_free /mnt/emulation}${font} ${alignr 1}Used: ${font Ubuntu:style=Bold:size=8}${fs_used /mnt/emulation}${font}
    ## Network
    ${voffset 4}${font Ubuntu:style=Bold:size=8}NETWORK $stippled_hr${font}
    ${voffset 4}${goto 20}Download: ${font Ubuntu:style=Bold:size=8}${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,50 EEEEEE}
    ${goto 20}Overall: ${font Ubuntu:style=Bold:size=8}${totaldown eth0}${font}
    ${voffset 4}${goto 20}Upload: ${font Ubuntu:style=Bold:size=8}${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,50 EEEEEE}
    ${goto 20}Overall: ${font Ubuntu:style=Bold:size=8}${totalup eth0}${font}
    ${voffset 4}${goto 20}Local IP: ${alignr}${font Ubuntu:style=Bold:size=8}${addr eth0}${font}
    ${goto 20}Public IP: ${alignr}${font Ubuntu:style=Bold:size=8}${execi 10800 ~/.conky/getExternalIP.sh}${font}
    ## Updates
    #${voffset 4}${font Ubuntu:style=Bold:size=8}UPDATES $stippled_hr${font}
    #${voffset 6}${execpi 300 ~/.conky/getUpdates.py /dev/shm/pacman}
    conkyUpdates
    Code:
    ######################
    # - Conky settings - #
    ######################
    update_interval 3
    total_run_times 0
    net_avg_samples 1
    cpu_avg_samples 2
    double_buffer yes
    no_buffers yes
    format_human_readable
    
    #####################
    # - Text settings - #
    #####################
    use_xft yes
    xftfont Ubuntu:size=8
    override_utf8_locale yes
    text_buffer_size 4096
    
    #############################
    # - Window specifications - #
    #############################
    own_window_class Conky
    own_window yes
    own_window_type normal
    own_window_argb_visual yes
    own_window_argb_value 0
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment bottom_right
    gap_x 20
    gap_y 20
    border_inner_margin 8
    minimum_size 200
    maximum_width 200
    default_bar_size 92 6
    
    #########################
    # - Graphics settings - #
    #########################
    draw_shades yes
    default_shade_color 000000
    default_color FFFFFF
    
    ######################
    # - Lua Background - #
    ######################
    lua_load ~/.conky/drawBackground.lua
    #lua_draw_hook_pre draw_bg
    
    TEXT
    ${lua conky_draw_bg}${font Ubuntu:style=Bold:size=8}UPDATES $stippled_hr${font}
    ${voffset 6}${execpi 300 apt-show-versions -u | sed 's/\/.* to /${alignr}/'}
    conkyInfrastructure
    Code:
    ######################
    # - Conky settings - #
    ######################
    update_interval 3
    total_run_times 0
    net_avg_samples 1
    cpu_avg_samples 2
    double_buffer yes
    no_buffers yes
    format_human_readable
    
    #####################
    # - Text settings - #
    #####################
    use_xft yes
    xftfont Ubuntu:size=8
    xftalpha 0.8
    override_utf8_locale yes
    text_buffer_size 4096
    
    #############################
    # - Window specifications - #
    #############################
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_argb_visual no
    own_window_argb_value 0
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment bottom_left
    gap_x 20
    gap_y 20
    border_inner_margin 8
    minimum_size 200 0
    maximum_width 200
    default_bar_size 92 6
    
    #########################
    # - Graphics settings - #
    #########################
    draw_shades yes
    default_shade_color 000000
    default_color FFFFFF
    
    ######################
    # - Lua Background - #
    ######################
    lua_load ~/.conky/drawBackground.lua
    #lua_draw_hook_pre draw_bg
    
    TEXT
    ###########################
    # - Background and logo - #
    ###########################
    ${lua conky_draw_bg}${font Ubuntu:style=Bold:size=8}INFRASTRUCTURE $stippled_hr${font}
    ${voffset 4}${goto 20}${font Ubuntu:style=Bold:size=8}Gateway${font}${goto 145}${execpi 10 ~/.conky/getPingStatus.sh 192.168.1.254}
    ${voffset 4}${goto 20}${font Ubuntu:style=Bold:size=8}MySQL Server${font}${goto 145}${execpi 10 ~/.conky/getPingStatus.sh 192.168.1.254}
    ${voffset 4}${goto 20}${font Ubuntu:style=Bold:size=8}Mail Server${font}${goto 145}${execpi 10 ~/.conky/getPingStatus.sh 192.168.1.220}
    ${voffset 4}${goto 20}${font Ubuntu:style=Bold:size=8}Web Server${font}${goto 145}${execpi 10 ~/.conky/getPingStatus.sh 192.168.1.254}
    conkyMusic
    Code:
    ######################
    # - Conky settings - #
    ######################
    update_interval 1
    total_run_times 0
    net_avg_samples 1
    cpu_avg_samples 2
    double_buffer yes
    no_buffers yes
    format_human_readable
    
    #####################
    # - Text settings - #
    #####################
    use_xft yes
    xftfont Ubuntu:size=8
    xftalpha 0.8
    override_utf8_locale yes
    text_buffer_size 4096
    
    #############################
    # - Window specifications - #
    #############################
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_argb_visual no
    own_window_argb_value 0
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment top_left
    gap_x 20
    gap_y 48
    border_inner_margin 8
    minimum_size 200 75
    maximum_width 200
    default_bar_size 92 6
    
    #########################
    # - Graphics settings - #
    #########################
    draw_shades yes
    default_shade_color 000000
    default_color FFFFFF
    imlib_cache_size 0
    
    ######################
    # - Lua Background - #
    ######################
    lua_load ~/.conky/drawBackground.lua
    
    TEXT
    ###########################
    # - Background and logo - #
    ###########################
    ${lua conky_draw_bg}${execpi 20 ~/.conky/getAlbumArt.sh}${image ~/.conky/cache/albumArt -s 75x75}${voffset 6}${goto 96}${font Ubuntu:size=10}${execp rhythmbox-client --no-start --no-present --print-playing-format=%tt}${font}
    ${voffset 6}${goto 96}${execp rhythmbox-client --no-start --no-present --print-playing-format=%ta}
    ${goto 96}${execp rhythmbox-client --no-start --no-present --print-playing-format=%at}
    ${voffset 6}${goto 96}${execp rhythmbox-client --no-start --no-present  --print-playing-format=%te} / ${execpi 3 rhythmbox-client --no-start --no-present  --print-playing-format=%td}${alignr}${execpi 3 rhythmbox-client --no-start --no-present  --print-playing-format=%ay}
    runConky.sh
    Code:
    #!/bin/sh
    sleep 15
    /usr/bin/conky -d -c ~/.conky/conkyMain &
    sleep 5
    /usr/bin/conky -d -c ~/.conky/conkyInfrastructure &
    sleep 5
    /usr/bin/conky -d -c ~/.conky/conkyUpdates &
    sleep 5
    /usr/bin/conky -d -c ~/.conky/conkyMusic &
    getAlbumArt.sh
    Code:
    #!/bin/sh
    artist=`rhythmbox-client --print-playing-format=%ta`
    album=`rhythmbox-client --print-playing-format=%at`
    str="`echo "$artist $album" | sed -e s/\\ /+/g`"
    wget `wget "http://www.albumart.org/index.php?skey=$str&itempage=1&newsearch=1&searchindex=Music" -q -O - | grep "http://www.albumart.org/images/zoom-icon.jpg" -m 1 | sed -e 's/" border="0" class="image_border.*//' | sed -e 's/.*img src="//'` -q -O ~/.conky/cache/albumArt
    getExternalIP.sh
    Code:
    #!/bin/sh
    curl ifconfig.me
    getPingStatus.sh
    Code:
    #!/bin/sh
    ping -c 1 -t 10 $1 > /dev/null 2> /dev/null
    if [ $? -eq 0 ]
      then echo '${color white}Up  ${color black}Down${color}'
    else
      echo '${color black}Up  ${font Ubuntu:style=Bold:size=8}${color red}Down${color}${font}'
    fi
    drawBackground.lua
    Code:
    --[[    Background by londonali1010 (2009)
        VinDSL Background Hack (2010-2011)
    
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
        lua_load ~/scripts/draw_bg.lua
        lua_draw_hook_pre draw_bg
    
    Changelog:
        + v3.1    VinDSL Hack (12.01.2011) Added more shading example(s).
        + v3.0    VinDSL Hack (01.28.2011) Killed memory leak.
        + v2.4    VinDSL Hack (01.25.2011) Declared all variables in local.
        + v2.3    VinDSL Hack (12.31.2010) Added shading example(s).
        + v2.2    VinDSL Hack (12.30.2010) Cleaned up the code a bit.
        + v2.1    VinDSL Hack (12.24.2010) Added cairo destroy function(s).
        + v2.0    VinDSL Hack (12.21.2010) Added height adjustment variable.
        + v1.0    Original release (07.10.2009)
    
    ]]
    
    --------------START OF PARAMETERS ------------
    -- Change these settings to affect your background:
    
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    
        local corner_r = 15
    
    -- Set the colour and transparency (alpha) of your background (0.00 - 0.99).
    
    --    (Light Shading Example)
    --    local bg_colour = 0x4d4d4d
    --    local bg_alpha = 0.01
    
    --    (Medium Shading Example)
    --    local bg_colour = 0x222222
    --    local bg_alpha = 0.08
    
    --    (Dark Shading Example)
        local bg_colour = 0x000000
        local bg_alpha = 0.60
    
    --    (Brown Shading Example)
    --    local bg_colour = 0x330000
    --    local bg_alpha = 0.15
    
    --    (Ivory Black Shading Example)
    --    local bg_colour = 0x292421
    --    local bg_alpha = 0.05
    
    --    (Metallic Gold Shading Example)
    --    local bg_colour = 0xd4af37
    --    local bg_alpha = 0.01
    
    --    (Navy Blue Shading Example)
    --    local bg_colour = 0x33339F
    --    local bg_alpha = 0.11
    
    --    (Olive Green Shading Example)
    --    local bg_colour = 0x333319
    --    local bg_alpha = 0.08
    
    --    (Silver Shading Example)
    --    local bg_colour = 0xc0c0c0
    --    local bg_alpha = 0.01
    
    -- Tweaks the height of your background, in pixels. If you don't need to adjust the height, use 0.
    
    --    (Default Setting)
    --    local vindsl_hack_height = 0
    
        local vindsl_hack_height = 0
    
    ---------------END OF PARAMETERS -------------
    
    require 'cairo'
    local    cs, cr = nil
    
    local function rgb_to_r_g_b(colour,alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
        end
    
    function conky_draw_bg()
        if conky_window == nil then return end
        if cs == nil then cairo_surface_destroy(cs) end
        if cr == nil then cairo_destroy(cr) end
        local w = conky_window.width
        local h = conky_window.height
        local v = vindsl_hack_height
        local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
        local cr = cairo_create(cs)
        
        cairo_move_to(cr,corner_r,0)
        cairo_line_to(cr,w-corner_r,0)
        cairo_curve_to(cr,w,0,w,0,w,corner_r)
        cairo_line_to(cr,w,h+v-corner_r)
        cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
        cairo_line_to(cr,corner_r,h+v)
        cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
        cairo_line_to(cr,0,corner_r)
        cairo_curve_to(cr,0,0,0,0,corner_r,0)
        cairo_close_path(cr)
    
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
        cairo_fill(cr)
    
        cairo_surface_destroy(cs)
        cairo_destroy(cr)
        end
    Attached Files Attached Files
    Last edited by Cheesemill; March 12th, 2013 at 04:05 PM.
    Cheesemill

  3. #21673
    Join Date
    Sep 2008
    Beans
    7

    Re: Post your .conkyrc files w/ screenshots

    on an ubuntu 12.10, conky 1.9.0 can somebody give me an advice on what can it be done if I am affected by this bug
    screenshot here

  4. #21674
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by cociuba View Post
    on an ubuntu 12.10, conky 1.9.0 can somebody give me an advice on what can it be done if I am affected by this bug
    screenshot here
    I get the opaqueness when using own_window_type override

    Try in your config
    Code:
    own_window_type normal
    If you post your configs people can test or at least have a look at.
    Last edited by stinkeye; March 12th, 2013 at 04:16 PM.

  5. #21675
    Join Date
    Sep 2008
    Beans
    7

    Re: Post your .conkyrc files w/ screenshots

    my conkyrc file
    Code:
    # Conky settings #
    background no
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    #imlib_cache_size 0
    
    temperature_unit fahrenheit
    
    # Window specifications #
    
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 200 250
    maximum_width 200
    
    alignment tr
    gap_x 10
    gap_y 20
    
    # Graphics settings #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # Text settings #
    use_xft yes
    xftfont caviar dreams:size=8
    xftalpha 0.5
    
    uppercase no
    
    temperature_unit celsius
    ####
    ## Limit the length of names in "Top Processes".
    #
    top_name_width 5
    
    default_color FFFFFF
    
    # Lua Load  #
    lua_load ~/.lua/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
    TEXT
    ${voffset 8}${color FF6600}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
    ${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color FF6600}${hr}
    ${voffset 140}${font caviar dreams:size=10}${alignr}${font}
    ${color FFFFFF}${font caviar dreams:size=9}Uptime: ${uptime_short}${font caviar dreams:size=12}${color FFFFFF}${alignr}${font}
    ${color FFFFFF}Public IP: ${execi 3000 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
    
    ${goto 0}${voffset 35}${cpu cpu1}%/ ${cpu cpu2}% ${GOTO 100}${hwmon 1 temp 1}°C
    ${color FF6600}${goto 25}CPU${color FFFFFF}
    ${color FFFFFF}${goto 50}${voffset 23}${memperc}%
    ${color FF6600}${goto 50}RAM
    ${color FFFFFF}${goto 75}${voffset 23}${swapperc}%
    ${color FF6600}${goto 75}Swap 
    ${color FFFFFF}${goto 100}${voffset 23}${fs_used_perc /}%${GOTO 160}${color FFFFFF}${hddtemp /dev/sda}ºC
    ${color FF6600}${goto 100}Disk ${GOTO 160}${color FFFFFF}${fs_used /}
    ${color FFFFFF}${goto 125}${voffset 25}${downspeed eth1}
    ${color FFFFFF}${goto 125}${upspeed eth1}
    ${color FF6600}${goto 125}Net
    #${font caviar dreams:size=8}Public IP: ${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
    ---------------------------------------------------------
    ${color 339900}${font caviar dreams:size=10}${GOTO 10} TOP             CPU%    MEM%${color}
    ${GOTO 10}${top name 1}${GOTO 85}${top cpu 1}% ${GOTO 140}${top mem 1}%
    ${GOTO 10}${top name 2}${GOTO 85}${top cpu 2}% ${GOTO 140}${top mem 2}%
    ${GOTO 10}${top name 3}${GOTO 85}${top cpu 3}% ${GOTO 140}${top mem 3}%
    ${GOTO 10}${color FFFFFF}${font caviar dreams:size=9}Processes: ${processes}
    ${GOTO 10}${color FFFFFF}${font caviar dreams:size=9}Running: ${running_processes}
    #${GOTO 10}${color FFFFFF}Unread Gmail = ${execi 100 conkyEmail --servertype=IMAP --servername=imap.gmail.com --ssl --username= --password= --mailinfo=5  }

  6. #21676
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Changing override to normal should work, as in my first post.
    See HERE if compiz draws unwanted window shadows when using own_window_type normal
    Last edited by stinkeye; March 12th, 2013 at 04:36 PM.

  7. #21677
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    In post #21665 MichaelGld came up with a problem with the font "Digital-7" the top half was missing ... my reply in post #21666 still stands...

    However
    there is a fix

    with fonts that have a dash (-) in them: Digital-7 & DS-Digital that I know about use a \ in the name:

    Code:
    TEXT
    
    Non-mono:
    Digital-7:  ${font Digital\-7:size=16}${time %T} - Hello${font}
    
    
    DS-Digital:  ${font DS\-Digital:size=16}${time %T} - Hello${font}
    
    Mono:
    Digit:  ${font Digit:size=16}${time %T} - Hello${font}
    
    Numbers only:
    Digitalk:  ${font Digitalk:size=16}${time %T} - Hello${font}
    Attached Images Attached Images
    Last edited by Sector11; March 14th, 2013 at 01:14 AM.

  8. #21678
    Join Date
    Jul 2006
    Location
    Gujranwala, Pakistan
    Beans
    139
    Distro
    Ubuntu

    Question Re: Post your .conkyrc files w/ screenshots

    There's something I've been wanting to do and I would like to know if it is possible. I want conky visible at all times and all windows to respect the boundaries of conky. They should not overlap conky. Right now when i open a new application it overlaps conky and i have to manually drag it to the left. I want that apps never appear over conky. I've tried "panel" option in own_window_type but the only thing panel mode does is draw conky over the window open on the same area. That results in windows appearing weirdly cut off on the right side. I want that apps don't open in that area at all or resize if they reach the boundary. There should be a way to tell the window manager to leave that area. like if i have 1920x1080 res, the WM should only consider 1620x1080 as available screen space to draw apps on leaving conky on the right untouched.

    Experienced conky Lords, Can it be done? Looking at Sector11 and MrPeachy

  9. #21679
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by sbjaved View Post
    There's something I've been wanting to do and I would like to know if it is possible. I want conky visible at all times and all windows to respect the boundaries of conky. They should not overlap conky. Right now when i open a new application it overlaps conky and i have to manually drag it to the left. I want that apps never appear over conky. I've tried "panel" option in own_window_type but the only thing panel mode does is draw conky over the window open on the same area. That results in windows appearing weirdly cut off on the right side. I want that apps don't open in that area at all or resize if they reach the boundary. There should be a way to tell the window manager to leave that area. like if i have 1920x1080 res, the WM should only consider 1620x1080 as available screen space to draw apps on leaving conky on the right untouched.

    Experienced conky Lords, Can it be done? Looking at Sector11 and MrPeachy
    Experienced conky Lords ??? Boy have you go me wrong, I'm just sharing stuff I picked up from hanging around this thread for 5 years!

    OK, in a way ... yes it is possible. - maybe - and at times - under certain conditions . Confused
    A deposit in my Swiss bank account helps.

    I don't know what DE or WM you are using. When I hit the full screen button on a window I can still see my tint2 panel. and my top conky is I choose, because I set "margins" with "obonf" - notice the 26 on the bottom - that allows my tint2 to be seen.

    Now while Iceweasel is maximized I start with the "top" setting and the top of Iceweasel drops to - at 60 I can see my top conky:

    The maximum values you can set with "obconf" are 100 for each side, but you can go into:

    ~/.config/openbox/rc.xml and edit the code directly - see the highlighted - with OB restarted see how small the max'ed Iceweasel is:

    Now - that works with "max'ed" windows, you can still drag "non-max'ed" windows past those limits.

    And another problem enters.... conky windows respect those margins as well. ... Hmmmm!!!
    OK make sure you use:
    Code:
    own_window_type override
    And it semi-works - like I said with OpenBox: non-maximized can be dragged over them.

    Here you see my bottom and top conkys with Iceweasel maximized and the conkys are behaving:

    Your Desktop manager - Window Manager mileage may very.
    But I hope this gets you going in the right direction.

  10. #21680
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    For me, in unity/compiz, the reserved space when using own_window_type panel
    is only observed when a window is maximized.

Page 2168 of 2307 FirstFirst ... 1168166820682118215821662167216821692170217822182268 ... 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
  •