开始尝试配置fvwm,他先给我一个下马威!

各种窗口管理器和美化相关
头像
monk
帖子: 19507
注册时间: 2010-01-28 10:45

Re: 开始尝试配置fvwm,他先给我一个下马威!

#17

帖子 monk » 2011-08-31 21:34

来看神器是怎么炼成的

*********宁静致远*********
如果我说的有什么不对,请看签名第一行
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

Re: 开始尝试配置fvwm,他先给我一个下马威!

#18

帖子 ljj_jjl2008 » 2011-09-01 9:39

抓图39.png
为了满足大家的围观欲望,开始汇报最新进展和成果:
1,sakura页签不能切换的原因找到了,是因为文件 ~/.gtkrc-2.0 的问题。原来我是采用的类似kde4风格的配置(从1楼图片上面应该可以看出来),可能哪个地方没有设置好。
我装的WM比较多,所以我又偷懒了:现在直接复制afterstep的~/.gtkrc-2.0-afterstep到 ~/.gtkrc-2.0,把基于gtk+的程序的风格改成afterstep的了。

不过现在有一个新问题:菜单有些项目,字体颜色和底色非常接近,看起来比较吃力。
抓图40.png
~/.gtkrc:

代码: 全选

# Edit these colors and fonts however you like.
style "default"
{
	fg[NORMAL]         =    "#E6E6E6"   	
	fg[ACTIVE]         =    "#E6E6E6"   	
	fg[PRELIGHT]       =    "#E6E6E6"	
	fg[SELECTED]       =    "#F5F8FA"      	
	fg[INSENSITIVE]	   =    "#262D33"    	
	bg[NORMAL]         =   	"#5C5B66"       	
	bg[ACTIVE]         =   	"#5B6665"   		
	bg[PRELIGHT]       =  	"#8A8899"		
	bg[SELECTED]       =  	"#665646"	  	
	bg[INSENSITIVE]    = 	"#5C5B66"   		
	text[NORMAL]       = 	"#E6E6E6"   	
	text[ACTIVE]       = 	"#E6E6E6"   	
	text[PRELIGHT]     = 	"#E6E6E6"	
	text[SELECTED]     = 	"#F5F8FA"		
	text[INSENSITIVE]  = 	"#E6E6E6"   	

	base[NORMAL]       = 	"#5C5B66"   		
	base[ACTIVE]       = 	"#5B6665"   		
	base[PRELIGHT]     = 	"#8A8899"		
	base[SELECTED]     = 	"#665646"	  	
	base[INSENSITIVE]  = 	"#5C5B66"   		


	engine "clearlooks"  {
	       menubarstyle      = 2       # 0 = flat, 1 = sunken, 2 = flat gradient
               menuitemstyle     = 1       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
               listviewitemstyle = 1       # 0 = flat, 1 = 3d-ish (gradient)
               progressbarstyle  = 0       # 0 = candy bar, 1 = flat
	}
}

class "GtkWidget" style "default"

~/.gtkrc-2.0

代码: 全选

# Uncomment and Edit the next line to enable your preferred gtk icon theme.
gtk-icon-theme-name = "Tango"

# Edit these colors and fonts however you like.
style "default"
{
	fg[NORMAL]         =    "#E6E6E6"   	
	fg[ACTIVE]         =    "#E6E6E6"   	
	fg[PRELIGHT]       =    "#E6E6E6"	
	fg[SELECTED]       =    "#F5F8FA"      	
	fg[INSENSITIVE]	   =    "#262D33"    	   	
	bg[NORMAL]	   =	"#34404C" #*** buttons, menu, tabs and apps background
	bg[ACTIVE]         =   	"#5B6665" # tabs not selected, buttons pressed but not prelight 
	bg[PRELIGHT]       =  	"#8A8899" # button mouseover, just like wharf		
	bg[SELECTED]       =  	"#665646" # ???	  	
	bg[INSENSITIVE]    = 	"#5C5B66" # ???   		

	text[NORMAL]       =    "#000000" # text color while typing, non negociable
#	text[NORMAL]       =    "InactiveText1" #*** text color while typing
	text[ACTIVE]       = 	"#E6E6E6"   	
	text[PRELIGHT]     = 	"#E6E6E6"	
	text[SELECTED]     = 	"#F5F8FA"		
	text[INSENSITIVE]  = 	"#E6E6E6"   	

	base[NORMAL]       = 	"#ffffff" # text background while typing, non negociable
#	base[NORMAL]       = 	"Inactive1" #*** text background while typing
	base[ACTIVE]       = 	"#5C5B66" # selected text not focused  		
	base[ACTIVE]       = 	"#5B6665" # selected text not focused  		
	base[PRELIGHT]     = 	"#5C5B66" #???		
	base[SELECTED]     = 	"#665646" # selected text in text area	  	
	base[INSENSITIVE]  = 	"#5C5B66" # ???  		


	GtkButton::default_border = { 0, 0, 0, 0 }
  	GtkButton::default_outside_border = { 0, 0, 0, 0 }
  	GtkRange::trough_border = 0

	GtkWidget::focus_padding = 1
	
        GtkRange::slider_width = 15
        GtkRange::stepper_size = 15
        GtkScrollbar::min_slider_length = 30
        GtkCheckButton::indicator_size = 12
	GtkMenuBar::internal-padding = 0

	engine "clearlooks"  {
	       menubarstyle      = 1       # 0 = flat, 1 = sunken, 2 = flat gradient
               menuitemstyle     = 1       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
               listviewitemstyle = 1       # 0 = flat, 1 = 3d-ish (gradient)
               progressbarstyle  = 0      # 0 = candy bar, 1 = flat
	}
}

