用openbox,conky的朋友进来看看,谢谢
- liwangli
- 帖子: 262
- 注册时间: 2008-02-12 19:47
用openbox,conky的朋友进来看看,谢谢
从gnome换到了openbox,装上了conky,一番调教,终于差不多了。但canky刚启动时却出现如图的问题。过一会儿不知怎么就正常了。。。有谁知道怎么回事吗?谢谢!
PS:用的gdm启动的
PS:用的gdm启动的
上次由 liwangli 在 2009-08-15 20:49,总共编辑 1 次。
- Angus_Yann
- 帖子: 1736
- 注册时间: 2008-03-20 23:29
- 来自: ZJU
Re: 用openbox,canky的朋友进来看看,谢谢
有嘛问题?
不过楼主这字体
不过楼主这字体
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
- liwangli
- 帖子: 262
- 注册时间: 2008-02-12 19:47
Re: 用openbox,canky的朋友进来看看,谢谢
canky处于前台把FF挡住了一部分啊。。。正常不应该这样吧Angus_Yann 写了:有嘛问题?
不过楼主这字体
- adam8157
- 帖子: 2794
- 注册时间: 2009-03-05 16:31
- 联系:
Re: 用openbox,canky的朋友进来看看,谢谢
代码: 全选
#background
background yes
你的配置都不贴出来 怎么给你看嘛
- liwangli
- 帖子: 262
- 注册时间: 2008-02-12 19:47
Re: 用openbox,canky的朋友进来看看,谢谢
试了无用。。。就是一开始登录的时候这样。过一阵不知为啥就好了。。。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的朋友进来看看,谢谢
主要表现为:如果是加在openbox的启动脚本里启动的,就会出现上述现象。但如果是进系统后开xterm手动启动,就正常。
- adam8157
- 帖子: 2794
- 注册时间: 2009-03-05 16:31
- 联系:
- liwangli
- 帖子: 262
- 注册时间: 2008-02-12 19:47
Re: 用openbox,conky的朋友进来看看,谢谢
这是为啥?加在conky启动的前面还是后面?adaml 写了:呵呵 那脚本里conky加上sleep 3 之类的咯
- adam8157
- 帖子: 2794
- 注册时间: 2009-03-05 16:31
- 联系:
Re: 用openbox,conky的朋友进来看看,谢谢
conky改成 (sleep 3 && conky) & 类似这样 意思就是3秒后再启动 试试吧
另外 不是说own_window yes这一句和gnome的鹦鹉螺不兼容么 你改成no试试
另外 不是说own_window yes这一句和gnome的鹦鹉螺不兼容么 你改成no试试
- liwangli
- 帖子: 262
- 注册时间: 2008-02-12 19:47
Re: 用openbox,conky的朋友进来看看,谢谢
没改下面那个,只是用了延迟3s就好了,谢谢啊adaml 写了:conky改成 (sleep 3 && conky) & 类似这样 意思就是3秒后再启动 试试吧
另外 不是说own_window yes这一句和gnome的鹦鹉螺不兼容么 你改成no试试
另外,换到openbox后(用gdm启动openbox-session),xterm和gnome-terminal启动后提示符都变成了“bash-4.0$”这样的。不知为啥不能加载/etc/profile.bash里的环境变量设置了。我把‘. /etc/profile.bash’加到家目录下的.profile里了,结果无用(但同样加在里的的“. ~/.bashrc”却好用)。在终端中手动输入‘. /etc/profile.bash’后提示符变回正常。但关了再开又完了。。。但如果启动的不是openbox-session而是openbox的话,就无此问题。。。两个区别到底是什么,加载文件上有不一样的地方?