Page 1973 of 2301 FirstFirst ... 973147318731923196319711972197319741975198320232073 ... LastLast
Results 19,721 to 19,730 of 23005

Thread: Post your .conkyrc files w/ screenshots

  1. #19721
    Join Date
    Jul 2011
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    how can i stop (kill) running conky, so i can test my own conky scripts?

  2. #19722
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Prescilla View Post
    how can i stop (kill) running conky, so i can test my own conky scripts?
    Terminal...
    Code:
    killall conky

  3. #19723
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stinkeye View Post
    Terminal...
    Code:
    killall conky
    That, plus, when you run conky use:

    Code:
    conky -c /path/to/your/conky/script
    so that you are testing your conky script instead of the default one that gets installed.

  4. #19724
    Join Date
    Jul 2011
    Location
    Philippines
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    That, plus, when you run conky use:

    Code:
    conky -c /path/to/your/conky/script
    so that you are testing your conky script instead of the default one that gets installed.
    thanks got it.

    is there a way to create columns like for example i want to list processes and their id and mem usage?

    i can't seem to get the alignment right.
    I've looked at the documentation, there is a tab option but i can't figure out how to use it.
    Attached Images Attached Images
    Last edited by Prescilla; May 9th, 2012 at 09:00 AM.

  5. #19725
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Prescilla View Post
    thanks got it.

    is there a way to create columns like for example i want to list processes and their id and mem usage?

    i can't seem to get the alignment right.
    I've looked at the documentation, there is a tab option but i can't figure out how to use it.
    There are no tables in Conky. You have to do it manually. I suggest, although it takes a very long time to do, finding enough space between elements in the table you're trying to make and use the goto command to force the data into the same position every time.

    To save ~some~ time, use Code Tags to post your code here in a post, just in case someone feels generous in helping you get this done.

    We can't tell a lot from just an image, and it's one extra step to download your code using an attached file. It's most welcomed by everyone if you use Code Tags. If you look at the post formatting, you'll see a little # icon, third from the right. When you post your code, highlight it, and click that icon for a shortcut. It will literally put [ CODE ] [ / CODE ] tags in place for you. Minus the spaces between the brackets.

  6. #19726
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Prescilla View Post
    thanks got it.

    is there a way to create columns like for example i want to list processes and their id and mem usage?

    i can't seem to get the alignment right.
    I've looked at the documentation, there is a tab option but i can't figure out how to use it.
    Just before the processes call, if you are not already using a mono font, change to a mono font.

    and above TEXT limit the length of the names output and pad_percents 2:
    Sometimes the pad_percents does't work depending on the command used, but here the ${goto xx} seems to work on the decimal which is nice....

    top_name_width 7 # default 15
    pad_percents 2
    TEXT


    The conky that produced that:
    Code:
    # killall conky && conky -c ~/Conky/S11_Processes_mem_res &
    # To use #! in a cony use: ${exec echo '#!'}
    background no
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints skip_taskbar,skip_pager
    own_window_title Processes Box
    
    double_buffer yes
    use_spacer left
    override_utf8_locale yes
    use_xft yes
    xftfont DejaVu Sans Mono:size=9
    #xftfont WenQuanYi Macro Hei Mono:bold:size=8
    #xftfont WenQuanYi Zen Hei Mono:bold:size=8
    xftalpha 2.5
    uppercase no
    stippled_borders 3
    border_width 0
    default_outline_color black
    default_shade_color black
    draw_borders no
    draw_outline yes  # amplifies text if yes
    draw_shades yes  # shadecolor black
    
    #default_color FFDEAD #NavajoWhite
    # Colors
    default_color DCDCDC #Gainsboro
    color0 FFFFF0 #Ivory
    color1 FFA07A #LightSalmon
    color2 FF8C00 #Darkorange
    color3 7FFF00 #Chartreuse
    color4 778899 #LightSlateGrey
    color5 FFDEAD #NavajoWhite
    color6 00BFFF #DeepSkyBlue
    color7 48D1CC #MediumTurquoise
    color8 FFFF00 #Yellow
    color9 FF0000 #Red
    
    alignment tl  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
    gap_x 50 # left-right
    gap_y 10 # up-down
    border_inner_margin 5
    border_outer_margin 0
    
    text_buffer_size 256
    no_buffers yes  # Subtract file system buffers from used memory?
    short_units yes
    pad_percents 2
    top_name_width 7
    
    #minimum_size 900 170 # minimum_size width & height
    maximum_width 370 #170
    
    update_interval 2
    TEXT
    ${goto 10}${color4}${cpubar cpu0 25,158}${voffset 04}${goto 20}${color0}${font zekton:size=15}CPU${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu0} %${font}
    ${voffset -5}${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 180}${top mem_res 1}
    ${goto 10}${top name 2}${goto 70}${top cpu 2}${goto 120}${top mem 2}${goto 180}${top mem_res 2}
    ${goto 10}${top name 3}${goto 70}${top cpu 3}${goto 120}${top mem 3}${goto 180}${top mem_res 3}
    ${goto 10}${top name 4}${goto 70}${top cpu 4}${goto 120}${top mem 4}${goto 180}${top mem_res 4}
    ${goto 10}${top name 5}${goto 70}${top cpu 5}${goto 120}${top mem 5}${goto 180}${top mem_res 5}
    ${goto 10}${top name 6}${goto 70}${top cpu 6}${goto 120}${top mem 6}${goto 180}${top mem_res 6}
    ${goto 10}${top name 7}${goto 70}${top cpu 7}${goto 120}${top mem 7}${goto 180}${top mem_res 7}
    ${goto 10}${top name 8}${goto 70}${top cpu 8}${goto 120}${top mem 8}${goto 180}${top mem_res 8}
    ${goto 10}${top name 9}${goto 70}${top cpu 9}${goto 120}${top mem 9}${goto 180}${top mem_res 9}
    ${goto 5}${color4}${cpubar cpu2 1,170}
    ${goto 10}${color4}${membar 25,158}${voffset 04}${goto 20}${color0}${font zekton:size=15}MEM${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${memperc} %${font}
    ${voffset -5}${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}
    Last edited by Sector11; May 10th, 2012 at 03:57 AM.

  7. #19727
    Join Date
    Mar 2009
    Location
    Singapore
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    There are no tables in Conky. You have to do it manually. I suggest, although it takes a very long time to do, finding enough space between elements in the table you're trying to make and use the goto command to force the data into the same position every time.
    You can also use ${alignr xx} (where "xx" is a number) to specify distances from the right-hand margin. Useful if you want to show numbers with the decimal point in the same place.

  8. #19728
    Join Date
    Mar 2009
    Location
    Singapore
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Prescilla View Post
    how can i stop (kill) running conky, so i can test my own conky scripts?
    I've found the easiest thing is to create the following script:
    Code:
    #!/bin/bash
    #
    #  This is a script which reboots conky.
    #
    killall conky
    conky -c ~/.conky/conkyrc
    #
    exit 0
    Then save it as /usr/local/bin/conkyreboot
    Then run:
    Code:
    sudo chmod +x /usr/local/bin/conkyreboot
    After that you can press Alt+F2 and enter conkyreboot (or conkyr[Tab]).
    After that it's just "Alt+F2, Up Arrow, Enter" each time.
    Simples!

  9. #19729
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by RichardCain View Post
    I've found the easiest thing is to create the following script:
    Code:
    #!/bin/bash
    #
    #  This is a script which reboots conky.
    #
    killall conky
    conky -c ~/.conky/conkyrc
    #
    exit 0
    Then save it as /usr/local/bin/conkyreboot
    Then run:
    Code:
    sudo chmod +x /usr/local/bin/conkyreboot
    After that you can press Alt+F2 and enter conkyreboot (or conkyr[Tab]).
    After that it's just "Alt+F2, Up Arrow, Enter" each time.
    Simples!
    Actually I've found that just using this command is the easiest way to reboot Conky:

    Code:
    sudo killall -SIGUSR1 conky
    And if need be, you can just bind that to a key somewhere. Then it's one button and it reboots Conky, no matter how many you have.

  10. #19730
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by RichardCain View Post
    You can also use ${alignr xx} (where "xx" is a number) to specify distances from the right-hand margin. Useful if you want to show numbers with the decimal point in the same place.
    That's the right hand margin, yes. But, that takes the last value of the number and always aligns it to that space. For a table, using the absolute value of goto gives you more control of lining up the first character in each row. It always puts the first character in the exact space you want it to be.

    It usually helps to have Screenruler from the repositories. Always helps the design.

Page 1973 of 2301 FirstFirst ... 973147318731923196319711972197319741975198320232073 ... 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
  •