class "*" style "default"


style "ToolTip"
{
  bg[NORMAL] = "#586C7F"
  base[NORMAL] = "#586C7F"
  text[NORMAL] = "#E6E6E6"
  fg[NORMAL] = "#E6E6E6"
}

widget "gtk-tooltips" style "ToolTip"


style "scrollbar" = "default"
{
#  bg[PRELIGHT]     =  "Inactive1Light"
  bg[PRELIGHT]	    =  "#665646"
  bg[NORMAL]        = "#586C7F" #***
  bg[ACTIVE]        = "#5C5B66"
}

widget_class "*GtkVScrollbar*"     style "scrollbar"
class "*GtkVScrollbar*"            style "scrollbar"
widget_class "*GtkHScrollbar*"     style "scrollbar"
class "*GtkHScrollbar*"            style "scrollbar"


style "button" = "default"
{
    xthickness = 1
    ythickness = 1

#    bg[PRELIGHT]      = "Inactive1Light" # button mouseover, just like wharf
    bg[PRELIGHT]      =	"#665646"
    bg[NORMAL]        = "#586C7F" #*** buttons, menu, tabs and apps background
    bg[ACTIVE]        = "#5B6665" # tabs not selected, buttons pressed but not prelight
}

widget_class "*Button*"            style "button"
class "*Button*"                   style "button"
widget_class "*button*"            style "button"
class "*button*"                   style "button"
widget_class "*OptionMenu*"        style "button"
class "*OptionMenu*"               style "button"

# Modify this for reverse text in menu according to colorscheme
style "clearlooks-menu-item" = "default"
{
  xthickness = 2
  ythickness = 3
  fg[PRELIGHT] = "#F5F8FA"
  text[PRELIGHT] = "#F5F8FA"
}

widget_class "*MenuItem.*" style "clearlooks-menu-item"
class "GtkMenuItem"    style "clearlooks-menu-item"


style "menubar" = "default"
{
  xthickness = 2
  ythickness = 3
  bg[PRELIGHT]      = "#8A8899" # button mouseover, just like wharf
  bg[NORMAL]        = "#586C7F" #*** buttons, menu, tabs and apps background
  bg[ACTIVE]        = "#5B6665" # tabs not selected, buttons pressed but not prelight
}

widget_class "*MenuBar.*" style "menubar"
class "GtkMenuBar"    style "menubar"
这两个配置文件里面的字体、颜色我看不懂,所以也不知道应该改哪些。
2,把wharf里面加了几个项目
3,创建了一个shell,用于把plasma-desktop、gnome-panel、unity-2d-launcher、剪切板、飞鸽、一个wmaker的dockapp一起启动起来。也放到了wharf中。现在是开机后先在菜单中启动wharf,然后在wharf中启动这个shell。
~/3in1.sh:

代码: 全选

#!/bin/bash
gnome-settings-daemon &
gnome-panel &
unity-2d-launcher &
unity-2d-places &
plasma-desktop &
parcellite &
wine c:/ipmsg/ipmsg.exe &
bubblefishymon &
4,wharf花屏的问题还是没有规律的出现,没有找到原因。

下一步折腾的目标:
1,把窗口标题栏、图表、边框替换成好看一些的风格。
2,把菜单配色调整一下;
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

Re: 开始尝试配置fvwm,他先给我一个下马威!

