LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2052|回复: 14

LFS: 桌面改造完成

[复制链接]
发表于 2009-9-1 00:02:49 | 显示全部楼层 |阅读模式
这次应该超过了fvwm-crystal 原始的效果.

左边是快捷启动区, 将应用程序分为网络,图像,多媒体,即时通讯,科学相关,Wine相关,游戏和系统几大类, 点击图标会*出子类的菜单.  系统图标.. 我用了ebuilds库, 所以换上了一个gentoo的图标. 也许该用LFS的..

中间是最小化区, 程序最小化后会放在这里(Windows7 like)

右边是托盘和conky, 显示CPU频率, 温度, 电池, 内存, Average load, Disk IO, Network download 和时间.

这个桌面.. 应该会跟我很长时间

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2009-9-1 09:36:48 | 显示全部楼层
楼主很强大,可否共享下资源,供我们大家参详参详,呵呵
回复 支持 反对

使用道具 举报

发表于 2009-9-1 15:08:11 | 显示全部楼层
这妞太骚,用这壁纸不用干活了,顺便问下xwd能保存为jpg图像文件?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-1 18:42:21 | 显示全部楼层
Post by bingdian304;2022557
楼主很强大,可否共享下资源,供我们大家参详参详,呵呵


稍后我将fvwm和conky的配置文件贴上来
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-1 18:43:16 | 显示全部楼层
Post by 5000;2022688
这妞太骚,用这壁纸不用干活了,顺便问下xwd能保存为jpg图像文件?


不可以, 不过可以用gimp另存为
直接起名是懒得再用gimp改名
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-1 19:28:41 | 显示全部楼层
.conkyrc, 2行配置, 最大高度32pixels, 最大宽度230pixels

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# $Id: conky.conf 1193 2008-06-21 20:37:58Z ngarofil $

#
# Theme used by FVWM-Crystal, by Sword <swordhui@263.net>
#

use_spacer left
alignment top_right
background true
border_width 0
cpu_avg_samples 2
default_color white
default_outline_color red
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 0
gap_y 0
minimum_size 232 20
maximum_width 232
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
double_buffer yes
own_window_class Conky
own_window_type normal
own_window_transparent true
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer no
show_graph_scale no
show_graph_range no

#${battery_bar 8,40}
TEXT
${color green} ${font -adobe-helvetica-medium-r-normal-*-10-*-75-75-*-*-iso10646-*} ${freq}MHz ${color red} ${goto 55} ${acpitemp}C ${color green} BAT{battery_percent}% ${color red} ${mem}   ${color green}
${loadgraph normal 16,40} ${diskiograph normal sdb 16,40} ${downspeedgraph normal eth0 16,40} ${font -adobe-helvetica-medium-r-normal-*-22-*-75-75-*-*-iso10646-*} ${voffset -12} ${time %H:%M}
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-1 19:42:05 | 显示全部楼层
fvwm的配置文件.. 和我的系统绑定的很深, 不过比FVWM-Crystal的简单了很多 .
有几个文件我直接用的FVWM-Crystal的, 还要habak和trayer.

#
# FVWM theme for Sword's T43.  by Sword <swordhui@263.net>
#
#       modified from FVWM-Crystal.
#

#begin print some logs.
#Exec printf "Hello, world\n"

#Set image path.
ImagePath /usr/share/pixmaps:/usr/share/icons/hicolor:/usr/share/fvwm-crystal/fvwm/icons/Default:+

#set icon size.
SetEnv IconPixs "32"
SetEnv MyIconSize "$[IconPixs]x$[IconPixs]"

#position.
SetEnv YBarPos          "+3"
SetEnv YMenuPos         "40"
SetEnv XNetPos          "4"
SetEnv XGFXPos          "40"
SetEnv XMediaPos        "76"
SetEnv XIMPos           "112"
SetEnv XSCIPos          "148"
SetEnv XWinePos         "184"
SetEnv XGamePos         "219"
SetEnv XSysPos          "255"

