fvwm的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

fvwm的问题

#1

帖子 gzbao9999 » 2009-07-22 14:02

第一个 :新打开的程序有时进程中在运行了,但是界面出不来(firefox chrome gimp 等各种程序都遇到过)
第二个 :fcitx输入法正用那,经常不知道啥时候该进程就死球了(在icewm下就从没有这个问题)
第三个 :我通过下面这个函数

*FvwmEvent-NewWindow: add_window FuncFocusWindow
DestroyFunc FuncFocusWindow
AddToFunc FuncFocusWindow
+ I Focus
+ I WarpToWindow 50 50

实现自动focus到新开的程序窗口上
但是我在fvwm配置文件中exec conky
开机后 出来个鼠标十字 要左键点击一下或者按下回车conky才运行起来

有没有办法在fvwm的配置文件中 实现 鼠标左键点一下或者回车
其他能解决问题的办法也行

第四个:有时候出现程序死球的问题(各种程序都可能挂掉 只好开个终端killall 掉,幸好我整了两个终端xterm roxterm,不然终端死球掉就郁闷了)
气血鼓荡,身体发胀,偶飘上头,三时舒畅
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: fvwm的问题

#2

帖子 eexpress » 2009-07-22 14:05

不是还有tty。急啥哦。
估计你的什么设置打架了。如果使用了.xinitrc,也去看看。
● 鸣学
头像
O_O_BOT
帖子: 2461
注册时间: 2009-05-20 19:32

Re: fvwm的问题

#3

帖子 O_O_BOT » 2009-07-22 14:14

irc <fvw> say: 问题还真多 应该是你的配置文件有错误才会出现+的。 界面出不来也是这个问题
irc 聊天室
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录

http://webchat.freenode.net/?channels=ubuntu-cn
[url]irc://irc.freenode.net/ubuntu-cn[/url]
头像
O_O_BOT
帖子: 2461
注册时间: 2009-05-20 19:32

Re: fvwm的问题

#4

帖子 O_O_BOT » 2009-07-22 14:15

irc <fvw> say: ee 很积极
irc 聊天室
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录

http://webchat.freenode.net/?channels=ubuntu-cn
[url]irc://irc.freenode.net/ubuntu-cn[/url]
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#5

帖子 gzbao9999 » 2009-07-22 15:32

tty是啥?
没有使用了.xinitrc
可能是设置打架了
还有个问题 button1 不知道啥时候让我给弄没了

还是把配置文件发上来吧, :em06
总共6个配置文件
config
f.menu (函数写f.menu里了)
f.pager
f.style
f.ButtonStyle
f.Mouse




config
=====================================================
SetEnv fvwm $[HOME]/.fvwm/

#插入另外一个文件file的内容
Read f.menu
Read f.pager
Read f.style
Read f.ButtonStyle
Read f.Mouse

EwmhBaseStruts 0 0 0 0

DeskTopSize 3x3

# 这里是FVWM的启动函数,加载一些模块
AddToFunc StartFunction
+ I Module FvwmPager
+ I Exec exec fvwm-root -r /home/vava/fish.png #墙纸路径
+ I Exec exec trayer --SetDockType true --widthtype pixel --width 120 --heighttype pixel --height 24 --align right --transparent true --alpha 255 --edge bottom --margin 1
+ I Exec exec conky -b &
+ I Exec exec xpad &
=====================================================




f.menu
=====================================================
MenuStyle * PopupOffset +0 100, PopupDelay 300
MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white
Colorset 0 Transparent,fg white
MenuStyle * MenuColorset 0
MenuStyle * Foreground grey90 #前景色
MenuStyle * Background #1c5572 #背景色

MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid
MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
MenuStyle * AutomaticHotKeys
MenuStyle * MenuFace VGradient 128 1 #2c80A0 1 #1c5572
ColormapFocus FollowsFocus

