You are not logged in.

#1 2008-10-07 23:24:23

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Conky inside GNU/Screen session

hi! i was looking around but found nothing similar to what i want...

i was searching for a possibility of use conky INSIDE a terminal instead of the root window (aka "desktop") because i barely see my wallpaper, it's always covered with urxvtc sessions in dwm, so i have a detailed bottom bar inside dwm bottom bar, but i like to trim it to say audio volume + clock and have a conky or another similar program inside a gnu/screen "tab" showing my system activity, i surely want disk I/O usage and free/used space for example

the thing with conky-cli is that it behaves like this: (not cleaning the screen with every refresh)

[aleyscha@aleyscha 39 ~]$ conky
5d 12h/12C | 12%/36.0C/2/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 0k/0k | 0/0 | 20:22 07/10/2008
5d 12h/12C | 20%/36.0C/2/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 16k/7k | 0/0 | 20:22 07/10/2008
5d 12h/12C | 11%/36.0C/1/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 35k/14k | 0/0 | 20:22 07/10/2008
5d 12h/12C | 12%/36.0C/3/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 39k/14k | 0/0 | 20:22 07/10/2008
^C5d 12h/12C | 16%/36.0C/1/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 39k/14k | 0/0 | 20:22 07/10/2008
Conky: received SIGINT or SIGTERM to terminate. bye!
[aleyscha@aleyscha 40 ~]$

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2008-10-08 00:06:54

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Conky inside GNU/Screen session

How about making a screen region / horizontal split. Make it 1 line. And run conky-cli in there.

Offline

#3 2008-10-08 00:28:44

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Conky inside GNU/Screen session

but i already have a 1 line status bar with scripts, the thing i want is a full terminal size info app to show info about disk IO and space used/free, like htop, but instead of process info i want more disk space info


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#4 2008-10-09 04:29:39

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: Conky inside GNU/Screen session

I want that too.

Offline

#5 2008-10-09 10:36:59

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Conky inside GNU/Screen session

maybe what dmz and i want is some way to clear the screen between conky refreshs, but i don't know how, if i make a script like this

conky
clr

it only clears the screen one time


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#6 2008-10-09 10:50:33

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Conky inside GNU/Screen session

LOL, DONE!!

${execp clear} was the answer

here's my conky(cli) rc file big_smile (needs work... i'll stole some from your conky configs and screenshots thread, huaahahahaha)

background no
out_to_console yes
update_interval 2.0
total_run_times 0
uppercase no

TEXT
${execp clear}

${time %l:%M:%p}
Uptime: $uptime
CPU: ${cpu}% ${cpubar 5,85}   Disk I/O: ${diskio}

RAM Usage: $mem/$memmax - $memperc%
Swap Usage: $swap/$swapmax - $swapperc%

Net Down: ${downspeed eth0} k/s      Net Up: ${upspeed eth0} k/s

File systems:
 /          ${fs_used /}/${fs_size /}${alignr}${fs_bar 5,120 /}
 /home      ${fs_used /home}/${fs_size /home}${alignr}${fs_bar 5,120 /home}
 /sda1      ${fs_used /sda1}/${fs_size /sda1}${alignr}${fs_bar 5,120 /sda1}
 /sda6      ${fs_used /sda6}/${fs_size /sda6}${alignr}${fs_bar 5,120 /sda6}
 /downloads ${fs_used /downloads}/${fs_size /downloads}${alignr}${fs_bar 5,120 /downloads}
 /sdb5      ${fs_used /sdb5}/${fs_size /sdb5}${alignr}${fs_bar 5,120 /sdb5}
 /sdc1      ${fs_used /sdc1}/${fs_size /sdc1}${alignr}${fs_bar 5,120 /sdc1}
 /sdd1      ${fs_used /sdd1}/${fs_size /sdd1}${alignr}${fs_bar 5,120 /sdd1}

Top Processes:
Name              PID     CPU%   MEM%
 ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
 ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
 ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
 ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
Mem usage
 ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
 ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
 ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
 ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

Board footer

Powered by FluxBB