#cursor  
CursorStyle ROOT cursor.png 0 0
#Style


DefaultIcon $[MyIconSize]/apps/def_icon.png

Style * IconTitleRelief 1
Style * MwmBorder
Style * HandleWidth 3
Style * DepressableBorder
Style * IconBox 400 3  -1 -1,\
        IconGrid 40 40, IconFill l t, IconSize -1 -1 32 32
Style * NoIconTitle
Style * IconBackgroundRelief 1
Style * IconBackgroundPadding 1

#appls.
Style Fvwm*  !Title, !Handles, Sticky,  \
        WindowListSkip, \
        BorderWidth 0

Style FvwmButtons !Title, !Handles, Sticky, \
        WindowListSkip

Style   xload   !Title, Sticky, WindowListSkip
Style   xclock  !Title, Sticky, WindowListSkip
Style   xmms    !Title, Sticky
Style   xterm   Icon    $[MyIconSize]/apps/xterm-my.png
Style   trayer  !Title, Sticky, WindowListSkip,!Handles
Style   Conky   !Title, Sticky, WindowListSkip,!Handles

#Main Menu
MenuStyle * Fvwm
MenuStyle * BorderWidth  1
MenuStyle * Animation

MenuStyle * MenuFace  TiledPixmap marble.png

#Test menu.
AddToMenu Test@boxes@^blue^
        + Xterm%$[MyIconSize]/apps/xterm-my.png%        Exec  xterm -g 100x50
        + GoogleEarth%$[MyIconSize]/apps/def_icon.png%  Exec  /home/sword/google-earth/googleearth
        + Poweroff%$[MyIconSize]/apps/def_icon.png%     Exec  xterm -e sudo telinit 0
        + Reboot%$[MyIconSize]/apps/def_icon.png%       Exec  xterm -e sudo telinit 6
        + RootMenu  Popup MenuFvwmRoot
        + BmpMenu  Popup TestBmpMenu

AddToMenu TestBmpMenu
        + DynamicPopupAction Function MakePngIconMenu

AddToFunc MakePngIconMenu
        + I DestroyMenu recreate TestBmpMenu
        + I AddToMenu TestBmpMenu
        + I PipeRead    'for i in /usr/share/fvwm-crystal/fvwm/icons/Default/48x48/apps/*; \
                        do \
                                name=`basename $i`;\
                                echo "+ $name%$[MyIconSize]/apps/$name% Exec echo $i";\
                        done'
#bind key F1.
Key F1 R A Menu Test Root c c
Key F2 R A WindowList Root c c

Mouse 3 R A Exec xterm -g 100x50
Mouse 1 R A Menu Test
Mouse 2 R A Exec firefox

#minimize.
Mouse 3 T A Iconify True
Mouse 3 I A Iconify False
Mouse 1 I A Iconify False

#place.
Mouse 1 1 N Iconify True
Mouse 1 2 N Close
Mouse 1 4 N Maximize
Mouse 1 6 N WindowShade
Mouse 1 8 N Stick

#FVWM-Crystal
SetEnv Icon_Theme "Default"
SetEnv FVWM_SYSTEMDIR "/usr/share/fvwm-crystal/fvwm"


#color defines
Read colorset-definition
Read Original.cs

# Includes and FVWM modules {{{1
Module FvwmCommandS

# Desktop settings {{{1
EdgeScroll      0       0
HideGeometryWindow      Move, Resize
OpaqueMoveSize  100
EdgeThickness   1

SetEnv AppPanelGeom "3"

#menus for Snes9x games
AddToMenu MenuSnes9xGame
        + DynamicPopupAction Function MakeSnes9xGame

AddToFunc MakeSnes9xGame
        + I DestroyMenu recreate MenuSnes9xGame
        + I AddToMenu MenuSnes9xGame
        + I PipeRead    'for i in /home/sword/sfc_roms/*.gz; \
                        do \
                                name=`basename $i`;\
                                echo "+ $name%$[MyIconSize]/apps/$name% Exec /usr/games/bin/osnes9x $i";\
                        done'