#主菜单上显示的程序及子菜单。
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot
+ "Roxterm" Exec exec roxterm
+ "Home" Exec exec rox
+ "Xterm" Exec exec xterm
+ "Firefox" Exec exec firefox
+ "Chrome" Exec exec chrome
+ "Chrome-flash" Exec exec /home/vava/downloads/chrome-linux/chrome --enable-plugins
+ "" Nop
+ "Net" Popup MenuInternet
+ "文本工具" Popup MenuEditors
+ "多媒体" Popup MenuMultimedia
+ "编程" Popup project
+ "DIY this menu" Exec exec mousepad ~/.fvwm/f.menu
+ "" Nop
+ "退出" Popup MenuQuit-Verify

#各个子菜单,显示的程序。
DestroyMenu MenuInternet
AddToMenu MenuInternet
+ "Firefox" Exec exec firefox
+ "chrome" Exec exec chrome
+ "QQ" Exec exec qq
DestroyMenu MenuEditors
AddToMenu MenuEditors
+ "mousepad" Exec exec mousepad
+ "Vim" Exec exec vim

DestroyMenu MenuMultimedia
AddToMenu MenuMultimedia
+ "smplayer" Exec exec smplayer
+ "music" Exec exec music
+ "audacious" Exec exec audacious
+ "" nop
+ "迅雷" Exec exec wine /home/vava/.wine/drive_c/Program\ Files/Thunder/Thunder.exe
+ "" nop
+ "Gimp" Exec exec gimp



DestroyMenu project
AddToMenu project
+ "eclipse" Exec exec /home/vava/goto/project/eclipse
+ "mysql" Exec exec mysql /home/vava/goto/project/mysql
+ "tomcat-start" Exec exec /home/vava/goto/project/tomcat-start
+ "tomcat-stop" Exec exec /home/vava/goto/project/tomcat-stop


DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify
+ "Restart FVWM ..." Restart
+ "Exit FVWM Now... " Quit
+ "Power Off" Exec exec sys_shutdown
+ "Reboot" Exec exec sys_reboot

DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig
+ "FvwmConsole" Module FvwmConsole -terminal rxvt
+ "Colour Browser" Exec exec gcolor
+ "Edit fvwm2rc" Exec exec gvim -geom 115x46 ~/.fvwm/.fvwm2rc
+ "R&efresh" Refresh
+ "&Xkill" Pick Destroy
+ "Configure Screensaver..." Exec exec xscreensaver

DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps
+ "Resize" Pick Resize
+ "Shade" Pick WindowShade Toggle
+ "" Nop
+ "Stick" Pick Stick
+ "Scroll" Pick Module FvwmScroll
+ "Refresh" Pick RefreshWindow
+ "" Nop
+ "Identify" Pick Module FvwmIdent
+ "Zoom" Pick Exec exec xmag -source $[w.width]x$[w.height]+$[w.x]+$[w.y] -mag 2
+ "" Nop
+ "Close" Close
+ "Destroy" Destroy

#------------函数-------------------------
DestroyFunc FuncFvwmFocusPolicyChange
AddToFunc FuncFvwmFocusPolicyChange
+ I Style * $0
+ I Recapture

DestroyFunc DestroyOnHold
AddToFunc DestroyOnHold I Raise
+ C Schedule 50 Close
+ H Destroy

AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow

AddToFunc Move-or-Raise I Raise
+ M Move
+ D Maximize 100 100
#+ D WindowShade Toggle

AddToFunc Maximize-Func M Maximize 0 100
+ C Maximize 0 80
+ D Maximize 100 100

AddToFunc Move-or-Iconify I Raise
+ M Move
+ D Iconify

AddToFunc Resize-or-Raise I Raise
+ M Resize
+ D Lower


*FvwmEvent-NewWindow: add_window FuncFocusWindow
DestroyFunc FuncFocusWindow
AddToFunc FuncFocusWindow
+ I Focus
+ I WarpToWindow 50 50