#19

帖子 ljj_jjl2008 » 2011-09-01 9:46

这种布局的好处是:
1,同时使用gnome-shell、unity、kde、fvwm、afterstep风格的wharf,造成屏幕上、下、左、右都有菜单和启动项(左上是gnome-shell和unity启动菜单,左侧是unity的launcher,下方是kde的图标,右侧是afterstep风格的wharf,alt+鼠标左键是fvwm的主菜单),虽然实际启动的项目基本是重复的,可是用起来方便,鼠标离谁近就可以直接去点谁。
2,不单调。
坏处:
1,有点拥挤
2,wharf和wmaker的dockapp有点影响视线。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 开始尝试配置fvwm,他先给我一个下马威!

#20

帖子 leeaman » 2011-09-01 9:54

ee来发表下感想 :em04
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

Re: 开始尝试配置fvwm,他先给我一个下马威!

#21

帖子 nmsfan » 2011-09-01 9:58

路过围观混搭帝
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

Re: 开始尝试配置fvwm,他先给我一个下马威!

#22

帖子 ljj_jjl2008 » 2011-09-01 10:10

要暂停了,上次报坏扇区的硬盘还没有换下来,今天看了一下,坏扇区又增加了,下午换硬盘。
现在的问题是:怎么快速的把老硬盘上面的系统移植到新硬盘里面?再重装和重新设置这40个WM很累人的。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 开始尝试配置fvwm,他先给我一个下马威!

#23

帖子 leeaman » 2011-09-01 10:12

直接copy就可以了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

Re: 开始尝试配置fvwm,他先给我一个下马威!

#24

帖子 ljj_jjl2008 » 2011-09-01 10:16

leeaman 写了:直接copy就可以了
能说的再详细一些么?哪些目录需要copy?
至少/dev没法copy吧?
还有,grub怎么处理?
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 开始尝试配置fvwm,他先给我一个下马威!

#25

帖子 leeaman » 2011-09-01 10:24

这个看你的分区和fstab来办事的
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 开始尝试配置fvwm,他先给我一个下马威!

#26

帖子 eexpress » 2011-09-01 10:31

我的fvwm已经到了最精简的程度了。不折腾。
支持大家搞花屏幕。
● 鸣学
头像
nmsfan
帖子: 18958
注册时间: 2009-10-16 22:46
来自: finland

Re: 开始尝试配置fvwm,他先给我一个下马威!

#27

帖子 nmsfan » 2011-09-01 10:35

这种玩意适合大屏
小屏太蛋疼
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

Re: 开始尝试配置fvwm,他先给我一个下马威!

#28

帖子 ljj_jjl2008 » 2011-09-01 10:37

代码: 全选

~$ df -l
文件系统           1K-块      已用      可用 已用% 挂载点
/dev/sda10            41514808   9183012  30223272  24% /
udev                    628524         4    628520   1% /dev
tmpfs                   255356       888    254468   1% /run
none                      5120         0      5120   0% /run/lock
none                    638380       296    638084   1% /run/shm
/dev/sda6             57672700   1098660  53644428   3% /mainhome
/dev/sda9            103216920   7543504  90430212   8% /soft
/dev/sda8            103216920    192116  97781592   1% /vbox
/dev/sda7             97654780   5502488  92152292   6% /dos
/dev/sda1             77000736   8465568  64623744  12% /mainos
/dev/sda1和/dev/sda6是捣腾之前的ubuntu的 / 和 /home 。
/dev/sda10是捣腾出来的40个WM的/,/home也在里面(没有单独分区)。
/dev/sda7、/dev/sda9 是数据文档和软件安装包,这个直接考没问题。
/dev/sda8 原来是vbox虚拟机用的,现在数据全部丢失了,是一个空盘。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 开始尝试配置fvwm,他先给我一个下马威!

#29

帖子 leeaman » 2011-09-01 10:45

你接新硬盘,分区 /,然后复制过去,安装grub就可以了,那个啥destrp你都会安装这个小儿科吧?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
ljj_jjl2008
论坛版主
帖子: 14255
注册时间: 2007-09-16 8:29

Re: 开始尝试配置fvwm,他先给我一个下马威!

#30

帖子 ljj_jjl2008 » 2011-09-02 14:58

这个fvwm真不是一般人能用的了的!
抓图41.png
把标题栏、按钮改了样式了。
把~/.gtkrc-2.0给删除了,同时启动了gnome-settings-daemon,让它设置gtk+程序的外观。
后果:kde程序和gtk+程序风格严重不一致,一个银白,一个暗黑。
同时:菜单字体配色问题,页签不能按动问题被解决。