#Application-Menu: Net Tools/Browser/mail client
AddToMenu MenuNet
        + firefox%$[MyIconSize]/apps/firefox-my.png%            Exec firefox
        + links%$[MyIconSize]/apps/links2.png%                  Exec links -g

#Application-Menu: GFX
AddToMenu MenuGFX
        + gimp%$[MyIconSize]/apps/gimp.png%                     Exec gimp
        + gliv%$[MyIconSize]/apps/gimp.png%                     Exec gliv
        + ida%$[MyIconSize]/apps/ida.png%                       Exec ida

#Application-Menu: Media(Audio,Video)
AddToMenu MenuMedia
        + xmms%$[MyIconSize]/apps/xmms-my.png%                  Exec xmms

#Application-Menu: IM
AddToMenu MenuIM
        + pidgin%$[MyIconSize]/apps/pidgin.png%                 Exec pidgin
        + skype%$[MyIconSize]/apps/skype.png%                   Exec skype

#Application-Menu: Sci
AddToMenu MenuSCI
        + celestia%$[MyIconSize]/apps/celestia.png%             Exec celestia
        + xcalce%$[MyIconSize]/apps/skype.png%                  Exec xcalc

#Application-Menu: Wine
AddToMenu MenuWine
        + notepad%$[MyIconSize]/apps/wine.png%                  Exec notepad
        + regedit%$[MyIconSize]/apps/wine.png%                  Exec regedit
        + winecfg%$[MyIconSize]/apps/wine.png%                  Exec winecfg
        + SourceInsight%$[MyIconSize]/apps/wine.png%            Exec wine ~/.wine/drive_c/Program\ Files/Source\ Insight\ 3/Insight3.exe
#Application-Menu: Games
AddToMenu MenuGames
        + frozen-bubble%$[MyIconSize]/apps/frozen-bubble.png%   Exec /usr/games/bin/frozen-bubble
        + barrage%$[MyIconSize]/apps/barrage.png%               Exec /usr/games/bin/barrage
        + snes9x%$[MyIconSize]/apps/snes9x.png%                 Popup MenuSnes9xGame
        + mine%$[MyIconSize]/apps/wine.png%                     Exec winemine

#Application-Menu: Sys
AddToMenu MenuSys
        + gentoo%$[MyIconSize]/apps/gentoo.png%                 Exec gentoo
        + aterm%$[MyIconSize]/apps/aterm.png%                   Exec aterm

#Application Menu.
All (ApplicationPanel) Close
DestroyModuleConfig ApplicationPanel: *
*ApplicationPanel: Geometry +$[AppPanelGeom]$[YBarPos]
*ApplicationPanel: BoxSize smart
*ApplicationPanel: ActiveColorset $[cs_panel_active]
*ApplicationPanel: Colorset $[cs_panel_inactive]
*ApplicationPanel: Rows 1
*ApplicationPanel: Padding 1 1
*ApplicationPanel: Frame 1
*ApplicationPanel: Pixmap "none"

*ApplicationPanel: (Icon $[MyIconSize]/apps/firefox-my.png, \
        Action (Mouse 3) `Exec firefox`, \
        Action (Mouse 1) `Menu MenuNet root $[XNetPos]p $[YMenuPos]p` \
)
#GFX
*ApplicationPanel: (Icon $[MyIconSize]/apps/gimp.png, \
        Action (Mouse 3) `Exec gimp`, \
        Action (Mouse 1) `Menu MenuGFX root $[XGFXPos]p $[YMenuPos]p` \
)

#Media (Audio, Video)
*ApplicationPanel: (Icon $[MyIconSize]/apps/xmms-my.png, \
        Action (Mouse 3) `Exec xmms`, \
        Action (Mouse 1) `Menu MenuMedia root $[XMediaPos]p $[YMenuPos]p` \
)