DestroyFunc FuncFullScreen
AddtoFunc FuncFullScreen
+ I Current (Maximizable, HasHandles,!FixedSize) FuncDoFullScreen Break
+ I Current (FixedSize, Maximized) FuncUnFullScreen

DestroyFunc FuncDoFullScreen
AddtoFunc FuncDoFullScreen
+ I WindowStyle NoTitle,HandleWidth 0,FixedSize,FixedPosition
+ I Current (!Maximized) Maximize
#+ I Layer 1 ontop
+ I ResizeMaximize 100 100

DestroyFunc FuncUnFullScreen
AddtoFunc FuncUnFullScreen
+ I DestroyWindowStyle
+ I Layer default
+ I Maximize
=====================================================




f.pager
=====================================================
PipeRead "echo *FvwmPager: Geometry 150x80-1-24"

FvwmPager: Hilight3DOff, HilightBack #424164, ActiveFore white
Colorset 0 Transparent
*FvwmPager: MiniIcons
*FvwmPager: Font none
*FvwmPager: WindowBorderWidth 0
*FvwmPager: Window3DBorders
*FvwmPager: ShowTips
*FvwmPager: FocusFore cornsilk
*FvwmPager: UseSkipList

*FvwmPager: Colorset * 41 #前景色
*FvwmPager: HilightColorset * 42 #背景色

*FvwmPager: WindowColorsets $[cs-panel-wininactive] $[cs-panel-winactive]

Style FvwmPager NoTitle, !Handles, !Borders, Sticky, WindowListSkip, \
CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DesktopSize 3x3
=====================================================




f.style
=====================================================
###########窗口样式#############

#以“style”开头的语句,用来设置所有窗口的样式。
style * SloppyFocus
style * Colorset 42, HilightColorset 41 # to use fg and bg #前景色和后景色
MenuStyle * Font "xft:WenQuanYi Micro Hei:size=11"
style * Font "xft:WenQuanYi Micro Hei Light:size=11"
Style * Button 1, Button 2, Button 4, Button 6, Button 8, GrabFocusOff #标题栏上显示的按钮
Style * BorderWidth 0, HandleWidth 1
Style * NoIcon #关闭窗口最小化和最大化时的动画。具体效果,看我的第一张抓图。(如你喜欢改变窗口时的动画,就注销此句)
Style * IndexedIconName
Style * MinOverlapPercentPlacement
Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50
Style * ResizeOutLine
Style * MouseFocusClickRaises
Style * FocusFollowsMouse #所有窗口,都是鼠标移进去的时候得到键盘聚焦,鼠标移出来就失去聚焦
Style * TileCascadePlacement #窗口出现的时候,先试图找一个可以放下它而不挡住其它窗口的地方,如果不行再采用层叠放置的方式
Style * DecorateTransient


Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip

Style qq NoTitle
Style chrome NoTitle
Style trayer NoTitle,!Handles


#下面是定义了窗口使用的色彩。(其中41和42号是透明)其他文件里的色彩设定,我都用下面的号码表记。
Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #6e90b3, hi #91b6db, Translucent #283e5e 80
Colorset 1 fg #000000, fgsh #b5b7b8, bg #ffffff, hi #ffffff, sh #9a9a9a, Translucent #dce0e7 70
Colorset 3 fg #9aafbf, bg #000000, fgsh #000000, NoShape, RootTransparent, Tint #283e5e 70
Colorset 4 fg #ffffff, bg #000000, fgsh #000000, Noshape, RootTransparent, Tint #101f36 70

#41得bg决定了title button的背景色 fg决定了title bar的颜色(窗口focus时)
#42得bg决定了title button的背景色 fg决定了title bar的颜色(窗口lose focus时)
Colorset 41 RootTransparent buffer, fg white, bg black, Tint cyan 15, bgTint cyan 15 # tint is optional
Colorset 42 RootTransparent buffer, fg black, bg #969696, Tint blut 15, bgTint blut 15 # tint is optional

