Page 2283 of 2314 FirstFirst ... 12831783218322332273228122822283228422852293 ... LastLast
Results 22,821 to 22,830 of 23132

Thread: Post your .conkyrc files w/ screenshots

  1. #22821
    Join Date
    Apr 2014
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    ........that looks scary complicated, but I want to use it .-.

    What do I need to have/do?

    It took considerable effort to have one conky run on gnome, so I'm afraid to try it on 14.10.lol
    Please mark the thread as ''solved'' if your query has been resolved.
    How to: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  2. #22822
    Join Date
    Feb 2008
    Location
    Pelican Bay Correctional
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by LastDino View Post
    ........that looks scary complicated, but I want to use it .-.

    What do I need to have/do?

    It took considerable effort to have one conky run on gnome, so I'm afraid to try it on 14.10.lol
    then you'd really be scared by this:
    http://i771.photobucket.com/albums/x..._9_21_2010.png
    I have 3 brain cells left, and two of them have restraining orders.
    Linux is just "DOS on 'steroids"

  3. #22823
    Join Date
    Aug 2009
    Location
    USA
    Beans
    4,040
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by LastDino View Post
    ........that looks scary complicated, but I want to use it .-.

    What do I need to have/do?

    It took considerable effort to have one conky run on gnome, so I'm afraid to try it on 14.10.lol
    All I login to is gnome flashback (with compiz) on all my 5 Linux OSs and it works fine.

    You could start here http://ubuntuforums.org/showthread.p...5#post13007245 Then go back a few pages or whatever you need to do.
    That is VinDSL's conky How To with Paramvir's weather. I started on page 75 and got the templates but once you install Conkywx 2.0 the templates are in /usr/share/conkywx/examples.
    I copied them into an old conkywx directory in my home directory so I would not have to use root to edit the files. /home/cavsfan/.config/conkywx which is not needed by conkwx 2.0 unless you are using files in that directory like I am.

    I provided all of my templates in the 14.10 post with the exception of the weather location files.

    It's a huge learning curve and one little mistake can doom the whole thing but it's all fixable and that's what it's all about.

    You'll also need conky version 1.9 I just installed conky-all.
    Code:
    cavsfan@cavsfan-MS-7529:~$ apt-cache policy conky-all
    conky-all:
      Installed: 1.9.0-4
    Last edited by Cavsfan; June 27th, 2014 at 05:10 PM.
    Check Java Version | Install Java via WEB UPD8 PPA
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Intel Core2 Quad CPU Q9550 @ 2.84Ghz. 4.0GB DDR2 RAM, NVIDIA Geforce 9800 GT

  4. #22824
    Join Date
    May 2014
    Location
    Cape Town South Africa
    Beans
    23
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Hi Guys

    I am relatively new to this whole Conky scene, just started today.

    I have managed to figure how to get all my CPUs to display I even managed to get four core temps to show.
    I had no luck on motherboard temp though.
    And I am a bit confused by the letters running down the left side of the conky panel and how to modify or adapt them. I presume they are place holders for icons but I am not quite sure how to go about setting them up.

    Could anyone advise me on the Motherboard temp issue and the letters/icon space holders?

    Code:
    # Force UTF8? note that UTF8 support required XFToverride_utf8_locale yes
    
    
    # Use Xft?
    use_xft yes
    
    
    xftfont Droid Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
    background no
    # Update interval in seconds
    update_interval 1
    
    
    # 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
    own_window_transparent yes
    own_window_type normal
    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 182 0
    maximum_width 182
    
    
    # Draw shades?
    draw_shades no
    default_color D6D6D6 #4D4D4D
    # Draw outlines?
    draw_outline no
    
    
    # Draw borders around text
    draw_borders no
    
    
    # Stippled borders?
    stippled_borders 0
    
    
    # border margins
    border_inner_margin 5
    border_outer_margin 3
    
    
    # border width
    border_width 1
    
    
    # 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
    # same thing as passing -x at command line
    gap_x 25
    gap_y 40
    
    
    # Set default bar size
    default_bar_size 8 60
    
    
    TEXT
    SYSTEM ${hr 2}
    ${goto 6}${voffset 6}${font OpenLogos:size=22}u${font}${goto 36}${voffset -18}${pre_exec cat /etc/issue.net} $machine
    ${goto 36}Kernel: ${kernel}
    ${goto 36}Conky: ${conky_version}
    ${hr 2}
    
    
    #CPU
    ${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
    ${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
    ${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU3: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
    ${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU4: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
    ${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU5: ${cpu cpu4}% ${alignr}${cpubar cpu4 8,60}
    ${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU6: ${cpu cpu5}% ${alignr}${cpubar cpu5 8,60}
    ${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU7: ${cpu cpu6}% ${alignr}${cpubar cpu6 8,60}
    ${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU8: ${cpu cpu7}% ${alignr}${cpubar cpu7 8,60}
    #
    #RAM
    ${goto 6}${voffset 4}${font StyleBats:size=16}g${font}${voffset -4}${goto 32}RAM: ${mem} ${alignr}${membar 8,60}
    #
    #Disk
    ${goto 6}${voffset 4}${font StyleBats:size=16}x${font}${voffset -4}${goto 32}DISK: ${diskio}${alignr}${diskiograph 8,60 F57900 FCAF3E}
    #
    #Swap
    ${goto 6}${voffset 4}${font StyleBats:size=16}j${font}${voffset -4}${goto 32}SWAP: $swapperc% ${alignr}${swapbar 8,60}
    #
    #Battery
    #${goto 6}${voffset 4}${font StyleBats:size=16}8${font}${voffset -4}${goto 32}BATT: ${exec acpi | awk '{print $4}' | tr -d '[=,=]'}${alignr}${execibar 30 acpi | awk '{print $4}' | tr -d '[=,=]'}
    #
    #CPU1 Temp
    ${goto 6}${voffset 4}${font Devil inside:size=16}1${font}${voffset -4}${goto 32}Core0 Temp: ${alignr}${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3}°C
    #
    #CPU2 Temp
    ${goto 6}${voffset 4}${font Devil inside:size=16}1${font}${voffset -4}${goto 32}Core1 Temp: ${alignr}${exec sensors | grep 'Core 1' | awk '{print $3}' | cut -c2-3}°C
    #CPU2 Temp
    ${goto 6}${voffset 4}${font Devil inside:size=16}1${font}${voffset -4}${goto 32}Core2 Temp: ${alignr}${exec sensors | grep 'Core 2' | awk '{print $3}' | cut -c2-3}°C
    #
    ${goto 6}${voffset 4}${font Devil inside:size=16}1${font}${voffset -4}${goto 32}Core3 Temp: ${alignr}${exec sensors | grep 'Core 3' | awk '{print $3}' | cut -c2-3}°C
    #
    #Motherboard Temp
    ${goto 5}${voffset 4}${font Devil inside:size=16}x${font}${voffset -4}${goto 32}Mother Temp: ${alignr}${exec sensors | grep 'MB Temperature' | cut -c19-20}°C / ${color #FCAF3E}${exec sensors | grep 'MB Temperature' | cut -c37-38}°C$color
    #
    #HD Temp
    ${goto 4.5}${voffset 2}${font ConkySymbols:size=13}k${font}${voffset -4}${goto 32}HD Temp:${alignr}${exec hddtemp /dev/sdb -n}°C
    #
    #Fan Speed
    #${goto 6}${font Martin Vogel's Symbols:size=16}j${font}${voffset -4}${goto 32}Fan Speed: ${alignr}${exec sensors | grep 'RPM'| cut -c16-25}
    #
    #Uptime
    ${goto 6}${voffset 4}${font StyleBats:size=16}q${font}${voffset -4}${goto 32}Uptime: ${alignr}${uptime}
    #
    #Processes Running
    ${goto 6}${voffset 4}${font StyleBats:size=16}k${font}${voffset -4}${goto 32}Processes: ${alignr}$processes ($running_processes running)
    #
    #Top 4 Processes
    ${goto 7.5}${voffset 4}${font Poky:size=15}a${font}${goto 32}${voffset -10}Highest: ${alignr 13}CPU${alignr}RAM
    ${goto 32}${voffset -5.5}${hr 1}
    ${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu 1}${alignr }${top mem 1}
    ${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu 2}${alignr }${top mem 2}
    ${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu 3}${alignr }${top mem 3}
    ${voffset -1}${goto 32}${top name 4} ${goto 124}${top cpu 4}${alignr }${top mem 4}
    
    
    ${voffset -1}DATE ${hr 2}
    ${alignc 35}${font LCDMono Bold:size=26}${time %l:%M }${font}
    ${alignc}${time %A %d %B}
    
    
    ${voffset -1}HD ${hr 2}
    ${goto 3}${voffset 4}${font Poky:size=16}H${font}${goto 29}${voffset -11} Root: ${fs_used_perc /}%${alignr}${fs_size /}
    ${goto 29} Free: ${fs_free /}${alignr}${fs_bar 8,60 /}
    #${goto 3}${voffset 8}${font Poky:size=16}H${font}${goto 29}${voffset -11} Home: ${fs_used_perc /home}%${alignr}${fs_size /home}
    #${goto 29} Free: ${fs_free /home}${alignr}${fs_bar 8,60 /home}
    
    
    ${voffset -1}NETWORK ${hr 2}
    ${if_up wlan0}
    ${font Poky:size=14}Y${font}${goto 32}${voffset -8}SSID: ${wireless_essid wlan0}
    ${goto 32}Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
    ${voffset 4}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
    ${goto 32}Total: ${totalup wlan0}
    ${voffset 4}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
    ${goto 32}Total: ${totaldown wlan0}
    ${voffset 4}${font Poky:size=13}w${font}${goto 32}${voffset -8}Local IP: ${alignr}${addr wlan0}
    ${goto 32}Public IP: ${alignr}${execi 3600 curl ifconfig.me}
    # |--ETH0
    ${else}${if_up eth0}
    ${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
    ${goto 32}Total: ${totalup eth0}
    ${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
    ${goto 32}Total: ${totaldown eth0}
    ${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr eth0}
    ${goto 32}Public IP: ${alignr}${execi 3600 curl ifconfig.me}
    # |--PPP0
    ${endif}${else}${if_up ppp0}
    ${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
    ${goto 32}Total: ${totalup ppp0}
    ${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
    ${goto 32}Total: ${totaldown ppp0}
    ${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0}
    ${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}
    ${hr 2}
    Attached Images Attached Images
    Last edited by deadflowr; June 27th, 2014 at 06:52 PM. Reason: normalized fonts and added code tags
    I love my work - DiGwork

  5. #22825
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by majk2 View Post
    Hi Guys

    I am relatively new to this whole Conky scene, just started today.

    I have managed to figure how to get all my CPUs to display I even managed to get four core temps to show.
    I had no luck on motherboard temp though.
    And I am a bit confused by the letters running down the left side of the conky panel and how to modify or adapt them. I presume they are place holders for icons but I am not quite sure how to go about setting them up.

    Could anyone advise me on the Motherboard temp issue and the letters/icon space holders?
    In your conky config you have a line to get motherboard temperature from sensors.
    ie on line #116...
    Code:
    ${goto 5}${voffset 4}${font Devil inside:size=16}x${font}${voffset -4}${goto 32}Mother Temp: ${alignr}${exec sensors | grep 'MB Temperature' | cut -c19-20}°C / ${color #FCAF3E}${exec sensors | grep 'MB Temperature' | cut -c37-38}°C$color
    The important part of this line is
    Code:
    ${exec sensors | grep 'MB Temperature' | cut -c19-20}
    You can test this in terminal with...
    Code:
    sensors | grep 'MB Temperature' | cut -c19-20
    You execute sensors, grep for a line that contains the string MB Temperature and then from that line cut the 19th and 20th characters.
    Do you have a "MB Temperature" string in your sensors output?

    Refer to the second part of this post
    and install inxi and post your output from
    Code:
    sensors && inxi -s
    You are missing fonts.
    Download the attachment and extract the contents to ~/.fonts
    Attached Files Attached Files
    Last edited by grumblebum2; June 28th, 2014 at 03:14 AM.

  6. #22826
    Join Date
    Jun 2014
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    This has probably been covered already but how do I add graphic borders around my conky window? I know it's done by using lua, however I never used that, can someone point me to a detailled tutorial?, I've been googling this for hours and the most relevant link I found pointed me here.

    I'm adding a screenshot of my current configuration, a pretty basic one I must say. http://imageshack.com/a/img823/3766/y08w8.jpg

    And here's my actual .conkyrc file
    Code:
    #Window Properties
    alignment bottom_right
    background yes
    border_width 1
    draw_borders no
    draw_outline no
    own_window_argb_visual yes
    own_window_argb_value 50
    own_window yes
    own_window_class Conky
    own_window_type normal
    own_window_hints sticky undecorated skip_pager skip_taskbar below
    stippled_borders 0
    gap_x 5
    gap_y 80
    maximum_width 350
    
    #Colors & Visuals
    cpu_avg_samples 2
    default_color white
    default_outline_color white
    default_shade_color white
    draw_graph_borders yes
    draw_shades no
    double_buffer yes
    use_spacer none
    
    #Fonts
    extra_newline no 
    uppercase no
    use_xft yes
    xftfont Ubuntu Condensed:size=12
    
    #Graphics
    show_graph_scale no
    show_graph_range no
    
    #Running
    net_avg_samples 2  
    out_to_console no
    out_to_stderr no 
    update_interval 1.0
    total_run_times 0  
    
    TEXT
    ${color grey} System$hr
    
    ${color grey} $alignc $nodename $sysname
    ${color grey} $alignc  $kernel $machine
    
    ${color grey} Uptime$hr
    ${color grey} $alignc $uptime
    ${color grey} Cpu$hr
    
    ${color grey} $alignc Frequency (in MHz):${color red} $freq
    ${color grey} $alignc Frequency (in GHz):${color red} $freq_g
    ${color grey} $alignc CPU Usage:${color red} $cpu% ${color grey}
    ${cpubar 8}
    
    ${color grey} Ram$hr
    
    ${color grey} $alignc RAM Usage:${color red} $mem/$memmax - ${color grey}
    $memperc% ${membar 8}
    
    ${color grey} $alignc Swap Usage:${color red} $swap/$swapmax - ${color grey}$swapperc% 
    ${swapbar 8}
    
    ${color grey} File systems$hr
    
    ${color grey} Root     ${color red}${fs_used /}${color grey}/${fs_size /} ${fs_type /}        ${fs_bar 12 /}
    ${color grey} Games  ${color red}${fs_used /media/mgrenier25/games}${color grey}/${fs_size /media/mgrenier25/games} ${fs_type /media/mgrenier25/games}                ${fs_bar 12 /}
    ${color grey} Windows  ${color red}${fs_used /media/mgrenier25/7676DC4B76DC0DAD}${color grey}/${fs_size /media/mgrenier25/7676DC4B76DC0DAD} ${fs_type /media/mgrenier25/7676DC4B76DC0DAD}                ${fs_bar 12 /}
    
    
    ${color grey} Networking:$hr
    $alignc Up:$color ${upspeed wlan0} ${color grey} - Down:$color ${downspeed wlan0}
    $alignc ${downspeedgraph eth0 25,145} ${upspeedgraph eth0 25,145}
    $hr
    ${color grey} $alignc Processes:${color  red} $processes  
    ${color grey} $alignc Running:${color red}$running_processes
    ${color grey}$alignc Name              PID   CPU%   MEM%
    ${color lightgrey} $alignc ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} $alignc ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} $alignc ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} $alignc ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color lightgrey} $alignc ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
    ${color lightgrey} $alignc ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
    ${color lightgrey} $alignc ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
    ${color lightgrey} $alignc ${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
    
    $hr

  7. #22827
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ mgrenier25
    If you mean a semi-transparent background with rounded corners,
    you just need to call a lua script which draws a background in your conky.

    Your conky edited to call the lua.

    conky config
    Code:
    #Window Properties
    alignment bottom_right
    background no
    border_width 1
    draw_borders no
    draw_outline no
    own_window_transparent yes
    own_window_argb_visual yes
    own_window_argb_value 0
    own_window yes
    
    own_window_type normal
    own_window_hints sticky undecorated skip_pager skip_taskbar below
    stippled_borders 0
    gap_x 5
    gap_y 80
    maximum_width 350
    
    #Colors & Visuals
    cpu_avg_samples 2
    default_color white
    default_outline_color white
    default_shade_color white
    draw_graph_borders yes
    draw_shades no
    double_buffer yes
    use_spacer none
    
    #Fonts
    extra_newline no 
    uppercase no
    use_xft yes
    xftfont Ubuntu Condensed:size=12
    
    #Graphics
    show_graph_scale no
    show_graph_range no
    
    #Running
    net_avg_samples 2  
    out_to_console no
    out_to_stderr no 
    update_interval 1.0
    total_run_times 0  
    
    lua_load ~/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    TEXT
    ${color grey} System$hr
    
    ${color grey} $alignc $nodename $sysname
    ${color grey} $alignc  $kernel $machine
    
    ${color grey} Uptime$hr
    ${color grey} $alignc $uptime
    ${color grey} Cpu$hr
    
    ${color grey} $alignc Frequency (in MHz):${color red} $freq
    ${color grey} $alignc Frequency (in GHz):${color red} $freq_g
    ${color grey} $alignc CPU Usage:${color red} $cpu% ${color grey}
    ${cpubar 8}
    
    ${color grey} Ram$hr
    
    ${color grey} $alignc RAM Usage:${color red} $mem/$memmax - ${color grey}
    $memperc% ${membar 8}
    
    ${color grey} $alignc Swap Usage:${color red} $swap/$swapmax - ${color grey}$swapperc% 
    ${swapbar 8}
    
    ${color grey} File systems$hr
    
    ${color grey} Root     ${color red}${fs_used /}${color grey}/${fs_size /} ${fs_type /}        ${fs_bar 12 /}
    ${color grey} Games  ${color red}${fs_used /media/mgrenier25/games}${color grey}/${fs_size /media/mgrenier25/games} ${fs_type /media/mgrenier25/games}                ${fs_bar 12 /}
    ${color grey} Windows  ${color red}${fs_used /media/mgrenier25/7676DC4B76DC0DAD}${color grey}/${fs_size /media/mgrenier25/7676DC4B76DC0DAD} ${fs_type /media/mgrenier25/7676DC4B76DC0DAD}                ${fs_bar 12 /}
    
    
    ${color grey} Networking:$hr
    $alignc Up:$color ${upspeed wlan0} ${color grey} - Down:$color ${downspeed wlan0}
    $alignc ${downspeedgraph eth0 25,145} ${upspeedgraph eth0 25,145}
    $hr
    ${color grey} $alignc Processes:${color  red} $processes  
    ${color grey} $alignc Running:${color red}$running_processes
    ${color grey}$alignc Name              PID   CPU%   MEM%
    ${color lightgrey} $alignc ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} $alignc ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} $alignc ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} $alignc ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    ${color lightgrey} $alignc ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
    ${color lightgrey} $alignc ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
    ${color lightgrey} $alignc ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
    ${color lightgrey} $alignc ${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
    
    $hr

    The lua background script.
    Save as draw_bg.lua to your home folder.
    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.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 = 30
    
    -- Set the colour and transparency (alpha) of your background (0.00 - 0.99).
    
    --	(Light Shading Example)
    --	local bg_colour = 0x4d4d4d
    --	local bg_alpha = 0.50
    
    --	(Medium Shading Example)
    --	local bg_colour = 0x222222
    --	local bg_alpha = 0.50
    
    --	(Dark Shading Example)
    --	local bg_colour = 0x000000
    --	local bg_alpha = 0.50
    
    	local bg_colour = 0x000000
    	local bg_alpha = 0.55
    
    -- 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 = -228
    
    ---------------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
    The lines directly above "TEXT" in the conky config I posted call the lua script.
    You can add these to any conky to draw a background.
    Code:
    lua_load ~/draw_bg.lua
    lua_draw_hook_pre draw_bg
    You can save the lua script anywhere just edit the first line to reflect the path.

    The first section of the lua script allows you to adjust the colour, transparency and corner radius.
    Don't edit after "---------------END OF PARAMETERS -------------"
    Attached Images Attached Images
    Last edited by grumblebum2; June 29th, 2014 at 07:26 AM.

  8. #22828
    Join Date
    Jun 2014
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    So I dont't really need an image for the borders? The script simply draws over the Conky window?

  9. #22829
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mgrenier25 View Post
    So I dont't really need an image for the borders? The script simply draws over the Conky window?
    That's right.
    All you need is the lua script and the 2 lines in your conky to load it.

    Set the background transparency in the lua script.
    Play around with different settings in this part of the lua script...
    Code:
    -- Set the colour and transparency (alpha) of your background (0.00 - 0.99).
    
    --	(Light Shading Example)
    --	local bg_colour = 0x4d4d4d
    --	local bg_alpha = 0.50
    
    --	(Medium Shading Example)
    --	local bg_colour = 0x222222
    --	local bg_alpha = 0.50
    
    --	(Dark Shading Example)
    --	local bg_colour = 0x000000
    --	local bg_alpha = 0.50
    
    	local bg_colour = 0x0013FF
    	local bg_alpha = 0.55
    Double dash -- stops that line from running.
    So only the last 2 lines are run. Pevious lines show some examples.

    In a terminal run
    Code:
    zenity --color-selection
    and try some different colours and transparency (0.00 - 0.99)
    Last edited by grumblebum2; June 29th, 2014 at 07:28 AM.

  10. #22830
    Join Date
    Jun 2014
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Thank you so much!!!

Page 2283 of 2314 FirstFirst ... 12831783218322332273228122822283228422852293 ... 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
  •