#IM/Networks menu.
*ApplicationPanel: (Icon $[MyIconSize]/apps/pidgin.png, \
        Action (Mouse 3) `Exec pidgin`, \
        Action (Mouse 1) `Menu MenuIM root $[XIMPos]p $[YMenuPos]p` \
)

#SCI menu.
*ApplicationPanel: (Icon $[MyIconSize]/apps/celestia.png, \
        Action (Mouse 3) `Exec celestia`, \
        Action (Mouse 1) `Menu MenuSCI root $[XSCIPos]p $[YMenuPos]p` \
)


#Wine menu.
*ApplicationPanel: (Icon $[MyIconSize]/apps/wine.png, \
        Action (Mouse 1) `Menu MenuWine root $[XWinePos]p $[YMenuPos]p` \
)

#Games Menu
*ApplicationPanel: (Icon $[MyIconSize]/apps/frozen-bubble.png, \
        Action (Mouse 3) `Exec /usr/games/bin/frozen-bubble`, \
        Action (Mouse 1) `Menu MenuGames root $[XGamePos]p $[YMenuPos]p` \
)

#System Menu
*ApplicationPanel: (Icon $[MyIconSize]/apps/gentoolinux.png, \
        Action (Mouse 3) `Exec gentoo`, \
        Action (Mouse 1) `Menu MenuSys root $[XSysPos]p $[YMenuPos]p` \
)

# Settings of trayer {{{2
DestroyFunc NotificationArea-Trayer
AddToFunc NotificationArea-Trayer
+ I SetEnv trayer_width_t "request"
+ I SetEnv trayer_heigth_t "pixel"
+ I SetEnv trayer_edge "top"
+ I SetEnv trayer_align "right"
+ I SetEnv trayer_marge "240"
+ I SetEnv trayer_dist "3"
+ I SetEnv trayer_width_w ""

# Settings of Trayer {{{1
AddToFunc ExitFunction I Exec exec killall trayer

DestroyFunc TrayerPanel
AddToFunc TrayerPanel
+ I Exec exec trayer \
--SetDockType false \
--widthtype $[trayer_width_t] \
--heighttype $[trayer_heigth_t] \
--height 32 \
--edge $[trayer_edge] \
--align $[trayer_align] \
--transparent true \
--SetPartialStrut true \
--alpha $[TrayerAlpha] \
--tint $[TrayerTint] \
--margin $[trayer_marge] \
--distance $[trayer_dist] \
$[trayer_width_w]

#Init functions.

DestroyFunc InitFunction
AddToFunc InitFunction
#       + I Module FvwmBanner
        + I Echo "Init Function"
        + I Exec pidgin

DestroyFunc StartFunction
AddToFunc StartFunction
        + I Echo "Start Function"
        + I Exec habak /home/sword/wallpapers
        + I Module FvwmButtons ApplicationPanel
        + I NotificationArea-Trayer
        + I TrayerPanel
        + I Exec conky -o -y 0 -d

DestroyFunc RestartFunction
AddToFunc RestartFunction
        + I Echo "Restart"

DestroyFunc SessionInitFunction
AddToFunc SessionInitFunction
        + I Echo "Session Init"

DestroyFunc SessionRestartFunction
AddToFunc SessionRestartFunction
        + I Echo "Session Restart"

DestroyFunc ExitFunction
AddToFunc ExitFunction
        + I Echo "Exit Function"
        + I Exec killall -9 trayer
        + I Exec killall -9 conky


如果玩出新花样可以交流交流
回复 支持 反对

使用道具 举报

发表于 2009-9-3 21:14:58 | 显示全部楼层
不錯不錯,俺的桌面依然簡陋。。。:(
回复 支持 反对

使用道具 举报

发表于 2009-9-4 14:45:01 | 显示全部楼层
3Q,拜读中!
回复 支持 反对

使用道具 举报

发表于 2009-9-9 22:23:01 | 显示全部楼层
口水都来了,看到高手把桌面搞得这么漂亮真是羡慕!
我没有用过平铺式桌面。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表