Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Conky in KDE: how to align to top-right? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hind
n00b
n00b


Joined: 12 Nov 2004
Posts: 50
Location: Haifa, Israel

PostPosted: Fri Dec 07, 2007 3:11 pm    Post subject: Conky in KDE: how to align to top-right? [solved] Reply with quote

Hi,
I'm trying to stick my conky window to the top-right corner in KDE. Problem is, after a reboot, all my windows are right where they were before the session closed, EXCEPT conky - its window is in the lower left corner.
Ok, I thought, maybe it will go back to its place if I set the alignment in .conkyrc: alignment top_right. Nope, it's now aligned to the right, but is about 50 pixels below the top of the screen.
I tried setting own_window no, didn't help - still not at the top of the screen.

Could anyone please give me a hint?

(for reference, my complete .conkyrc):
Code:

alignment top_right
own_window yes
own_window_transparent no
update_interval 1
TEXT
${color green}$sysname $kernel on $machine | ${exec whoami} @ $nodename | Up $uptime
${color yellow}CPU0:${color yellow} ${cpu cpu1}% ${cpubar cpu1}
${color yellow}CPU1:${color yellow} ${cpu cpu2}% ${cpubar cpu2}
${color }RAM:${color white} $memperc%  $mem/$memmax $membar
${color }Swap: ${color white}$swapperc% $swap/$swapmax ${swapbar}
${color }Processes: ${color }$running_processes/${color }$processes | Cputemp: ${acpitemp}C | Cpufreq: $freq HZ
$color$stippled_hr
${color }       Top     CPU     MEM
${color} ${top name 1}${top cpu 1}      ${top mem 1}
${color} ${top name 2}${top cpu 2}      ${top mem 2}
${color} ${top name 3}${top cpu 3}      ${top mem 3}
$color$stippled_hr
${color }Net Down:$color ${downspeed eth0} k/s${color } ${offset 62}Net Up:$color ${upspeed eth0} k/s


Last edited by hind on Fri Dec 07, 2007 7:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
tihkal
Apprentice
Apprentice


Joined: 28 Feb 2004
Posts: 225

PostPosted: Fri Dec 07, 2007 6:36 pm    Post subject: Reply with quote

Top right on my KDE (running compiz instead of kwin), gap_x and gap_y push it down and left a bit for knewstickeer that runs above.

Code:
alignment top_right
background yes
border_width 1
cpu_avg_samples 2
default_color grey
default_outline_color white
default_shade_color white
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 25
gap_y 30
maximum_width 400
max_port_monitor_connections 64
max_specials 512
max_user_text 16384
minimum_size 330 10
net_avg_samples 2
no_buffers yes
out_to_console no
wm_class_name Conky
#own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type overide
own_window yes
on_bottom yes
stippled_borders 2
update_interval 2
uppercase no
use_spacer yes
use_xft yes
xftalpha 0.8
xftfont  Bitstream Vera Sans Mono:size=7

TEXT
${color white}$nodename     ${alignc}$sysname $kernel ${alignr}$color${time %l:%M:%p}
${hr 2}
${color white}Uptime:$color $uptime ${color white} Load:$color $loadavg
${color white}CPU:$color ${cpu}% ${color white}${cpubar 5,85}   ${color white}Disk I/O: $color${diskio}
${color white}${cpugraph 0 32,155 104E8B 0077ff} $alignr${color white}${diskiograph 32,155 104E8B 0077ff 750}
${color white}RAM Usage:$color $mem${color white}/${color}$memmax - $memperc% ${color white}$membar
${color white}Swap Usage:$color $swap${color white}/${color}$swapmax - $swapperc% ${color white}${swapbar}
${color white}Procs:$color $processes ${color white}Run:$color $running_processes ${color white}CPU:$color
${color white}Entropy: ${color}${entropy_avail}${color white}/${color}${entropy_poolsize} ${color white}${entropy_bar}
${color white}Net Down:$color ${downspeed wlan0} k/s      ${color white}Net Up:$color ${upspeed wlan0} k/s
${color white}${downspeedgraph wlan0 32,155 104E8B 0077ff} $alignr${color white}${upspeedgraph wlan0 32,155 104E8B 0077ff}
${color white}File systems:
 ${color white}/          $color${fs_used /}/${fs_size /}${alignr}${color white}${fs_bar 5,120 /}
 ${color white}/home      $color${fs_used /home}/${fs_size /home}${alignr}${color white}${fs_bar 5,120 /home}
${color white}TOP PROCESSES:${hr 2}
${color white}Name              PID     CPU%   MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color white}Mem usage
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #0077ff}PORT(S)${alignr}#Connections
$color Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #0077ff}Inbound Connection ${alignr} Local Service/Port$color
 ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
 ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
 ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
 ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
 ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${color #0077ff}Outbound Connection ${alignr} Remote Service/Port$color
 ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
 ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
 ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
 ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
 ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${color white}EMAIL ${hr 2}$color
${texeci 60 ~/scripts/imap_status.sh}
${color white}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}
${color white}LAST EMERGE --SYNC ${hr 2}$color
${execi 180 cat /usr/portage/metadata/timestamp.chk}
${color white}FORTUNE ${hr 2}$color
${execi 120 fortune -s all| fold -w50}
Back to top
View user's profile Send private message
hind
n00b
n00b


Joined: 12 Nov 2004
Posts: 50
Location: Haifa, Israel

PostPosted: Fri Dec 07, 2007 7:01 pm    Post subject: Reply with quote

gap_x and gap_y (I set them to 0) did the trick, thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum