歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下配置窗口管理器fvwm[圖文]

Linux下配置窗口管理器fvwm[圖文]

日期:2017/2/28 16:54:38   编辑:Linux教程

重新配置了一下我的fvwm(Linux下一個小巧但強悍的窗口管理器),比以前的漂亮多了。

Linux強悍的窗口管理器 fvwm

配置文件:

################
# jiqing's fvwm2rc
# 2008-09-29
###########################

###########
# Set environmnet variables
#############################
SetEnv fvwm_wallpapers $[FVWM_USERDIR]/wallpapers
SetEnv fvwm_images $[FVWM_USERDIR]/images
ImagePath $[fvwm_images]

##########
# DeskTop
##############################
#DesktopName 0 Debian Linux

# 設定虛擬桌面大小
DeskTopSize 3x1
# 設定窗口最大化時離屏幕四邊的象素距離
EWMHBaseStruts 0 0 0 48
EdgeScroll 0 0

# 設定光標形狀,默認的是個X
CursorStyle Root left_ptr
CursorStyle Default left_ptr

#############
# window behaviour
#################################
# Style * FocusFollowsMouse
# 鼠標經過時獲得焦點,鼠標單擊焦點窗體時窗體升至最前面。
Style * SloppyFocus, MouseFocusClickRaises
# 窗體出現時盡量不擋住其它的窗體
Style * TileCascadePlacement

##########
# window colorsets
###########################
# 未被激活的窗口的前景和背景色
Colorset 3 fg #666666, bg #71a7b0
# 被激活的窗口的前景和背景色
Colorset 4 fg black, bg #a2efff

############
# window looks
##########################
Style * MWMBorder, FirmBorder
#設置窗口顏色
Style * Colorset 3
Style * HilightColorset 4
Style * BorderColorset 3
Style * HilightBorderColorset 4
#設置標題欄字體
Style * Font "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=12:style=Bold:encoding=iso10646-1"
#設置標題欄上的按扭
Style * Button 6, Button 4, Button 2

#設置邊框寬度
#Style * BorderWidth 4

###############
# 窗體上的按扭樣式
#########################################
Mouse 0 2 A Close
ButtonStyle 2 Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
ButtonStyle 2 - MWMDecorMenu

Mouse 0 6 A Iconify
ButtonStyle 6 Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
ButtonStyle 6 - MWMDecorMin

Mouse 3 4 A Maximize 100 100
Mouse 1 4 A Maximize 0 100
ButtonStyle 4 Vector 7 \
30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
ButtonStyle 4 - MWMDecorMax

#########
# menu colorsets
################################
#普通菜單項的顏色
Colorset 7 fg #95c7f2, bg #4c4c4c, sh Black, hi #69a9ff
#被選中菜單項的顏色
Colorset 8 fg #dde1ff, bg #808080, sh Black, hi #69a9ff

##########
# menu styles
#################################
MenuStyle * MWMBorder, FirmBorder
MenuStyle * PopupDelayed, PopupDelay 300, PopdownImmediately
MenuStyle * Popupoffset -5 100, TitleWarpoff
MenuStyle * BorderWidth 2
MenuStyle * MenuColorset 7
MenuStyle * ActiveFore
MenuStyle * ActiveColorset 8
MenuStyle * Font "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=12:style=Bold:encoding=iso10646-1"

###############
# 菜單
###################################
DestroyMenu FvwmRootMenu
AddToMenu FvwmRootMenu "Root Menu" Title
+ "uxterm%xterm.png%" Exec exec /usr/bin/uxterm
+ "uxterm(Big)%xterm.png%" \
Exec exec /usr/bin/uxterm -fs 18 -geometry 60x40
+ "Gnome Terminal%term.png%"\
Exec exec /usr/bin/gnome-terminal --geometry 76x22
+ "" Nop
+ "Debian%debian.png%" Popup "/Debian"
+ "" Nop
+ "Restart FVWM" Restart
+ "Quit FVWM" Quit

###########
# Pager and Buttons colorset
###############################
Colorset 10 fg black, bg #aac9f0
Colorset 11 fg black, bg #588fd6

#####
# FvwmTaskBar
###########
#Style "FvwmTaskBar" NoTitle, !Handles, BorderWidth 4, Sticky, \
#WindowListSkip, CirculateSkip, StaysOnBottom, FixedPosition,\
#FixedSize, !Iconifiable

#DestroyModuleConfig FvwmTaskBar: *
#*FvwmTaskBar: Geometry -0-0
#*FvwmTaskBar: Rows 2
#*FvwmTaskBar: Font "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=10:encoding=iso10646-1"
#*FvwmTaskBar: SelFont "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=10:style=Bold:encoding=iso10646-1"
#*FvwmTaskBar: StatusFont "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=10:encoding=iso10646-1"
#*FvwmTaskBar: Colorset 10
#*FvwmTaskBar: IconColorset 10
#*FvwmTaskBar: FocusColorset 11
#*FvwmTaskBar: TipsColorset 10
#*FvwmTaskBar: UseSkipList
#*FvwmTaskBar: UseIconNames
#*FvwmTaskBar: ShowTips
#*FvwmTaskBar: StartName FVWM
#*FvwmTaskBar: StartMenu FvwmRootMenu
#*FvwmTaskBar: Action Click3 Menu FvwmWindowOpsMenu
#*FvwmTaskBar: StartIcon debian.png

####################
# FvwmIconMan
#####################
Style "FvwmIconMan-Icons" NoTitle, NoHandles, BorderWidth 0, Sticky, \
WindowListSkip, CirculateSkip, StaysOnBottom, FixedPosition,\
FixedSize, !Iconifiable

All (FvwmIconMan-Icons) Close
DestroyModuleConfig FvwmIconMan-Icons: *

# 僅顯示當前頁的圖標
#*FvwmIconMan-Icons: Resolution Global
#*FvwmIconMan-Icons: Resolution Desk
*FvwmIconMan-Icons: Resolution page
# 如果某個對象設置了WindowListSkip,IconMan不會收集它
*FvwmIconMan-Icons: UseWinList True
*FvwmIconMan-Icons: DontShow Class=FvwmButtons,FvwmIconMan,FvwmPager,FvwmIdent,FvwmForm
# 不顯示臨時窗口
*FvwmIconMan-Icons: ShowTransient False
# 顯示圖標化和未圖標化的窗口
*FvwmIconMan-Icons: ShowOnlyIcons False
# 是否顯示mini icons
#*FvwmIconMan-Icons: DrawIcons True
# 總是顯示mini icons
*FvwmIconMan-Icons: DrawIcons always
# 圖標按照窗口id排序
*FvwmIconMan-Icons: Sort Id
# 顯示哪個窗口擁有焦點
*FvwmIconMan-Icons: FollowFocus True
# 設定顯示格式,下面的設定是:圖標+標題
*FvwmIconMan-Icons: Format "%c"
# 設定IconMan標題字符串
*FvwmIconMan-Icons: Title ""
# 設定項目字體
#*FvwmIconMan-Icons: Font "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=10:encoding=iso10646-1"
*FvwmIconMan-Icons: Font 8x16
# 設定單個按扭的大小,如果高度為0,則按字體大小設定高度
*FvwmIconMan-Icons: ButtonGeometry 96x24
# 設定Icon Manager大小,寬度為8個按扭,高度自動增長
*FvwmIconMan-Icons: ManagerGeometry 8x0+0-0
# Tips
*FvwmIconMan-Icons: Tips always
*FvwmIconMan-Icons: TipsDelays 200 100
*FvwmIconMan-Icons: TipsFormat "%t"
*FvwmIconMan-Icons: TipsFont "StringEncoding=utf-8:xft:WenQuanYi Bitmap Song:size=10:encoding=iso10646-1"
*FvwmIconMan-Icons: TipsBorderWidth 0
*FvwmIconMan-Icons: TipsColorset 10
*FvwmIconMan-Icons: TipsJustification leftup
# 普通按扭顯示
*FvwmIconMan-Icons: PlainButton flat
*FvwmIconMan-Icons: FocusButton down
*FvwmIconMan-Icons: SelectButton sunkedge
*FvwmIconMan-Icons: FocusAndSelectButton down
*FvwmIconMan-Icons: IconButton flat
# colors
*FvwmIconMan-Icons: Colorset 11
*FvwmIconMan-Icons: PlainColorset 11
*FvwmIconMan-Icons: FocusColorset 11
*FvwmIconMan-Icons: SelectColorset 11
*FvwmIconMan-Icons: FocusAndSelectColorset 11
*FvwmIconMan-Icons: IconColorset 11
# Actions
*FvwmIconMan-Icons: Action Mouse 1 A SendCommand "Iconify"
*FvwmIconMan-Icons: Action Mouse 2 MS SendCommand "Close"
*FvwmIconMan-Icons: Action Mouse 2 N SendCommand "Nop"
*FvwmIconMan-Icons: Action Mouse 3 A SendCommand "Nop"
# }}}2

Copyright © Linux教程網 All Rights Reserved