#下面的才是透明的设定,如不使用透明,把下面的注销。
BorderStyle Inactive Colorset 42 -- flat
BorderStyle Active Colorset 41 -- flat
TitleStyle AllInactive Colorset 42 -- flat
TitleStyle AllActive Colorset 41 -- flat
=====================================================




f.ButtonStyle

=====================================================
TitleStyle Height 20 -- Flat

ButtonStyle All Simple -- UseTitleStyle
ButtonStyle All -- Flat

AddButtonStyle 1 \
ActiveUp (Pixmap menu.png -- flat) \
ActiveDown (Pixmap menu.png -- flat) \
Inactive (Pixmap menu.png -- flat)

AddButtonStyle 2 \
ActiveUp (Pixmap close.png -- flat) \
ActiveDown (Pixmap close.png -- flat) \
Inactive (Pixmap close.png -- flat)
AddButtonStyle 4 \
ActiveUp (Pixmap max.png -- flat) \
ActiveDown (Pixmap max.png -- flat) \
Inactive (Pixmap max.png -- flat)
AddButtonStyle 6 \
ActiveUp (Pixmap min.png -- flat) \
ActiveDown (Pixmap min.png -- flat) \
Inactive (Pixmap min.png -- flat)
AddButtonStyle 8 \
ActiveUp (Pixmap min.png -- flat) \
ActiveDown (Pixmap min.png -- flat) \
Inactive (Pixmap min.png -- flat)

#按钮的样式
ButtonStyle 2 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
ButtonStyle 4 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
ButtonStyle 6 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
ButtonStyle 8 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
ButtonStyle 1 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat

ButtonStyle 2 active Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
ButtonStyle 4 active Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
ButtonStyle 6 active Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
ButtonStyle 8 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
ButtonStyle 1 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
=====================================================




f.Mouse
=====================================================
#简单的鼠标和键盘设置。
Mouse 1 R A Nop

#鼠标右键单击弹出菜单WindowList
Mouse 3 R A WindowList

#鼠标左键按钮1弹出菜单
#Mouse 1 1 A Menu MenuFvwmWindowOps Nop

#鼠标左键按钮2关闭窗口
Mouse 1 2 A Close

#鼠标左键按钮6最小化
Mouse 1 6 A Iconify

#title上单击右键卷起
Mouse 3 T A WindowShade

Mouse 1 4 A Maximize
Mouse 1 R A Menu MenuFvwmRoot
Mouse 1 T A Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 1 W M Move-or-Raise

#Alt+F10窗口最大化
Key F10 W M Maximize
Key F10 F M Maximize
Key F10 S M Maximize
Key F10 T M Maximize

#Alt+F9窗口最小化
Key F9 W M Iconify
Key F9 F M Iconify
Key F9 S M Iconify
Key F9 T M Iconify

#Alt+F9窗口最小化
Key F11 W M FuncFullScreen
Key F11 F M FuncFullScreen
Key F11 S M FuncFullScreen
Key F11 T M FuncFullScreen


Key F1 A M Exec exec roxterm
Key F2 A N Popup MenuFvwmRoot
Key F3 A 4 Popup MenuFvwmRoot

Key Super_R A N WindowList
Key Super_L A N Menu MenuFvwmRoot
Key Print A N Exec exec scrot

Key Win_R R A WindowList Root c c NoDeskSort
Key F4 A M Pick Close
Key X A 4 Pick Destroy

Key L A 4 Exec exec xscreensaver-command --lock
Key I A 4 All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail
Key X A CM Exec exec xmag
Key F4 A CM Quit
Key R A CM Restart
=====================================================
上次由 gzbao9999 在 2009-07-22 15:36,总共编辑 1 次。
气血鼓荡,身体发胀,偶飘上头,三时舒畅
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: fvwm的问题

#6

帖子 eexpress » 2009-07-22 15:36

