Page 16 of 32 FirstFirst ... 6141516171826 ... LastLast
Results 151 to 160 of 313

Thread: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

  1. #151
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by mobilediesel View Post
    Lemme see the rest of the code you have so far.

    That looks like it's on the right track!
    I'm not so sure. Here is the code I have, it only has 1 line for the years but I'm getting errors already, and I need two more. That's why I was wondering is a bash script could take the %y command and divide by 10 and somehow saving the "Decade" and "Year" as seperate variable I cna use.

    Code:
    0 bruloo@bruloo: ~
    Sat Feb 06, 11:51 $ killall conky
    0 bruloo@bruloo: ~
    Sat Feb 06, 11:53 $ conky -c $HOME/Conky/OB_Dots
    Conky: unknown variable e
    Conky: one or more $endif's are missing
    Conky: desktop window (1a7) is root window
    Conky: window type - normal
    Conky: drawing to created window (0xc00001)
    Conky: drawing to double buffer
    EDIT: I counted if_matching and endif's. They are equal.

    Here's the code with the one line between years:

    Code:
    background no
    own_window yes
    own_window_type normal
    own_window_transparent no
    own_window_hints skip_taskbar,skip_pager
    own_window_title DotsBox
    use_xft yes
    xftfont webdings:size=12
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    double_buffer yes
    minimum_size 100 100
    maximum_width 200
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color white
    alignment br
    gap_x 30
    gap_y 65
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    
    # Colors
    default_color 7FFF00 #Chartreuse
    color0 FFFFF0 #Ivory
    color1 FFA07A #LightSalmon
    color2 FF8C00 #Darkorange
    color3 7FFF00 #Chartreuse
    color4 778899 #LightSlateGrey
    color5 FFDEAD #NavajoWhite
    color6 00BFFF #DeepSkyBlue
    #	colours below used by colorize script
    color7 48D1CC #MediumTurquoise
    color8 FFFF00 #Yellow
    color9 FF0000 #Red
    
    
    TEXT
    ${font dodger:size=12}${color3}TOTA ${color0}Linux
    ${goto 25}${color3}ALMINAC${COLOR}${font}
    ${font webdings: size=12}${if_match ${time %I} == 1}${color}${else}${color4}${endif}= ${if_match ${time %I} == 2}${color}${else}${color4}${endif}= ${if_match ${time %I} == 3}${color}${else}${color4}${endif}=   ${goto 101}${if_match ${time %m} == 1}${color}${else}${color4}${endif}= ${if_match ${time %m} == 2}${color}${else}${color4}${endif}= ${if_match ${time %m} == 3}${color}${else}${color4}${endif}=
    ${if_match ${time %I} == 4}${color}${else}${color4}${endif}= ${if_match ${time %I} == 5}${color}${else}${color4}${endif}= ${if_match ${time %I} == 6}${color}${else}${color4}${endif}=   ${goto 101}${if_match ${time %m} == 4}${color}${else}${color4}${endif}= ${if_match ${time %m} == 5}${color}${else}${color4}${endif}= ${if_match ${time %m} == 6}${color}${else}${color4}${endif}=
    ${if_match ${time %I} == 7}${color}${else}${color4}${endif}= ${if_match ${time %I} == 8}${color}${else}${color4}${endif}= ${if_match ${time %I} == 9}${color}${else}${color4}${endif}=   ${goto 101}${if_match ${time %m} == 7}${color}${else}${color4}${endif}= ${if_match ${time %m} == 8}${color}${else}${color4}${endif}= ${if_match ${time %m} == 9}${color}${else}${color4}${endif}=
    ${if_match ${time %I} == 10}${color}${else}${color4}${endif}= ${if_match ${time %I} == 11}${color}${else}${color4}${endif}= ${if_match ${time %I} == 12}${color}${else}${color4}${endif}=   ${goto 101}${if_match ${time %m} == 10}${color}${else}${color4}${endif}= ${if_match ${time %m} == 11}${color}${else}${color4}${endif}= ${if_match ${time %m} == 12}${color}${else}${color4}${endif}=
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 25}Hour${goto 115}Month${font}${color}
    ${if_match ${time %M} == 10}${color}${else}${color4}${if_match ${time %M} == 11}${color}${else}${color4}${if_match ${time %M} == 12}${color}${else}${color4}${if_match ${time %M} == 13}${color}${else}${color4}${if_match ${time %M} == 14}${color}${else}${color4}${if_match ${time %M} == 15}${color}${else}${color4}${if_match ${time %M} == 16}${color}${else}${color4}${if_match ${time %M} == 17}${color}${else}${color4}${if_match ${time %M} == 18}${color}${else}${color4}${if_match ${time %M} == 19}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 20}${color}${else}${color4}${if_match ${time %M} == 21}${color}${else}${color4}${if_match ${time %M} == 22}${color}${else}${color4}${if_match ${time %M} == 23}${color}${else}${color4}${if_match ${time %M} == 24}${color}${else}${color4}${if_match ${time %M} == 25}${color}${else}${color4}${if_match ${time %M} == 26}${color}${else}${color4}${if_match ${time %M} == 27}${color}${else}${color4}${if_match ${time %M} == 28}${color}${else}${color4}${if_match ${time %M} == 29}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 30}${color}${else}${color4}${if_match ${time %M} == 31}${color}${else}${color4}${if_match ${time %M} == 32}${color}${else}${color4}${if_match ${time %M} == 33}${color}${else}${color4}${if_match ${time %M} == 34}${color}${else}${color4}${if_match ${time %M} == 35}${color}${else}${color4}${if_match ${time %M} == 36}${color}${else}${color4}${if_match ${time %M} == 37}${color}${else}${color4}${if_match ${time %M} == 38}${color}${else}${color4}${if_match ${time %M} == 39}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}=   ${goto 101}${if_match ${time %d} == 10}${color}${else}${color4}${if_match ${time %d} == 11}${color}${else}${color4}${if_match ${time %d} == 12}${color}${else}${color4}${if_match ${time %d} == 13}${color}${else}${color4}${if_match ${time %d} == 14}${color}${else}${color4}${if_match ${time %d} == 15}${color}${else}${color4}${if_match ${time %d} == 16}${color}${else}${color4}${if_match ${time %d} == 17}${color}${else}${color4}${if_match ${time %d} == 18}${color}${else}${color4}${if_match ${time %d} == 19}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 20}${color}${else}${color4}${if_match ${time %d} == 21}${color}${else}${color4}${if_match ${time %d} == 22}${color}${else}${color4}${if_match ${time %d} == 23}${color}${else}${color4}${if_match ${time %d} == 24}${color}${else}${color4}${if_match ${time %d} == 25}${color}${else}${color4}${if_match ${time %d} == 26}${color}${else}${color4}${if_match ${time %d} == 27}${color}${else}${color4}${if_match ${time %d} == 28}${color}${else}${color4}${if_match ${time %d} == 29}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 30}${color}${else}${color4}${if_match ${time %d} == 31}${color}${else}${color4}${if_match ${time %d} == 32}${color}${else}${color4}${if_match ${time %d} == 33}${color}${else}${color4}${if_match ${time %d} == 34}${color}${else}${color4}${if_match ${time %d} == 35}${color}${else}${color4}${if_match ${time %d} == 36}${color}${else}${color4}${if_match ${time %d} == 37}${color}${else}${color4}${if_match ${time %d} == 38}${color}${else}${color4}${if_match ${time %d} == 39}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}=
    ${if_match ${time %M} == 40}${color}${else}${color4}${if_match ${time %M} == 41}${color}${else}${color4}${if_match ${time %M} == 42}${color}${else}${color4}${if_match ${time %M} == 43}${color}${else}${color4}${if_match ${time %M} == 44}${color}${else}${color4}${if_match ${time %M} == 45}${color}${else}${color4}${if_match ${time %M} == 46}${color}${else}${color4}${if_match ${time %M} == 47}${color}${else}${color4}${if_match ${time %M} == 48}${color}${else}${color4}${if_match ${time %M} == 49}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 50}${color}${else}${color4}${if_match ${time %M} == 51}${color}${else}${color4}${if_match ${time %M} == 52}${color}${else}${color4}${if_match ${time %M} == 53}${color}${else}${color4}${if_match ${time %M} == 54}${color}${else}${color4}${if_match ${time %M} == 55}${color}${else}${color4}${if_match ${time %M} == 56}${color}${else}${color4}${if_match ${time %M} == 57}${color}${else}${color4}${if_match ${time %M} == 58}${color}${else}${color4}${if_match ${time %M} == 59}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${color4}=
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 18}Min x10${goto 110}Day x10${font}${color}
    ${if_match ${time %M} == 01}${color}${else}${color4}${if_match ${time %M} == 11}${color}${else}${color4}${if_match ${time %M} == 21}${color}${else}${color4}${if_match ${time %M} == 31}${color}${else}${color4}${if_match ${time %M} == 41}${color}${else}${color4}${if_match ${time %M} == 51}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 02}${color}${else}${color4}${if_match ${time %M} == 12}${color}${else}${color4}${if_match ${time %M} == 22}${color}${else}${color4}${if_match ${time %M} == 32}${color}${else}${color4}${if_match ${time %M} == 42}${color}${else}${color4}${if_match ${time %M} == 52}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 03}${color}${else}${color4}${if_match ${time %M} == 13}${color}${else}${color4}${if_match ${time %M} == 23}${color}${else}${color4}${if_match ${time %M} == 33}${color}${else}${color4}${if_match ${time %M} == 43}${color}${else}${color4}${if_match ${time %M} == 53}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}=   ${goto 101}${if_match ${time %d} == 01}${color}${else}${color4}${if_match ${time %d} == 11}${color}${else}${color4}${if_match ${time %d} == 21}${color}${else}${color4}${if_match ${time %d} == 31}${color}${else}${color4}${if_match ${time %d} == 41}${color}${else}${color4}${if_match ${time %d} == 51}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 02}${color}${else}${color4}${if_match ${time %d} == 12}${color}${else}${color4}${if_match ${time %d} == 22}${color}${else}${color4}${if_match ${time %d} == 32}${color}${else}${color4}${if_match ${time %d} == 42}${color}${else}${color4}${if_match ${time %d} == 52}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 03}${color}${else}${color4}${if_match ${time %d} == 13}${color}${else}${color4}${if_match ${time %d} == 23}${color}${else}${color4}${if_match ${time %d} == 33}${color}${else}${color4}${if_match ${time %d} == 43}${color}${else}${color4}${if_match ${time %d} == 53}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}=
    ${if_match ${time %M} == 04}${color}${else}${color4}${if_match ${time %M} == 14}${color}${else}${color4}${if_match ${time %M} == 24}${color}${else}${color4}${if_match ${time %M} == 34}${color}${else}${color4}${if_match ${time %M} == 44}${color}${else}${color4}${if_match ${time %M} == 54}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 05}${color}${else}${color4}${if_match ${time %M} == 15}${color}${else}${color4}${if_match ${time %M} == 25}${color}${else}${color4}${if_match ${time %M} == 35}${color}${else}${color4}${if_match ${time %M} == 45}${color}${else}${color4}${if_match ${time %M} == 55}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 06}${color}${else}${color4}${if_match ${time %M} == 16}${color}${else}${color4}${if_match ${time %M} == 26}${color}${else}${color4}${if_match ${time %M} == 36}${color}${else}${color4}${if_match ${time %M} == 46}${color}${else}${color4}${if_match ${time %M} == 56}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}=   ${goto 101}${if_match ${time %d} == 04}${color}${else}${color4}${if_match ${time %d} == 14}${color}${else}${color4}${if_match ${time %d} == 24}${color}${else}${color4}${if_match ${time %d} == 34}${color}${else}${color4}${if_match ${time %d} == 44}${color}${else}${color4}${if_match ${time %d} == 54}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 05}${color}${else}${color4}${if_match ${time %d} == 15}${color}${else}${color4}${if_match ${time %d} == 25}${color}${else}${color4}${if_match ${time %d} == 35}${color}${else}${color4}${if_match ${time %d} == 45}${color}${else}${color4}${if_match ${time %d} == 55}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 06}${color}${else}${color4}${if_match ${time %d} == 16}${color}${else}${color4}${if_match ${time %d} == 26}${color}${else}${color4}${if_match ${time %d} == 36}${color}${else}${color4}${if_match ${time %d} == 46}${color}${else}${color4}${if_match ${time %d} == 56}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}=
    ${if_match ${time %M} == 07}${color}${else}${color4}${if_match ${time %M} == 17}${color}${else}${color4}${if_match ${time %M} == 27}${color}${else}${color4}${if_match ${time %M} == 37}${color}${else}${color4}${if_match ${time %M} == 47}${color}${else}${color4}${if_match ${time %M} == 57}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 08}${color}${else}${color4}${if_match ${time %M} == 18}${color}${else}${color4}${if_match ${time %M} == 28}${color}${else}${color4}${if_match ${time %M} == 38}${color}${else}${color4}${if_match ${time %M} == 48}${color}${else}${color4}${if_match ${time %M} == 58}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %M} == 09}${color}${else}${color4}${if_match ${time %M} == 19}${color}${else}${color4}${if_match ${time %M} == 29}${color}${else}${color4}${if_match ${time %M} == 39}${color}${else}${color4}${if_match ${time %M} == 49}${color}${else}${color4}${if_match ${time %M} == 59}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}=   ${goto 101}${if_match ${time %d} == 07}${color}${else}${color4}${if_match ${time %d} == 17}${color}${else}${color4}${if_match ${time %d} == 27}${color}${else}${color4}${if_match ${time %d} == 37}${color}${else}${color4}${if_match ${time %d} == 47}${color}${else}${color4}${if_match ${time %d} == 57}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 08}${color}${else}${color4}${if_match ${time %d} == 18}${color}${else}${color4}${if_match ${time %d} == 28}${color}${else}${color4}${if_match ${time %d} == 38}${color}${else}${color4}${if_match ${time %d} == 48}${color}${else}${color4}${if_match ${time %d} == 58}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %d} == 09}${color}${else}${color4}${if_match ${time %d} == 19}${color}${else}${color4}${if_match ${time %d} == 29}${color}${else}${color4}${if_match ${time %d} == 39}${color}${else}${color4}${if_match ${time %d} == 49}${color}${else}${color4}${if_match ${time %d} == 59}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}=
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 28}Min${goto 125}Day${font}${color}
    
    ${font DejaVu Sans Mono:bold:size=8}years${font}${color}
    ${if_match ${time %y} == 10}${color}${else}${color4}${if_match ${time %y} == 11}${color}${else}${color4}${if_match ${time %y} == 21}${color}${else}${color4}${if_match ${time %y} == 31}${color}${else}${color4}${if_match ${time %y} == 41}${color}${else}${color4}${if_match ${time %y} == 51}${color}${else}${color4}${if_match ${time %y} == 61}${color}${else}${color4}${if_match ${time %y} == 71}${color}${else}${color4}${if_match ${time %y} == 81}${color}${else}${color4}${if_match ${time %y} == 91}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %y} == 02}${color}${else}${color4}${if_match ${time %y} == 12}${color}${else}${color4}${if_match ${time %y} == 22}${color}${else}${color4}${if_match ${time %y} == 32}${color}${else}${color4}${if_match ${time %y} == 42}${color}${else}${color4}${if_match ${time %y} == 52}${color}${else}${color4}${if_match ${time %y} == 62}${color}${else}${color4}${if_match ${time %y} == 72}${color}${else}${color4}${if_match ${time %y} == 82}${color}${else}${color4}${if_match ${time %y} == 92}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %y} == 03}${color}${else}${color4}${if_match ${time %y} == 13}${color}${else}${color4}${if_match ${time %y} == 23}${color}${else}${color4}${if_match ${time %y} == 33}${color}${else}${color4}${if_match ${time %y} == 43}${color}${else}${color4}${if_match ${time %y} == 53}${color}${else}${color4}${if_match ${time %y} == 63}${color}${else}${color4}${if_match ${time %y} == 73}${color}${else}${color4}${if_match ${time %y} == 83}${color}${else}${color4}${if_match ${time %y} == 93}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${goto 101}${if_match ${time %y} == 01}${color}${else}${color4}${if_match ${time %y} == 11}${color}${else}${color4}${if_match ${time %y} == 21}${color}${else}${color4}${if_match ${time %y} == 31}${color}${else}${color4}${if_match ${time %y} == 41}${color}${else}${color4}${if_match ${time %y} == 51}${color}${else}${color4}${if_match ${time %y} == 61}${color}${else}${color4}${if_match ${time %y} == 71}${color}${else}${color4}${if_match ${time %y} == 81}${color}${else}${color4}${if_match ${time %y} == 91}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %y} == 02}${color}${else}${color4}${if_match ${time %y} == 12}${color}${else}${color4}${if_match ${time %y} == 32}${color}${else}${color4}${if_match ${time %y} == 32}${color}${else}${color4}${if_match ${time %y} == 42}${color}${else}${color4}${if_match ${time %y} == 52}${color}${else}${color4}${if_match ${time %y} == 62}${color}${else}${color4}${if_match ${time %y} == 72}${color}${else}${color4}${if_match ${time %y} == 82}${color}${else}${color4}${if_match ${time %y} == 92}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= ${if_match ${time %y} == 03}${color}${else}${color4}${if_match ${time %y} == 13}${color}${else}${color4}${if_match ${time %y} == 23}${color}${else}${color4}${if_match ${time %y} == 33}${color}${else}${color4}${if_match ${time %y} == 43}${color}${else}${color4}${if_match ${time %y} == 53}${color}${else}${color4}${if_match ${time %y} == 63}${color}${else}${color4}${if_match ${time %y} == 73}${color}${else}${color4}${if_match ${time %y} == 83}${color}${else}${color4}${if_match ${time %y} == 93}${color}${else}${color4}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}= 
    ${font DejaVu Sans Mono:bold:size=8}years${font}${color}
    
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 28}Yr x10${goto 125}Yr${font}${color}
    ${if_match ${cpu cpu1} >0}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >10}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >20}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >30}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >40}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >50}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >60}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >70}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >80}${color}${else}${color4}${endif}=${if_match ${cpu cpu1} >90}${color}${else}${color4}${endif}=
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 28}C P U${font}${color} 
    ${if_match ${memperc} >0}${color}${else}${color4}${endif}=${if_match ${memperc} >10}${color}${else}${color4}${endif}=${if_match ${memperc} >20}${color}${else}${color4}${endif}=${if_match ${memperc} >30}${color}${else}${color4}${endif}=${if_match ${memperc} >40}${color}${else}${color4}${endif}=${if_match ${memperc} >50}${color}${else}${color4}${endif}=${if_match ${memperc} >60}${color}${else}${color4}${endif}=${if_match ${memperc} >70}${color}${else}${color4}${endif}=${if_match ${memperc} >80}${color}${else}${color4}${endif}=${if_match ${memperc} >90}${color}${else}${color4}${endif}=
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 28}MEMORY${font}${color}
    As you can see it's very heavy on "if_matching" even for the time it's a lot..

    Any help appreciated.
    Bruce
    Attached Images Attached Images
    Last edited by Bruce M.; February 6th, 2010 at 04:07 PM.

  2. #152
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by varsamakos View Post
    Hey wlourf,

    Congrats for your conky.

    I was trying to make it work in my desktop (latest version)
    and I've got a problem.

    Things are doing fine and calendar is working
    but when I click out of its layer, it disappears.
    (see attachment, the layer's end is visible on the right)

    (btw, I don't know if it matters but I changed the size to 300x800 for other conky's sake)
    I think you have changed some things in your conkyrc, especially in the window block :
    Code:
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    can you check or post your conkyrc?

  3. #153
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by Bruce M. View Post
    As you can see it's very heavy on "if_matching" even for the time it's a lot..

    Any help appreciated.
    Bruce
    Hi Bruce, I don't answer to your question but as your conky seems very hard to read, did you try to use Lua to achieve what you want.
    Here is a small example for a clock that is more readable !

    The conkyrc (just set the path at the line lua_load ~/scripts/test/dots.lua):
    Code:
    background no
    own_window yes
    own_window_type normal
    own_window_transparent no
    own_window_hints skip_taskbar,skip_pager
    own_window_title DotsBox
    use_xft yes
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    double_buffer yes
    minimum_size 200 100
    maximum_width 200
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color white
    alignment br
    gap_x 30
    gap_y 65
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    
    # Colors
    default_color 7FFF00 #Chartreuse
    
    # -- Lua load -- #
    lua_load ~/scripts/test/dots.lua
    lua_draw_hook_pre main
    
    TEXT
    ${time}
    
    
    
    
           H      Mx10     S
    the lua script :
    Code:
    require 'cairo'
    
    function draw_block(nb_cols,nb_rows,off_x,off_y,delta_x,delta_y,value)
        local idx=-1
        for yi=1,nb_rows do  
            for xi=1,nb_cols do
                idx=idx+1
                if idx==value then
                    cairo_set_source_rgba(cr,1,0,0,1)
                else
                    cairo_set_source_rgba(cr,0,0,1,1)
                end
                cairo_move_to(cr,off_x+xi*delta_x,off_y+yi*delta_y)
                cairo_show_text(cr,"=")
            end
        end
    end
    
    function conky_main()
        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_set_source_rgba(cr,1,0,0,1)
        cairo_select_font_face(cr,"webdings",
            CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD)
        
        local hours=tonumber(os.date("%H"))
        if hours>12 then hours=hours-12 end --another way to do this
        local mins=math.floor(os.date("%M")/10,0)    
        local secs=math.floor(os.date("%S")/5,0)
        draw_block(3,4,10,30,15,15,hours)
        draw_block(3,2,60,30,15,15,mins)    
        draw_block(3,4,110,30,15,15,secs)
    
        cairo_stroke(cr)
        cairo_destroy(cr)
    end
    hth !
    Attached Images Attached Images

  4. #154
    Join Date
    Feb 2009
    Location
    Hellas
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by wlourf View Post
    I think you have changed some things in your conkyrc, especially in the window block :
    Code:
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    can you check or post your conkyrc?
    I didn't. I took it directly from your files.
    Here it is :

    Code:
    # -- Conky settings -- #
    background no
    update_interval 5
    
    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
    
    # -- Window specifications -- #
    
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 300 800
    
    alignment tl
    gap_y 0
    gap_x 0
    
    # -- Graphics settings -- #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # -- Text settings -- #
    use_xft yes
    xftfont Santana:size=12
    xftalpha 0.8
    
    uppercase yes
    
    default_color FFFFFF
    
    # -- Lua load -- #
    lua_load ~/.scripts/calendar.lua
    lua_draw_hook_pre main
    
    TEXT

  5. #155
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    hi varsamakos
    Sorry, I tried the script with gnome and openbox but didn't manage to reproduce your problem. (with conky 1.7.2).

  6. #156
    Join Date
    Feb 2009
    Location
    Hellas
    Beans
    9
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    I'm running conky in version 1.8.0
    maybe I should downgrade ?

    Edit:
    Just tested with 1.7.2.
    Same problem :/

    a click out of layer and ...
    http://www.youtube.com/watch?v=i71Gg1njyTQ
    Last edited by varsamakos; February 6th, 2010 at 08:17 PM.

  7. #157
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by wlourf View Post
    Hi Bruce, I don't answer to your question but as your conky seems very hard to read, did you try to use Lua to achieve what you want.
    Here is a small example for a clock that is more readable !
    I've seen that somewhere, but can's figure out the seconds on that one.

    Besides, I didn't want to use LUA for this.

    Have a nice day.
    Bruce

  8. #158
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by dk75 View Post
    Code:
    echo $(date +%y) |cut -c1
    will give you decade

    Code:
    echo $(date +%y) |cut -c2
    will give you year in that decade
    Thanks dk75, it works great in a terminal.

    I REALLY REALLY hate being "script deficient" and having too much on my plate at this stage of my life to learn.

    Code:
    # Colors
    default_color 7FFF00 #Chartreuse
    color0 FFFFF0 #Ivory
    color1 FFA07A #LightSalmon
    color2 FF8C00 #Darkorange
    color3 7FFF00 #Chartreuse
    color4 778899 #LightSlateGrey
    color5 FFDEAD #NavajoWhite
    color6 00BFFF #DeepSkyBlue
    #	colours below used by colorize script
    color7 48D1CC #MediumTurquoise
    color8 FFFF00 #Yellow
    color9 FF0000 #Red
    
    TEXT
    ${font webdings: size=12}
    ${color}= ${color4}= =${goto 101}= = =
    = = =${goto 101}= = =
    = = =${goto 101}= = =${color}
    ${color7}${font DejaVu Sans Mono:bold:size=8}${goto 28}Yr x10${goto 125}Yr${font}${color}
    
    =
    ${if_match {echo $(date +%y) |cut -c1} == 1}${color}${else}${color4}${endif}=
    ${if_match {echo $(date +%y) |cut -c1} == 2}${color}${else}${color4}${endif}=
    ${font}
    Hard coded above just to display (20)10

    That first = should be green and is,
    the second should be green and is
    the third should be grey, it's green

    Maybe that command doesn't work inside an "if_matching" command.

    Did I say that I hate being "script deficient"?

    Any ideas?

    Have a nice day
    Bruce

    PS Have to run, back tomorrow
    Attached Images Attached Images

  9. #159
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by Bruce M. View Post
    Don't want the century, just the "decade" and the "year" number For example next year will be 2011 so I need it to look like:



    and in 2012

    Code:
    X 0 0    0 X 0
    0 0 0    0 0 0
    0 0 0    0 0 0
    and "!=" would be a case of another 100 commands.

    Have a nice day
    Bruce
    Is this possibly what you are looking for?
    screenshot2010-02-07T02:20:25-0500.png
    If so, for lack of a better name, dotdatetime.sh is what I called it. It might still need some tweaking to the text alignment.
    Code:
    #!/bin/bash
    ############################################################
    # This work is licensed under the Creative Commons         #
    # Attribution-Share Alike 3.0 Unported License.            #
    # To view a copy of this license, visit                    #
    # http://creativecommons.org/licenses/by-sa/3.0/           #
    # or send a letter to Creative Commons, 171 Second Street, #
    # Suite 300, San Francisco, California, 94105, USA.        #
    ############################################################
    cd $(dirname $0)
    DATE=$(date +%y%m%d%I%M)
    CURRENT="\${color 7FFF00}"
    DEFAULT="\${color 778899}"
    TEXT="\${color 48D1CC}"
    MONTH=${DATE:2:2}
    HOUR=${DATE:6:2}
    YEAR10C[${DATE:0:1}]="$CURRENT"
    YEARC[${DATE:1:1}]="$CURRENT"
    MONTHC[${MONTH/#0/}]="$CURRENT"
    DAY10C[${DATE:4:1}]="$CURRENT"
    DAYC[${DATE:5:1}]="$CURRENT"
    HOURC[${HOUR/#0/}]="$CURRENT"
    MIN10C[${DATE:8:1}]="$CURRENT"
    MINC[${DATE:9:1}]="$CURRENT"
    YEAR10R[${DATE:0:1}]="$DEFAULT"
    YEARR[${DATE:1:1}]="$DEFAULT"
    MONTHR[${MONTH/#0/}]="$DEFAULT"
    DAY10R[${DATE:4:1}]="$DEFAULT"
    DAYR[${DATE:5:1}]="$DEFAULT"
    HOURR[${HOUR/#0/}]="$DEFAULT"
    MIN10R[${DATE:8:1}]="$DEFAULT"
    MINR[${DATE:9:1}]="$DEFAULT"
    echo -n "\${font webdings:size=12}$DEFAULT"
    for n in 1 4 7 10; do
        for i in $(seq $n $[n+2]); do
            echo -n "${HOURC[$i]}=${HOURR[$i]} "
        done
    echo -n "\${goto 101}"
        for i in $(seq $n $[n+2]); do
            echo -en "${MONTHC[$i]}=${MONTHR[$i]} "
        done
    echo
    done
    echo "$TEXT\${font DejaVu Sans Mono:bold:size=8}\${goto 25}Hour\${goto 115}Month\${font webdings:size=12}$DEFAULT"
    for n in 1 2 3; do
        echo -n "${MIN10C[$n]}=${MIN10R[$n]} "
    done
    echo -n "\${goto 101}"
    for n in 1 2 3; do
        echo -n "${DAY10C[$n]}=${DAY10R[$n]} "
    done
    echo
    for n in 4 5 6; do
        echo -n "${MIN10C[$n]}=${MIN10R[$n]} "
    done
    echo -e "\n$TEXT\${font DejaVu Sans Mono:bold:size=8}\${goto 18}Min x10\${goto 110}Day x10\${font webdings:size=12}$DEFAULT"
    for n in 1 4 7; do
        for i in $(seq $n $[n+2]); do
            echo -n "${MINC[$i]}=${MINR[$i]} "
        done
    echo -n "\${goto 101}"
        for i in $(seq $n $[n+2]); do
            echo -en "${DAYC[$i]}=${DAYR[$i]} "
        done
    echo
    done
    echo "$TEXT\${font DejaVu Sans Mono:bold:size=8}\${goto 28}Min\${goto 125}Day\${font webdings:size=12}$DEFAULT"
    for n in 1 4 7; do
        for i in $(seq $n $[n+2]); do
            echo -n "${YEAR10C[$i]}=${YEAR10R[$i]} "
        done
    echo -n "\${goto 101}"
        for i in $(seq $n $[n+2]); do
            echo -en "${YEARC[$i]}=${YEARR[$i]} "
        done
    echo
    done
    echo "$TEXT\${font DejaVu Sans Mono:bold:size=8}\${goto 28}Year x10\${goto 110}Year$DEFAULT"
    Last edited by mobilediesel; February 7th, 2010 at 06:32 PM. Reason: error in mah code! now edited to be a bit smaller

  10. #160
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Conky Support Scripts: Show us your "Scripts" & Screenshots of what they do.

    Quote Originally Posted by varsamakos View Post
    I'm running conky in version 1.8.0
    maybe I should downgrade ?

    Edit:
    Just tested with 1.7.2.
    Same problem :/

    a click out of layer and ...
    http://www.youtube.com/watch?v=i71Gg1njyTQ
    this is a private video, it seems that I can't play it, even with my youtube account ...

    Edit : I saw the video, and I already understood the problem but I can't fix it since I can't reproduce it, sorry about that, try google with "conky disappear click"
    Last edited by wlourf; February 7th, 2010 at 02:11 PM.

Page 16 of 32 FirstFirst ... 6141516171826 ... LastLast

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
  •