Page 1384 of 2348 FirstFirst ... 384884128413341374138213831384138513861394143414841884 ... LastLast
Results 13,831 to 13,840 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #13831
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    similar question to the one I just asked. Check my screenshot but I cant get the "window" to be smaller vertically. Heres the .conkyrc:
    It takes forever to find something at Conky Hardcore now so I can't point you there but here's the info:

    ${goto}, ${offset} & ${voffset}

    So you need to do some work regarding “spacing” in conky.

    Some recommendations to consider:

    1. For your conky file above the TEXT line is to pad the % outputs to two places, and use short units:

    Code:
    short_units yes
    pad_percents 2
    TEXT
    short_units means you’ll see M vs M/b or G vs G/b. And pad_percents insures all % output into conky is done with 2 decimal places, unless you use another program like vnstat to get output. Another nice thing about this is if you use the ${goto} command to place them, it uses the decimal point as the reference.


    2. When considering spacing as a “critical” factor in your display, I can’t’ stress enough that “mono” fonts are important.

    3. One also has to consider the font and font size. For example the woodbadge font used below is “NOT” a mono font and at a size of 40 a single space between words or characters is much larger then (for example) DejaVu Sans Mono:bold:size=9, and that is just hitting the “spacebar”. So always turn off fonts (with ${font}) before you go to another line or add a space for the next command – unless you want that large space.

    For example:

    Code:
        ${font woodbadge:size=40}Name:  ${font DejaVu Sans Mono:bold:size=9}Bruce
        Address: 123 Any St.${font}
    would display different than:

    Code:
        ${font woodbadge:size=40}Name:${font DejaVu Sans Mono:bold:size=9}  Bruce
        Address: 123 Any St.${font}
    because of the change in font and size. Check where the “space” is between the red characters and lacking a space between the blue characters, that’s the only difference between those two lines. Spacing is important!


    OK, so what do ${goto}, ${offset} and ${voffset} do. Basically they move the output from commands to another place on the display.

    ${goto xx} – goto normally uses a positive number to move text xx number of pixels to the right of zero. That “of zero” is important, it is the extreme left side of your conky output displayed on your screen. Obviously -xx will move text to the left of 0 (you won’t see the text if you do this.) So if you have a conky that is 1000 pixels wide, 0 is the left most pixel and 999 is the last one on the right.

    ${offset xx} moves it in a similar fashion but starts from where you use it.

    Take a look at this three line example and the results, note the font used:

    Line 1, has text out of place, but that ${goto 0} is going to assure that “This is” will be in the right place. And ${goto 54} will put “text.” at the end to form the phrase properly.

    Lines #2 & 3, show what ${offset} does.

    Code:
        ${font DejaVu Sans Mono:bold:size=9}
        Line 1:
        ${goto 54}text.${goto 0}This is
    
        Line 2:
        This is${offset 80}text
    
        Line 3:
        ${offset 80}text${goto 0}This is
        ${font}

    As you see both lines #2 & 3 have the same command “${offset 80}text” but places “text” different positions on the line. NOTE: Personally I don’t use the ${offset} command but I’ve seen it used in various conkys in the forums.

    Next we are going to look at ${voffset}

    But before we get into it I want to point out that “every time” you use this command you create a blank empty space below your conky. It can not be helped to my knowledge. Here’s the reason, lets say you create a conky with 5 command lines below TEXT:

    Code:
        TEXT
        ${font DejaVu Sans Mono:bold:size=9}line 1
        line 2
        line 3
        line 4
        line 5${font}
    You are creating a conky that requires 5 lines (size determined by the font size you use) of space on your screen!

    OK, so you want to use ${voffset} and move those lines up:

    Code:
        ${font DejaVu Sans Mono:bold:size=9}line 1
        ${voffset -15}${goto 54}line 2
        ${voffset -15}${goto 108}line 3
        ${voffset -15}${goto 162}line 4
        ${voffset -15}${goto 216}line 5${font}
    But you are still using 5 lines of code, even though you have “moved the display location”, that’s all you have done: “moved the display location” as seen below:


    And for that reason we see things like this:


    ... and empty space below the final lined displayed in Conky.

    You can however put another conky on your screen to use that space. Just give it a sleep time of 1 or 2 seconds longer to allow the first conky with the space to load so the empty space “doesn’t cover” your second conky.

    OK, lets continue -

    ${voffset xx} moves displayed output up or down. A negative number moves stuff in the opposite direction, depending on what "alignment" you use it may be up or down. TEST IT!

    Let’s look at an example:


    NOTE: The following examples come from my working conky, I have removed the ${color} command to make it more easily readable.

    Code:
        TEXT
        ${font woodbadge:size=40}IP:${font}
        ${font DejaVu Sans Mono:bold:size=9}Up:${upspeed eth0} k/s ${totalup eth0}
        ${addr eth0}
        Down:${downspeed eth0} k/s ${totaldown eth0}${font}
    As you see I’m using a LARGE font for IP: and the next three lines under that show UP: -speed and total, my IP address and Down: – speed and total in a smaller “mono” font because my spacing is a critical issue here.

    What you get is 4 lines of output on your screen:

    Code:
        IP:
        Up: 0 K/s 2.68M
        xxx.xxx.xxx.xxx
        Down: 0 k/s 9.34M
    But we want it all on one line, so we need 3 x ${goto xx} and 1x ${voffset xx}. Why only 1 ${voffset} you ask. Simple; once used it moves “everything” up or down

    First we play with the ${goto} command to get that 4th line moved over beyond the IP: display. Why that last line? “Down” has more characters than “Up” and is therefore easier to use as it’s placement will be “closer” then “Up”

    Code:
        TEXT
        ${font woodbadge:size=40}IP:$font
        ${font DejaVu Sans Mono:bold:size=9}Up:{upspeed eth0} k/s ${totalup eth0}
        ${addr eth0}
        ${goto 85}Down:{downspeed eth0} k/s ${totaldown eth0}
    That looks good. Do line 3 now and play with line 2, I put the ${goto} after the ${font} command out of habit. It doesn’t really matter.

    Code:
        TEXT
        ${font woodbadge:size=40}IP:$font
        ${font DejaVu Sans Mono:bold:size=9}${goto 99}Up:{upspeed eth0} k/s ${totalup eth0}
        ${goto 85}${addr eth0}
        ${goto 85}Down:{downspeed eth0} k/s ${totaldown eth0}
    OK, so everything lines up beyond the IP: now. Now we have to move it up with the ${voffset} command until we get the desired results. Placing the ${voffset} on that second line bringing all three up into place.

    Code:
        TEXT
        ${font woodbadge:size=40}IP:$font
        ${font DejaVu Sans Mono:bold:size=9}${voffset -45}${goto 99}Up:{upspeed eth0} k/s ${totalup eth0}
        ${goto 85}${addr eth0}
        ${goto 85}Down:{downspeed eth0} k/s ${totaldown eth0}
    This is how it looks in my conky with all the codes:

    Code:
        TEXT
        ${color2}${font woodbadge:size=40}IP:${font}${color}
        ${font DejaVu Sans Mono:bold:size=9}${voffset -45}${goto 99}${color9}Up:${color}${upspeed eth0} k/s ${totalup eth0}
        ${goto 85}${addr eth0}
        ${goto 85}${color3}Down:${color}${downspeed eth0} k/s ${totaldown eth0}${color}${font}
    Thanks to Jackzor & djyoung4, for making me aware of this missing tidbit:

    As you saw at the top of the page:

    Code:
    short_units yes
    pad_percents 2
    TEXT
    are two very useful variables anf there is another that will help your conky look cleaner, neater, and just generally better if you use “Processes”

    Code:
    short_units yes
    pad_percents 2
    top_name_width 7
    TEXT
    top_name_width – - Width for $top name value (defaults to 15 characters).

    … will limit the processes names to “7″ characters allowing for exact spacing with goto’s.


    Code:
    pad_percents 2
    top_name_width 7
    minimum_size 120 100
     
    TEXT
    ${goto 10}${color4}${cpubar cpu0 25,160}
    ${voffset -33}${goto 20}${color0}${font dodger:size=15}CPU${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu0} %${font}
    ${voffset 10}${goto 10}${color3}Name${goto 85}CPU${goto 135}MEM${color}
    ${voffset 5}${goto 10}${top name 1}${goto 70}${top cpu 1}${goto 120}${top mem 1}
    ${goto 10}${top name 2}${goto 70}${top cpu 2}${goto 120}${top mem 2}
    ${goto 10}${top name 3}${goto 70}${top cpu 3}${goto 120}${top mem 3}
    ${goto 10}${top name 4}${goto 70}${top cpu 4}${goto 120}${top mem 4}
    ${goto 10}${top name 5}${goto 70}${top cpu 5}${goto 120}${top mem 5}
    ${goto 10}${top name 6}${goto 70}${top cpu 6}${goto 120}${top mem 6}
    ${goto 10}${top name 7}${goto 70}${top cpu 7}${goto 120}${top mem 7}
    ${goto 10}${top name 8}${goto 70}${top cpu 8}${goto 120}${top mem 8}
    ${goto 10}${top name 9}${goto 70}${top cpu 9}${goto 120}${top mem 9}
    ${goto 10}${voffset 33}${color4}${membar 25,160}
    ${voffset -33}${goto 20}${color0}${font dodger:size=15}MEM${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${memperc} %${font}
    ${voffset 10}${goto 10}${color3}Name${goto 85}CPU${goto 135}MEM${color}
    ${voffset 5}${goto 10}${top_mem name 1}${goto 70}${top_mem cpu 1}${goto 120}${top_mem mem 1}
    ${goto 10}${top_mem name 2}${goto 70}${top_mem cpu 2}${goto 120}${top_mem mem 2}
    ${goto 10}${top_mem name 3}${goto 70}${top_mem cpu 3}${goto 120}${top_mem mem 3}
    ${goto 10}${top_mem name 4}${goto 70}${top_mem cpu 4}${goto 120}${top_mem mem 4}
    ${goto 10}${top_mem name 5}${goto 70}${top_mem cpu 5}${goto 120}${top_mem mem 5}
    ${goto 10}${top_mem name 6}${goto 70}${top_mem cpu 6}${goto 120}${top_mem mem 6}
    ${goto 10}${top_mem name 7}${goto 70}${top_mem cpu 7}${goto 120}${top_mem mem 7}
    ${goto 10}${top_mem name 8}${goto 70}${top_mem cpu 8}${goto 120}${top_mem mem 8}
    ${goto 10}${top_mem name 9}${goto 70}${top_mem cpu 9}${goto 120}${top_mem mem 9}${font}${color}
    More than what you asked for but it is all about "spacing" considerations.
    Last edited by Sector11; September 8th, 2010 at 04:33 PM.

  2. #13832
    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 Sector11 View Post
    It takes forever to find something at Conky Hardcore now so I can't point you there but here's the info:



    More than what you asked for but it is all about "spacing" considerations.
    I see. I tried putting all of the code on one line but it has no effect on the size of the window and the only reason I am trying to shrink it is I am trying to stop the blinking from the other conkies. I figured if the two windows overlapped then they blinked so I am trying to make it smaller.
    I'm a super power user

  3. #13833
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    I see. I tried putting all of the code on one line but it has no effect on the size of the window and the only reason I am trying to shrink it is I am trying to stop the blinking from the other conkies. I figured if the two windows overlapped then they blinked so I am trying to make it smaller.
    Possibly due to different "update_interval" being off by .5 of a second can do it. So your conkys are over writing each other maybe?

    Did you know about this as well:

    When “blinking” isn’t!

    Something I discovered a long time ago was if I had a line like:

    Code:
    Up:$color ${upspeed eth0} k/s | Down:$color ${downspeed eth0} k/s
    ... that actually set the “width” of conkys display, it is NOT that conky is blinking, it’s because conky is “changing its width” and redrawing the new width to the screen. For example a line that produces the output:

    Code:
    Up: 47 k/s | Down: 238 ks
    But when the Up – Down values changes to:

    Code:
    Up: 0 k/s | Down: 0 ks
    you’ve lost 3 characters of width and conky redraws - narrower - causing what you think is flickering or blinking.

    Try this “test”, it looks ugly, but if the “flickering” stops you know you have it.

    Code:
    TEXT
    ------------------------ <<-- increase until it makes your conky wider
    ${hr}
    etc. etc.
    If that stops it, then above TEXT add a setting:

    Code:
    maximum_width xxx
    TEXT
    where xxx creates a conky slightly wider then you have.

    OR – change your line to display:

    Code:
    Up: 47 k/s
    Down: 238 k/s
    
    Up: ${upspeed eth0} k/s
    Down: ${downspeed eth0} k/s

  4. #13834
    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 Sector11 View Post
    Possibly due to different "update_interval" being off by .5 of a second can do it. So your conkys are over writing each other maybe?

    Did you know about this as well:
    yeah i knew about that but not about the different update intervals. Ill check it when I get home.
    I'm a super power user

  5. #13835
    Join Date
    Nov 2009
    Location
    Assen, Netherlands
    Beans
    14
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    It takes forever to find something at Conky Hardcore now so I can't point you there but here's the info:


    More than what you asked for but it is all about "spacing" considerations.
    Wow! Thanks Sector11. This is a very easy to understand explanation of spacing. Very enlightening!!!

  6. #13836
    Join Date
    Jul 2010
    Location
    Poole, Dorset, England
    Beans
    8
    Distro
    Kubuntu

    Lightbulb Spacing

    Talking about spacing, i've made a couple of small changes to my conky. Mainly putting the email functions last and then using voffset to move them up. This is because when there was code below it, as the emails arrived, everything below the emails was pushed down.

    Code:
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_argb_visual yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    total_run_times 0
    double_buffer yes
    
    use_spacer right
    use_xft yes
    xftfont arial:size=7
    
    update_interval 1.0
    draw shades?
    draw_shades no
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    draw_graph_borders yes
    font Purisa
    default_color A0A0A0
    default_outline_color A0A0A0
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 3
    # border width
    border_width 15
    text_buffer_size 900
    
    #own_window_colour?
    own_window_colour black
    own_window_transparent yes
    
    # Text alignment, other possible values are commented
    #alignment top_left
    #alignment middle_left
    #alignment bottom_left
    alignment top_left
    # Minimum size of text area
    minimum_size 1280 400
    #maximum_width 1280
    
    # Gap between borders of screen and text
    gap_x 0
    gap_y 30
    
    short_units yes
    pad_percents 2
    top_name_width 6
    
    # — Lua Load — #
    lua_load ~/Scripts/rings.lua
    lua_draw_hook_pre ring_stats
    
    # stuff after 'TEXT' will be formatted on screen
    TEXT
    ${font SF Automaton:bold:size=11}$color ${goto 30}Martins Laptop:${goto 256}CPU:${goto 525}DISK:${goto 625}NETWORK:${goto 875}OUTBOUND CONNECTIONS:
    ${color 494B51}${hr 1}
    ${offset 9}${font SF Automaton:bold:size=8}$color Poole Dorset:${goto 176}Today
    ${execpi 1800 conkyForecast --location=UKXX0113 --template=/home/martin/Scripts/poole.template}${goto 253}${font SF Automaton:bold:size=8}${voffset -150}$color CPU Temp: ${color C2C2C2}${acpitemp}${goto 520}$color Disk Space${goto 623}Internet usage${voffset 10}${goto 253}$color Processes: ${color C2C2C2}${processes}${goto 368}$color Running: ${color C2C2C2}${running_processes}$color ${goto 523}Used${goto 560}/Free${goto 678}Down ${goto 746}Up ${goto 805}Total${goto 875}Name${goto 1200}Port
    ${goto 253}$color NAME${Goto 370}PID${Goto 418}CPU%${goto 465}MEM%${color C2C2C2}${goto 523}${color C2C2C2}${fs_used /} / ${fs_size /}${goto 620}$color Today:${goto 675}${color C2C2C2} ${execi 300 vnstat | grep "today" | awk '{print $2 $3}'}${goto 745}${execi 300 vnstat | grep "today" | awk '{print $5 $6}'}${goto 805}${execi 300 vnstat | grep "today" | awk '{print $8 $9}'}${goto 875}${tcp_portmon 32768 61000 rhost 0}${goto 1200}${tcp_portmon 32768 61000 rservice 0}
    ${goto 255}${top name 1}${goto 368}${top pid 1}${goto 416}${top cpu 1}${goto 461}${top mem 1}${goto 621}$color Week:${goto 678}${color C2C2C2}${execi 300 vnstat -w | grep "current week" | awk '{print $3 $4}'}${goto 745}${execi 300 vnstat -w | grep "current week" | awk '{print $6 $7}'}${goto 805}${execi 300 vnstat -w | grep "current week" | awk '{print $9 $10}'}${goto 875}${tcp_portmon 32768 61000 rhost 1}${goto 1200}${tcp_portmon 32768 61000 rservice 1}
    ${goto 255}${top name 2}${goto 368}${top pid 2}${goto 416}${top cpu 2}${goto 461}${top mem 2}${goto 621}$color Month${color C2C2C2}${goto 678}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 745}${color C2C2C2}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${goto 805}${color C2C2C2}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${goto 875}${tcp_portmon 32768 61000 rhost 2}${goto 1200}${tcp_portmon 32768 61000 rservice 2}
    ${goto 255}${top name 3}${goto 368}${top pid 3}${goto 416}${top cpu 3}${goto 461}${top mem 3}$color${goto 623}Session ${goto 678}${color C2C2C2}${totaldown eth1}${goto 745}${totalup eth1}${goto 875}${tcp_portmon 32768 61000 rhost 3}${alignr}${goto 1200}${tcp_portmon 32768 61000 rservice 3}
    ${goto 255}${top name 1}${goto 368}${top pid 4}${goto 416}${top cpu 4}${goto 461}${top mem 4}$color ${goto 623}${voffset 2}Connection Speed
    ${goto 620}$color Down:${color C2C2C2} ${downspeed eth1}$color k/s ${goto 740}$color Up:${color C2C2C2} ${upspeed eth1}$color k/S${goto 250}${voffset 8}${downspeedgraph eth0 50,480}
    ${voffset 7}${goto 520}${font SF Automaton:bold:bold:size=8}${color C2C2C2}${execi 60 du -sh ~/.local/share/Trash/files/ | awk '{print $1}' | sed '/^4.0K/ d'  | sed 's/$//'}$color In The Trash${goto 623}${font SF Automaton:Bold:size=8}${color A0A0A0}Uptime:${goto 668}${color C2C2C2}${uptime}${voffset -40}${goto 300}${color A0A0A0}RAM:${goto 328}${color C2C2C2}${memperc}${goto 343}%${goto 412}${color A0A0A0}CPU:${goto 438}${color C2C2C2}${cpu cpu0}${goto 452}%${goto 580}${font SF Automaton:bold:size=8}${goto 567}${color A0A0A0}Disk:${goto 595}${color C2C2C2}${fs_used_perc /}${goto 610}%${goto 669}${color A0A0A0}WiFi:${goto 694}${color C2C2C2}${wireless_link_qual_perc eth1}${goto 708}%
    ${voffset 100}${color 494B51}${hr 1}
    ${voffset -18}${color A0A0A0}${goto 30}UPDATES AVAILABLE:${color C2C2C2} ${execi 1200 aptitude search "~U" | wc -l | tail} / ${color A0A0A0}${goto 165}BATTERY CHARGE:${GOTO 258}${color C2C2C2}${battery_percent BAT0} % / ${color A0A0A0}${goto 295}Battery Time Left: ${color C2C2C2}${battery_time BAT0}${GOTO 950}${font SF Automaton:Bold:size=11}${color ffffff}${time %I:%M: %P} ${color A0A0A0}${exec date "+%A%e %B"} ${color C2C2C2}${exec date "+%Y"}${font SF Automaton:bold:size=9}${voffset -125}${goto 871}$color Email${alignr}${color}Latest messages
    ${goto 875}${font SF Automaton:size=8}$color ${execi 60 conkyEmail --servertype=POP --servername=pop.mail.yahoo.com --username=************* --password=l********* --ssl --mailinfo=6}
    Now if only I could figure out a way of giving the email part a maximum width I would be a very happy chappy!

    BTW. I have used the:

    pad_percents 2
    top_name_width 6

    I'm not quite sure what the pad_percents 2 does though

    M
    Last edited by martinblunn; September 9th, 2010 at 05:24 PM. Reason: Changes to script

  7. #13837
    Join Date
    Jul 2010
    Location
    Poole, Dorset, England
    Beans
    8
    Distro
    Kubuntu

    Re: Back to the title of the thread.

    Please delete this!
    Last edited by martinblunn; September 9th, 2010 at 05:25 PM. Reason: Double posted ;-)

  8. #13838
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by elendilnl View Post
    Wow! Thanks Sector11. This is a very easy to understand explanation of spacing. Very enlightening!!!
    Your welcome.

    Taken from the old Conky Hardcore pages I saved locally. Can't find a thing there now.

  9. #13839
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    havn't had too much time over the last few days for conkying but made a few changes/inprovements - conkybar!



    i decided on a horizontal format so button position doesnt change, and i have a script that launches the buttons at the same time as the conky

    i also have the buttons activating scripts so just 1 button for roll up and roll down

    still rough around the edges but the mechanics are all working... now i just need to pretty up the output!

    here is what it looks like working

    http://blip.tv/file/4102178

  10. #13840
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    and here is how it all works

    i have a folder like this

    text files for each section of the conky
    the text files simply contain either a "1" or a "0"

    and i have a shell script for each section of the conky that modifies the related text file

    for example:

    Code:
    #!/bin/bash
    
    smio=$(cat /home/mcdowall/conkyset/smset.txt)
    
    if [ $smio -eq 0 ] ; then
    $(echo "1" > /home/mcdowall/conkyset/smset.txt)
    elif [ $smio -eq 1 ] ; then
    $(echo "0" > /home/mcdowall/conkyset/smset.txt)
    fi
    then I have the adesk folder, which contains the python scripts for the buttons and a folder containing the icons to use.

    I had to make my own icons for the triangle buttons

    the setup for the button script is really easy, just tell it where to be, what icon to use and what command to execute.

    for example:
    Code:
    ## Default config
    POS_X = 870
    POS_Y = 2
    WIDTH = 30
    HEIGHT = 30
    THEME = 'more'
    CMD = "/home/mcdowall/conkyset/smset.sh"
    ##
    you need one button script per button


    then in the lua script i have these lines:
    Code:
    tdread = io.open("/home/mcdowall/conkyset/tdset.txt", "r")
    tdset = tdread:read("*lines")
    
    pread = io.open("/home/mcdowall/conkyset/pset.txt", "r")
    pset = pread:read("*lines")
    
    smread = io.open("/home/mcdowall/conkyset/smset.txt", "r")
    smset = smread:read("*lines")
    
    wread = io.open("/home/mcdowall/conkyset/wset.txt", "r")
    wset = wread:read("*lines")
    which watch the text files

    then just using if's in the lua script i do
    Code:
    if tdset=="1" then
    --inactive display--
    end
    if tdset=="0" then
    --active display--
    end
    click the adesk button the text file changes, the lua reads the change and the output of the conky changes

    here is how everything is launched through a bash script
    Code:
    #!/bin/bash
    /home/mcdowall/conkyset/adesk/adesktd &
    /home/mcdowall/conkyset/adesk/adeskw &
    /home/mcdowall/conkyset/adesk/adesksm &
    /home/mcdowall/conkyset/adesk/adeskp &
    
    conky -c ~/.conky/.conkyrc_iftest
    if anyone wants the code for the lua calendar i can post that too

    by the way, you can get adcomp's adesk button script here:
    http://www.ad-comp.be/public/projets/ad … .1.tar.bz2
    Last edited by mrpeachy; January 8th, 2011 at 02:34 AM.

Page 1384 of 2348 FirstFirst ... 384884128413341374138213831384138513861394143414841884 ... 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
  •