#鼠标左键按钮1弹出菜单
#Mouse 1 1 A Menu MenuFvwmWindowOps Nop

1按钮没功能,就不显示了。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: fvwm的问题

#7

帖子 eexpress » 2009-07-22 15:39

Iconify 是图标化,你代替了最小化了哦。如果没东西接收这些软件的图标化,估计就看不到了。
Iconify off 也没见到你设置。那不就消失了。
仔细看看。
● 鸣学
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: fvwm的问题

#8

帖子 leeaman » 2009-07-22 15:41

ee说的对,加10分,nnnd,看配置文件有点晕 :em06
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: fvwm的问题

#9

帖子 leeaman » 2009-07-22 15:44

eexpress 写了:Iconify 是图标化,你代替了最小化了哦。如果没东西接收这些软件的图标化,估计就看不到了。
Iconify off 也没见到你设置。那不就消失了。
仔细看看。
似乎是style * noicon 的问题,不然什么着也是有图标在桌面的
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#10

帖子 gzbao9999 » 2009-07-22 15:56

eexpress 写了:Iconify 是图标化,你代替了最小化了哦。如果没东西接收这些软件的图标化,估计就看不到了。
Iconify off 也没见到你设置。那不就消失了。
仔细看看。
这个问题我也没在意
程序最小化消失后
可以在WindowList里找出来 (我绑定到右窗口键上了)

主要就是不稳定
刚刚我想发配置文件的时候 突然还死机了
鼠标 键盘都没响应了 :em06

button 1 弄回来了 :em06
气血鼓荡,身体发胀,偶飘上头,三时舒畅
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#11

帖子 gzbao9999 » 2009-07-22 16:05

图标化 和 f.thumbnail
是一回事么?
气血鼓荡,身体发胀,偶飘上头,三时舒畅
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#12

帖子 gzbao9999 » 2009-07-22 16:09

leeaman 写了:
eexpress 写了:Iconify 是图标化,你代替了最小化了哦。如果没东西接收这些软件的图标化,估计就看不到了。
Iconify off 也没见到你设置。那不就消失了。
仔细看看。
似乎是style * noicon 的问题,不然什么着也是有图标在桌面的
恩 说的对
把style * noicon这句注销掉后
最小化就有图标在桌面上了(虽然丑了点) :em05

我晕 刚刚chrome死球了
输入法fcitx也死球了
似乎 fcitx 被 chrome影响 但其他wm里没发现这问题

9个桌面
现在习惯把浏览器单独扔在一个里面
鼠标一晃就跑其他里面 很少最小化
有这功能方便些 没有就干净些
看来要想美观还得整个f.thumbnail
气血鼓荡,身体发胀,偶飘上头,三时舒畅
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#13

帖子 gzbao9999 » 2009-07-22 16:17

鼠标双击的时间间隔怎么设置?
气血鼓荡,身体发胀,偶飘上头,三时舒畅
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#14

帖子 gzbao9999 » 2009-07-22 16:27

问题1 2 3 4 依旧
当然第3个无关紧要
开机我点下鼠标或回车就算了
或者我不在config里面开conky
1 3 4 就比较头疼
难道是我的版本不稳定? 我从源里装的
vava@vava-desktop:~$ fvwm -version
fvwm 2.5.26 compiled on Dec 22 2008 at 17:44:21
with support for: ReadLine, RPlay, Stroke, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, Xinerama, XRender, XCursor, XFT, NLS
气血鼓荡,身体发胀,偶飘上头,三时舒畅
gzbao9999
帖子: 627
注册时间: 2008-11-08 18:34

Re: fvwm的问题

#15

帖子 gzbao9999 » 2009-07-22 20:08

注销掉style * noicon 之后
虽然有最小化图标
但是键盘的快捷键用一次之后就用不了了
怪事真多
恢复原样先
气血鼓荡,身体发胀,偶飘上头,三时舒畅
回复