出现了新问题:
1,鼠标光标移动到边框位置,光标不变形状。
2,ksnapshot这样只有一个关闭按钮的程序,出现的不是关闭按钮,而是最小化按钮的样子,并且实际点击时即不关闭,也不最小化。

代码: 全选

# window title, inactive and active
#
###################################################################
### Titlebar Decoration
###################################################################
Style * SmartPlacement, WindowShadeSteps 0, ResizeOpaque
Style * DecorateTransient, WindowShadeLazy
Style * IconBox 15 15 -1 1, MouseFocusClickRaises
Style * NoIcon, NoIconTitle

Style * NoHandles
#!Borders,
###################################################################




###################################################################
### Colorsets
###################################################################

#### Menu Colorset
Colorset 0 fg #000000, fgsh #bbbbbb, bg #ffffff, sh #ffffff, hi #ffffff, Translucent #ffffff 70
Colorset 1 fg #ffffff, fgsh #000000, bg #101F36, sh #101F36, hi #101F36

### General Colorset
Colorset 3 fg #777777, bg #ffffff, fgsh #bbbbbb, RootTransparent, Tint #283e5e 70, IconAlpha 60
Colorset 4 fg #000000, bg #ffffff, fgsh #bbbbbb, RootTransparent, Tint #101f36 70, IconAlpha 100

Colorset 5 fg #ffffff, bg #000000

Colorset 6 fg #ffffff, bg #000000, RootTransparent

#### Dock Colorset
Colorset 30 fg #ffffff, bg #ffffff, hi #dde5ec, sh #a6bbce, RootTransparent , Tint #101F36 65

###################################################################


DestroyFunc FuncFvwmDecorBackground
AddToFunc   FuncFvwmDecorBackground
+ I TitleStyle AllActive  TiledPixmap  wm-icons/e017/title-3-active.xpm
+ I TitleStyle AllInactive TiledPixmap wm-icons/e017/title-3-inactive.xpm
+ I ButtonStyle All Simple -- UseTitleStyle
FuncFvwmDecorBackground

+ I FuncFvwmDecorBackground
AddButtonStyle 1 \
    ActiveUp   (Pixmap wm-icons/e017/title-2-active.xpm -- flat) \
    ActiveDown (Pixmap wm-icons/e017/title-2-inactive.xpm -- flat) \
    Inactive   (Pixmap wm-icons/e017/title-2-inactive.xpm -- flat)
AddButtonStyle 6 \
    ActiveUp   (Pixmap wm-icons/e017/hide-active.xpm -- flat) \
    ActiveDown (Pixmap wm-icons/e017/hide-pressed.xpm -- flat) \
    Inactive   (Pixmap wm-icons/e017/hide-inactive.xpm -- flat)
AddButtonStyle 4 \
    ActiveUp   (Pixmap wm-icons/e017/maximize-active.xpm -- flat) \
    ActiveDown (Pixmap wm-icons/e017/maximize-pressed.xpm -- flat) \
    Inactive   (Pixmap wm-icons/e017/maximize-inactive.xpm -- flat)
AddButtonStyle 2 \
    ActiveUp   (Pixmap wm-icons/e017/close-active.xpm -- flat) \
    ActiveDown (Pixmap wm-icons/e017/close-pressed.xpm -- flat) \
    Inactive   (Pixmap wm-icons/e017/close-inactive.xpm -- flat)

Style * Button 1, Button 6, Button 2, Button 4, GrabFocusOff
Style * FvwmButtons

AddToFunc   FuncFvwmReloadDecor
+ I FuncFvwmSetFont-WindowTitle * 'shadow=1 r br b:xft:wenquanyi bitmap song:pixelsize=14:minspace=true:-wenquanyi-wenquanyi bitmap song-medium-r-*-*-14-*-*-*-*-*-*-*'
+ I FuncFvwmSetFont-IconTitle   * 'shadow=1 r br b:xft:wenquanyi bitmap song:pixelsize=12:minspace=true:-wenquanyi-wenquanyi bitmap song-medium-r-*-*-12-*-*-*-*-*-*-*'
+ I BorderStyle	Simple
+ I TitleStyle	Centered
+ I TitleStyle	-- Raised
+ I ButtonStyle	All -- Raised
+ I FuncFvwmOverRideWindowLook

Style * HandleWidth 5
Style * BorderWidth 5
TitleStyle Height 24
回复