You are not logged in.

#1 2010-07-08 02:04:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

conky config question - running in multiple columns?

Is it possible to display conky's output in rows rather than in columns? Example: I want to more or less cut my config in 1/2 and have the temps+ everything under them appear to the right of the CPU usage bit.

here.jpg

# Swap Usage:$color $swapperc%${color lightgrey}

# the ${template x x x} command uses /sys/bus/platform/devices
# for this to work you need both lm-sensors and hddtemp
# get both from main repos

# set to yes if you want Conky to be forked in the background
background no

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
#
#
#own_window_transparent no
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

#on_bottom yes

# Update interval in seconds
update_interval 2

# Create own window instead of using desktop (required in nautilus)
#own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 250 5
maximum_width 258

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
#alignment top_right
alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 12
gap_y 37
# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

TEXT
${color #ddaa00}$nodename$color
$sysname $kernel on $machine
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg${color lightgrey}
RAM Usage:$color $memperc% or $mem of $memmax${color lightgrey}
$color$stippled_hr${color lightgrey}
Intel Xeon X3360 @ $color${freq_g} GHz${color lightgrey} (Vcc: ${execi 8 sensors | grep Vcc | cut -c15-19} V)
${color black}${cpugraph 000000 5000a0}${color lightgrey}
 ${color lightgrey}Core0:$color ${platform coretemp.0 temp 1} °C${color grey} @$color ${cpu cpu1}%   ${alignr}${cpubar cpu1 6,120}
 ${color lightgrey}Core1:$color ${platform coretemp.1 temp 1} °C${color grey} @$color ${cpu cpu2}%   ${alignr}${cpubar cpu2 6,120}
 ${color lightgrey}Core2:$color ${platform coretemp.2 temp 1} °C${color grey} @$color ${cpu cpu3}%   ${alignr}${cpubar cpu3 6,120}
 ${color lightgrey}Core3:$color ${platform coretemp.3 temp 1} °C${color grey} @$color ${cpu cpu4}%   ${alignr}${cpubar cpu4 6,120}${color grey}
${color grey}   CPU:$color ${platform it87.656 temp 2} °C   ${color grey}    Fan1:$color ${platform it87.656 fan 1}${color grey} RPM @ $color${execi 8 cat /sys/class/hwmon/hwmon4/device/pwm1}
$color$stippled_hr${color lightgrey}

${color grey} GPU:$color ${execi 8 nvidia-settings -q gpucoretemp | grep nov | cut -c42-43} °C    ${color grey} M/B:$color ${platform it87.656 temp 1} °C     
${color grey} sda:$color ${execi 300 sudo hddtemp /dev/sda | cut -c25-26} °C    ${color grey} sdb:$color ${execi 300 sudo hddtemp /dev/sdb | cut -c34-35} °C    ${color grey} sdc:$color ${execi 300 sudo hddtemp /dev/sdc | cut -c33-34} °C
$color$stippled_hr${color lightgrey}
${color slate grey} /dev/shm: ${color }${fs_used_perc  /dev/shm} %  ${fs_bar /dev/shm}
${color grey}$stippled_hr${color light grey}
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2010-07-08 02:37:24

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: conky config question - running in multiple columns?

do you mean like this?
http://yfrog.com/izconkyrowp
if so, you need to use multiple instances of conky.  I can post the files if you are interested.


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#3 2010-07-08 07:25:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: conky config question - running in multiple columns?

Please do!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2010-07-08 19:04:36

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: conky config question - running in multiple columns?

There are 4 files, so I am running 4 instances of conky.  I will post the files from left to right. 

background        no
update_interval        1.0
double_buffer        yes

use_xft            no
xftfont            Monospace:size=10
xftalpha        0.8

own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager
#on_bottom        yes

minimum_size        320 42
draw_shades        no
draw_outline        yes
draw_borders        yes
draw_graph_borders    no
stippled_borders    0
border_margin        0
border_width        0

default_color        white
default_shade_color    black
default_outline_color    black

alignment        top_left
gap_x            10
gap_y            875
#gap_y            10

no_buffers        yes

TEXT
Toshibuntu
${hr}
${color #F09000}Uptime${color #707070}:$color $uptime 
${color #F09000}Load${color #707070}:$color $loadavg
${color #F09000}Battery${color #707070}:${color white} ${execi 15 /usr/bin/bat.pl}% ${color white} ${execibar 15 /usr/bin/bat.pl}
${color #F09000}CPU${color #707070}:${color white} ${cpu}% ${freq}MHz ${color #F09000}Temp${color #707070}:$color ${acpitemp} F${color grey}        
${cpugraph 000000 5000a0}
${color #F09000}Memory${color #707070}:${color white} ${memperc}%  $mem/$memmax        
${memgraph 000000 5000a0}
background        no
update_interval        1.0
double_buffer        yes

use_xft            no
xftfont            Monospace:size=10
xftalpha        0.8

own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager
#on_bottom        yes

minimum_size        250 42
draw_shades        no
draw_outline        yes
draw_borders        no
draw_graph_borders    no
stippled_borders    0
border_margin        0
border_width        0

default_color        white
default_shade_color    black
default_outline_color    black

alignment        top_left
gap_x            332
gap_y            875
#gap_y            10

no_buffers        yes


TEXT
${color white}Processes
${hr}
 ${color}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

 ${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
background        no
update_interval        1.0
double_buffer        yes

use_xft            no
xftfont            Monospace:size=10
xftalpha        0.8

own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager
#on_bottom        yes

minimum_size        275 42
draw_shades        no
draw_outline        yes
draw_borders        no
draw_graph_borders    no
stippled_borders    0
border_margin        0
border_width        0

default_color        white
default_shade_color    black
default_outline_color    black

alignment        top_left
gap_x            580
gap_y            875
#gap_y            10

no_buffers        yes

TEXT
 Networking
${hr}
 ${color #F09000}wlan0${color #707070}:${color white} ${addr wlan0}
 ${color #F09000}Downspeed${color #707070}: ${color white}${downspeed wlan0}k      ${color #F09000}Upspeed${color #707070}: ${color white}${upspeed wlan0}k
 ${color black}${downspeedgraph wlan0 30,90 000000 5000a0} $alignr${color black}${upspeedgraph wlan0 30,90 000000 5000a0}
 ${color #F09000}eth0${color #707070}:${color white} ${addr eth0}
 ${color #F09000}Downspeed${color #707070}: ${color white}${downspeed eth0}k      ${color #F09000}Upspeed${color #707070}: ${color white}${upspeed eth0}k
 ${color black}${downspeedgraph eth0 30,90 000000 5000a0} $alignr${color black}${upspeedgraph eth0 30,90 000000 5000a0}
background        no
update_interval        1.0
double_buffer        yes

use_xft            no
xftfont            Monospace:size=10
xftalpha        0.8

own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager
#on_bottom        yes

minimum_size        415 42
draw_shades        no
draw_outline        yes
draw_borders        yes
draw_graph_borders    no
stippled_borders    0
border_margin        0
border_width        0

default_color        white
default_shade_color    black
default_outline_color    black

alignment        top_left
gap_x            855
gap_y            875
#gap_y            10

no_buffers        yes


TEXT
 ${color white}File Systems
${hr}
 ${if_mounted /}${color #F09000}/${color #707070}:    $color${fs_used /}/${fs_size /} ${color #F09000}Free${color #707070}: $color${fs_free /} ${fs_bar /}$endif
 ${if_mounted /media/Elements}${color #F09000}Elements${color #707070}: $color${fs_used /media/Elements}/${fs_size /media/Elements}   ${color #F09000}Free${color #707070}: $color${fs_free /media/Elements} ${fs_bar /media/Elements}$endif
 ${if_mounted /media/data}${color #F09000}data${color #707070}: $color${fs_used /media/data}/${fs_size /media/data} ${color #F09000}Free${color #707070}: $color${fs_free /media/data} ${fs_bar /media/data}$endif
 ${if_mounted /media/host}${color #F09000}host${color #707070}: $color${fs_used /media/host}/${fs_size /media/host} ${color #F09000}Free${color #707070}: $color${fs_free /media/host} ${fs_bar /media/host}$endif
 ${if_mounted /media/studio}${color #f09000}studio${color #707070}: $color${fs_used /media/studio}/${fs_size /media/studio} ${color #F09000}Free${color #707070}: $color${fs_free /media/studio} ${fs_bar /media/studio}$endif
 ${if_mounted /media/elements}${color #f09000}elements${color #707070}: $color${fs_used /media/elements}/${fs_size /media/elements} ${color #F09000}Free${color #707070}: $color${fs_free /media/elements} ${fs_bar /media/elements}$endif
 ${if_mounted /mnt/ubuntu}${color #F09000}ubuntu${color #707070}:  $color${fs_used /mnt/ubuntu}/${fs_size /mnt/ubuntu}   ${color #F09000}Free${color #707070}: $color${fs_free /mnt/ubuntu} ${fs_bar /mnt/ubuntu}$endif

I put the 4 files in my home directory and named them
.conkyrc
.conkyrctop
.conkyrcnet
.conkyrcfile
I use the following bash script to start them all

#!/bin/bash
conky -c ~/.conkyrc &
conky -c ~/.conkyrctop &
conky -c ~/.conkyrcnet &
conky -c ~/.conkyrcfile &

Only the script needs to be executable.  Also the files are sized for 1280x1024 so if you use a different resolution you will have to change gap_y values and minimum_size values to accomodate.

Last edited by empthollow (2010-07-08 19:06:59)


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#5 2010-07-08 19:56:30

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: conky config question - running in multiple columns?

you could also do a variation on this post; would take some trial and error i think.

Offline

Board footer

Powered by FluxBB