用openbox,conky的朋友进来看看,谢谢

其他Linux/Unix/BSD/OSX等发行版讨论
回复
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

用openbox,conky的朋友进来看看,谢谢

#1

帖子 liwangli » 2009-08-15 15:51

从gnome换到了openbox,装上了conky,一番调教,终于差不多了。但canky刚启动时却出现如图的问题。过一会儿不知怎么就正常了。。。有谁知道怎么回事吗?谢谢!
PS:用的gdm启动的
附件
sendpix0.jpg
上次由 liwangli 在 2009-08-15 20:49,总共编辑 1 次。
头像
Angus_Yann
帖子: 1736
注册时间: 2008-03-20 23:29
来自: ZJU

Re: 用openbox,canky的朋友进来看看,谢谢

#2

帖子 Angus_Yann » 2009-08-15 15:54

有嘛问题? :em23
不过楼主这字体 :em27
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

Re: 用openbox,canky的朋友进来看看,谢谢

#3

帖子 liwangli » 2009-08-15 16:29

Angus_Yann 写了:有嘛问题? :em23
不过楼主这字体 :em27
canky处于前台把FF挡住了一部分啊。。。正常不应该这样吧
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 用openbox,canky的朋友进来看看,谢谢

#4

帖子 adam8157 » 2009-08-15 16:45

代码: 全选

#background
background yes
试试?
你的配置都不贴出来 怎么给你看嘛
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

Re: 用openbox,canky的朋友进来看看,谢谢

#5

帖子 liwangli » 2009-08-15 17:00

adaml 写了:

代码: 全选

#background
background yes
试试?
你的配置都不贴出来 怎么给你看嘛
试了无用。。。就是一开始登录的时候这样。过一阵不知为啥就好了。。。

代码: 全选

# 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 yes

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 300

# 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% $mem/$memmax${color lightgrey} ${color  #dcff82}${membar}
${color lightgrey}Swap Usage: $color$swapperc%${color lightgrey} ${color  #dcff82}${swapbar}
$color$stippled_hr${color lightgrey}
${color #dcff82}${cpugraph 000000 5000a0}${color lightgrey}
${color lightgrey}Core0:$color $color${freq_g cpu0}G${color lightgrey} ${execi 8 sensors | grep -A 1 'Core 0' | cut -c15-18 | sed '/^$/d'} °C${color grey} @$color ${cpu cpu1}% ${alignr}${cpubar cpu1 6,90}
${color lightgrey}Core1:$color $color${freq_g cpu0}G${color lightgrey} ${execi 8 sensors | grep -A 1 'Core 1' | cut -c15-18 | sed '/^$/d'} °C${color grey} @$color ${cpu cpu2}% ${alignr}${cpubar cpu2 6,90}${color grey}
${color grey}WDC WD6400AAKS-22A7B2:$color ${exec echo linux | sudo -S hddtemp /dev/sda | cut -c34-35} °C
$color$stippled_hr
${color  #ddaa00}Networking:
${color lightgrey}Down:$color ${downspeed eth0} ${color grey}        ${color  lightgrey}Up:$color ${upspeed eth0} ${color grey}              
${color #dcff82}${downspeedgraph eth0 20,120 ff0000 0000ff}	  ${color #dcff82}${upspeedgraph eth0 20,120 0000ff ff0000}
${color lightgrey}TOTAL: $color${totaldown eth0}	         ${color lightgrey}TOTAL: $color${totalup eth0}
$color$stippled_hr
${color  #ddaa00}File systems:
${color}/     ${fs_used_perc /}% $color${fs_used /}/${fs_size /} ${color  #dcff82}${fs_bar /}
${color}/home ${fs_used_perc /home}% $color${fs_used /home}/${fs_size /home} ${color  #dcff82}${fs_bar /home}
$color$stippled_hr
${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}
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

Re: 用openbox,canky的朋友进来看看,谢谢

#6

帖子 liwangli » 2009-08-15 20:45

主要表现为:如果是加在openbox的启动脚本里启动的,就会出现上述现象。但如果是进系统后开xterm手动启动,就正常。
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 用openbox,conky的朋友进来看看,谢谢

#7

帖子 adam8157 » 2009-08-15 21:37

呵呵 那脚本里conky加上sleep 3 之类的咯
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

Re: 用openbox,conky的朋友进来看看,谢谢

#8

帖子 liwangli » 2009-08-15 21:42

adaml 写了:呵呵 那脚本里conky加上sleep 3 之类的咯
这是为啥?加在conky启动的前面还是后面?
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 用openbox,conky的朋友进来看看,谢谢

#9

帖子 adam8157 » 2009-08-15 21:53

conky改成 (sleep 3 && conky) & 类似这样 意思就是3秒后再启动 试试吧

另外 不是说own_window yes这一句和gnome的鹦鹉螺不兼容么 你改成no试试
头像
liwangli
帖子: 262
注册时间: 2008-02-12 19:47

Re: 用openbox,conky的朋友进来看看,谢谢

#10

帖子 liwangli » 2009-08-15 22:09

adaml 写了:conky改成 (sleep 3 && conky) & 类似这样 意思就是3秒后再启动 试试吧

另外 不是说own_window yes这一句和gnome的鹦鹉螺不兼容么 你改成no试试
没改下面那个,只是用了延迟3s就好了,谢谢啊 :em01

另外,换到openbox后(用gdm启动openbox-session),xterm和gnome-terminal启动后提示符都变成了“bash-4.0$”这样的。不知为啥不能加载/etc/profile.bash里的环境变量设置了。我把‘. /etc/profile.bash’加到家目录下的.profile里了,结果无用(但同样加在里的的“. ~/.bashrc”却好用)。在终端中手动输入‘. /etc/profile.bash’后提示符变回正常。但关了再开又完了。。。但如果启动的不是openbox-session而是openbox的话,就无此问题。。。两个区别到底是什么,加载文件上有不一样的地方?
回复