OpenBSD_laptop_dotfiles-scr.../.fvwmrc_hpvue

472 lines
16 KiB
Plaintext
Raw Permalink Normal View History

2015-11-29 10:09:27 +11:00
# Serguei Chmod777's Xenvt configuration
2015-12-06 06:18:29 +11:00
# Old fashion Motif-like's look, CDE colorset.
2015-11-29 10:09:27 +11:00
ModulePath /usr/X11R6/lib/X11/fvwm
PixmapPath /usr/X11R6/include/X11/pixmaps
IconPath /usr/X11R6/include/X11/bitmaps
EdgeResistance 5000 200 # kind of a trick to avoid damned switchover !
# 200 to keep moving windows out of the frame
2015-11-29 10:09:27 +11:00
EdgeScroll 100 100
2015-12-06 06:18:29 +11:00
ClickTime 150
2015-11-29 10:09:27 +11:00
# make sure these fonts exist on your system:
WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
2015-12-06 06:18:29 +11:00
HilightColor #bebebe darkcyan
2015-11-29 10:09:27 +11:00
MenuStyle #4d4d4d #bebebe #e7e7e7 -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* fvwm
DeskTopSize 3x3
2015-12-06 06:18:29 +11:00
ColormapFocus FollowsFocus
2015-11-29 10:09:27 +11:00
# default Styles:
Style "*" BorderWidth 6, HandleWidth 6,
2015-12-06 06:18:29 +11:00
Style "*" Icon unknown1.xpm, Color #bebebe/darkolivegreen
Style "*" MWMFunctions, MWMBorder, MWMButtons, MWMDecor, HintOverride
2015-11-29 10:09:27 +11:00
Style "*" DecorateTransient, NoPPosition
Style "*" IconBox 0 -10 -280 -1
# ========= For keyboard's cowboy ===========
Style "*" ClickToFocus
# (because a mistake can be FTL while typing)
Style "*" RandomPlacement, SmartPlacement
# Styles for various Fvwm modules:
2015-12-06 06:18:29 +11:00
Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 1, CirculateSkipIcon, CirculateSkip
Style "FvwmPager" Sticky, WindowListSkip, ClickToFocus, BorderWidth 1, \
HandleWidth 4
Style "xclock" Sticky, WindowListSkip, ClickToFocus, BorderWidth 1, \
HandleWidth 4
Style "xload" Sticky, WindowListSkip, ClickToFocus, BorderWidth 1, \
HandleWidth 4
Style "FvwmWinList" Sticky, WindowListSkip, ClickToFocus, BorderWidth 1, \
HandleWidth 4
2015-11-29 10:09:27 +11:00
Style "FvwmBanner" StaysOnTop
Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus, BorderWidth 1, \
HandleWidth 4
2015-11-29 10:09:27 +11:00
# Styles for your common terminal emulator programs:
AddToDecor terms
+ ButtonStyle 1 Pixmap mini.xterm.xpm
+ HilightColor #bebebe #c18841
2015-11-29 10:09:27 +11:00
Style "XTerm" UseDecor terms
2015-12-06 06:18:29 +11:00
Style "XTerm" Icon xterm.xpm, ClickToFocus, IconBox -70 1 -1 -140
2015-11-29 10:09:27 +11:00
Style "rxvt" UseDecor terms
2015-12-06 06:18:29 +11:00
Style "rxvt" Icon term.xpm, ClickToFocus, IconBox -70 1 -1 -140
2015-11-29 10:09:27 +11:00
Style "rxvt" MWMBorder, MWMButtons
# Styles for various common programs:
2015-12-06 06:18:29 +11:00
Style "xclock" NoTitle, Sticky, WindowListSkip, ClickToFocus
2015-11-29 10:09:27 +11:00
Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus
Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon
Style "xmh" RandomPlacement, NoButton 2
Style "xman" Icon xman.xpm, RandomPlacement, ClickToFocus
Style "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus
Style "xgraph" Icon graphs.xpm, RandomPlacement, ClickToFocus
Style "xmosaic" Color Green/Yellow, ClickToFocus
Style "xconsole" Icon rterm.xpm, WindowListSkip, Sticky
2015-12-06 06:18:29 +11:00
Style "xload" NoTitle, Sticky, WindowListSkip, ClickToFocus
2015-11-29 10:09:27 +11:00
# some simple default mouse bindings:
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
# for the title bar buttons:
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 2 A Maximize-Func
Mouse 0 4 A Iconify
# for other parts of the window/borders/icons:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
######################## Initialization Functions ############################
#AddToFunc InitFunction "I" Module FvwmPager 0 0
#+ "I" exec /usr/X11R6/bin/xsetroot -solid black
#AddToFunc RestartFunction "I" Module FvwmPager 0 0
#+ "I" exec /usr/X11R6/bin/xsetroot -solid black
Function "InitFunction"
Exec exec xloadimage -onroot -center \
/home/serguei77/graphic/fractintLorenz.png &
Exec exec xload -bg darkcyan -geometry 100x100+0+98 &
2015-11-29 10:09:27 +11:00
Exec exec xterm -geometry 81x45+744+15 -e \
2015-12-06 06:18:29 +11:00
"/usr/X11R6/bin/xclock -bg darkcyan -geometry \
100x100+0+206 & /bin/sh /home/serguei77/.monitorr.sh" &
2015-11-29 10:09:27 +11:00
Module FvwmButtons
Module FvwmWinList
Module FvwmPager 0 0
EndFunction
######################## Menus ###################
AddToMenu RootMenu "Root Menu" Title
+ "XTerm%mini.xterm.xpm%" Exec exec xterm
#+ "Rxvt" Exec exec rxvt
+ "" Nop
#+ "Remote Logins" Popup Remote-Logins
#+ "" Nop
+ "Utilities" Popup Utilities
+ "" Nop
+ "Fvwm Modules" Popup Module-Popup
+ "Fvwm Window Ops" Popup Window-Ops
+ "Fvwm Simple Config Ops" Popup Misc-Ops
+ "" Nop
+ "Refresh Screen" Refresh
+ "Recapture Screen" Recapture
+ "(Re)Start" Popup Quit-Verify
+ "" Nop
+ "Exit" Module FvwmForm QuitVerify
AddToMenu Utilities "Utilities" Title
+ "Top" Exec exec xterm -T Top -n Top -e top
+ "Calculator" Exec exec xcalc
+ "Xman" Exec exec xman
+ "Xmag" Exec exec xmag
+ "Editres" Exec exec editres
+ "" Nop
#+ "XEmacs" Exec exec xemacs
#+ "Mail" MailFunction xmh "-font fixed"
+ "" Nop
+ "XLock%mini.xlock.xpm%" Exec exec xlock
+ "" Nop
+ "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults
AddToMenu Misc-Ops "Misc Config Opts" Title
+ "Sloppy Focus" ChangeDefaultFocus SloppyFocus
+ "Click To Focus" ChangeDefaultFocus ClickToFocus
+ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse
+ "" Nop
+ "Colormap Follows Mouse" ColormapFocus FollowsMouse
+ "Colormap Follows Focus" ColormapFocus FollowsFocus
+ "" Nop
+ "Full Paging ON" EdgeScroll 100 100
+ "All Paging OFF" EdgeScroll 0 0
+ "Horizontal Paging Only" EdgeScroll 100 0
+ "Vertical Paging Only" EdgeScroll 0 100
+ "Partial Paging" EdgeScroll 50 50
+ "Full Paging && Edge Wrap" EdgeScroll 100000 100000
AddToMenu Window-Ops "Window Ops" Title
+ "Move%mini.move.xpm%" Move
+ "Resize%mini.resize.xpm%" Resize
+ "Raise%mini.raise.xpm%" Raise
+ "Lower%mini.lower.xpm%" Lower
+ "(De)Iconify%mini.iconify.xpm%" Iconify
+ "(Un)Stick%mini.stick2.xpm%" Stick
+ "(Un)Maximize%mini.maximize.xpm%" Maximize
+ "" Nop
+ "Delete%mini.excl.xpm%" Delete
+ "Close%mini.cut.xpm%" Close
+ "Destroy%mini.destroy.xpm%" Destroy
+ "" Nop
+ "Refresh Window%mini.refresh.xpm%" RefreshWindow
AddToMenu Window-Ops2 "&Move%mini.move.xpm%" Move
+ "&Resize%mini.resize.xpm%" Resize
+ "R&aise%mini.raise.xpm%" Raise
+ "&Lower%mini.lower.xpm%" Lower
+ "(De)&Iconify%mini.iconify.xpm%" Iconify
+ "(Un)&Stick%mini.stick2.xpm%" Stick
+ "(Un)Ma&ximize%mini.maximize.xpm%" Maximize
+ "" Nop
+ "&Delete%mini.excl.xpm%" Delete
+ "&Close%mini.cut.xpm%" Close
+ "Destroy%mini.destroy.xpm%" Destroy
+ "" Nop
+ "ScrollBar" Module FvwmScroll 2 2
+ "Print" PrintFunction
#+ "Print Reverse" PrintReverseFunction
# be sure to fill these in with your correct machine names:
AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY &
+ "snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY &
+ "grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY &
+ "happy" Exec rsh happy rxvt -display $HOSTDISPLAY &
+ "bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY &
+ "barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY &
+ "joker" Exec rsh joker rxvt -display $HOSTDISPLAY &
+ "signal" Exec rxterm signal
AddToMenu Module-Popup "FvwmModules" Title
+ "Identify" Module FvwmIdent
+ "Talk" Module FvwmTalk
+ "" Nop
+ "Button-Bar" Module FvwmButtons
+ "Pager" Module FvwmPager 0 0
+ "Pager (2 desks)" Module FvwmPager 0 1
+ "WinList" Module FvwmWinList
+ "" Nop
+ "Banner" Module FvwmBanner
+ "ScrollBar" Module FvwmScroll 50 50
+ "Background" Module FvwmBacker
+ "AutoRaise" Module FvwmAuto 200 Raise Nop
+ "Stop AutoRaise" KillModule FvwmAuto
+ "" Nop
+ "IconBox" Module FvwmIconBox
+ "IconMan" Module FvwmIconMan
+ "" Nop
+ "Form - Rlogin" Module FvwmForm Rlogin
+ "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk
+ "Form - QuitVerify" Module FvwmForm QuitVerify
AddToMenu Quit-Verify
+ "Restart Fvwm%mini.refresh.xpm%" Restart fvwm
+ "" Nop
+ "Start cwm" Restart cwm
+ "Start wm2" Restart wm2
+ "Start twm" Restart twm
+ "Start ctwm" Restart ctwm
+ "Start flwm" Restart flwm
+ "Start mwm" Restart mwm
+ "Start openbox" Restart openbox
+ "Start tvtwm" Restart tvtwm
+ "" Nop
+ "Start dummy%mini.xterm.xpm%" Restart xterm
+ "" Nop
+ "No, Don't Quit" Nop
######################## Sample Functions ##########################
AddToFunc MailFunction "I" Next [$0] Iconify -1
+ "I" Next [$0] Focus
+ "I" None [$0] Exec $0 $1
AddToFunc Move-or-Raise "I" Raise
+ "M" Move
+ "D" Lower
AddToFunc Move-or-Raise2 "M" Raise
+ "M" Move
+ "D" Lower
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
AddToFunc Resize-or-Raise2 "M" Raise
+ "M" Resize
+ "D" Lower
AddToFunc PrintFunction "I" Raise
+ "I" Exec xdpr -id $w
AddToFunc PrintReverseFunction "I" Raise
+ "I" Exec xdpr 1/2 -h -rv -id $w
AddToFunc Iconify-and-Raise "I" Iconify
+ "I" Raise
# RLOGIN machine fg bg
AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8
# TELNET machine fg bg
AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0
AddToFunc FocusAndWarp "I" Focus
+ "I" WarpToWindow 2p 2p
AddToFunc DeiconifyFocusAndWarp "I" Iconify -1
+ "I" FocusAndWarp
AddToFunc ChangeDefaultFocus "I" Style "*" $0
+ "I" Recapture
############################################################################
# Now some keyboard shortcuts.
#
# Mainly * Meta-^Arrow to switch form a workspace to another
# (because ^Arrow still be useful for jumping to previous/forward string)
# * Alt-Tab to spread WinList
#
2015-11-29 10:09:27 +11:00
# Arrow Keys
# press "arrow + Meta+Control" anywhere, and scroll by 1 page
# instead of "A C"...
Key Left A MC Scroll -100 0
Key Right A MC Scroll +100 +0
Key Up A MC Scroll +0 -100
Key Down A MC Scroll +0 +100
# because it's cool to be able to C-arrow to switch
# from one string to another in a text !
# press shift arrow + control anywhere, and move the pointer by 1% of a page
Key Left A SC CursorMove -1 0
Key Right A SC CursorMove +1 +0
Key Up A SC CursorMove +0 -1
Key Down A SC CursorMove +0 +1
# press shift arrow + meta key, and move the pointer by 1/10 of a page
Key Left A SM CursorMove -10 +0
Key Right A SM CursorMove +10 +0
Key Up A SM CursorMove +0 -10
Key Down A SM CursorMove +0 +10
# Keyboard accelerators
Key F1 A M Menu RootMenu
Key F2 A M Menu Window-Ops
Key Tab A M WindowList
2015-11-29 10:09:27 +11:00
Key F4 A M Iconify
Key F5 A M Move
Key F6 A M Resize
################## FvwmButtons button-bar ################################
# something similar to ``dtpanel'', perhaps looking quite better ! #
2015-11-29 10:09:27 +11:00
*FvwmButtonsBack bisque3
*FvwmButtons(Frame 2 Padding 2 2 Container(Rows 2 Frame 1 Padding 10 0 \
Swallow(Respawn)))
2015-11-29 10:09:27 +11:00
*FvwmButtons(NoSize Title Close, Icon bomb.xpm, Action Close)
*FvwmButtons(Title Resize Icon mini.resize.xpm Back bisque4 Action Resize)
*FvwmButtons(NoSize Icon Jnews.xpm, Action \
`Exec exec thunderbird`)
*FvwmButtons(NoSize Icon mini.netscape.xpm, Action \
`Exec exec seamonkey`)
*FvwmButtons(NoSize Icon xterm-dec.xpm, Action \
`Exec exec xterm`)
*FvwmButtons(NoSize Icon page.xpm, Action \
`Exec exec nedit`)
*FvwmButtons(3x1 Back darkolivegreen Fore white Frame 2 Padding 3 3 \
2015-11-29 10:09:27 +11:00
Container(Rows 1 Frame -2 Padding 1 1 Back darkolivegreen))
*FvwmButtons(Frame 2 Back darkolivegreen Icon xlock.xpm, \
Action `Exec exec xlock`)
*FvwmButtons(Title(Side,Right) Mail \
Swallow(UseOld,NoRespawn)\
xbiff `Exec exec xbiff -bg darkolivegreen -geometry +200+200`)
2015-11-29 10:09:27 +11:00
*FvwmButtons(End)
*FvwmButtons(1x1 Back grey Fore white Frame 1 Padding 3 3 \
Container(Rows 1 Frame -2 Padding 1 1 Back darkred))
*FvwmButtons(Frame 2 NoSize Icon skull.xpm, Action FvwmForm QuitVerify)
2015-11-29 10:09:27 +11:00
*FvwmButtons(End)
*FvwmButtons(End)
*FvwmButtonsGeometry 310x90+0+0
2015-11-29 10:09:27 +11:00
########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
########################### Pager #########################################
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerBack darkcyan
*FvwmPagerFore white
*FvwmPagerHilight #2d2d2d
*FvwmPagerGeometry 100x100+0+314
2015-11-29 10:09:27 +11:00
*FvwmPagerLabel 0 "OpenBSD 5.8"
*FvwmPagerLabel 1 Hacks
*FvwmPagerLabel 2 Mail
*FvwmPagerLabel 3 Octave
*FvwmPagerSmallFont 5x8
##########################FvwmWinList##################################
*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1
*FvwmBackerDesk 0 -solid steelblue
*FvwmBackerDesk 1 -solid midnightblue
*FvwmScrollBack grey40
*FvwmScrollFore green
############################################################
*FvwmIconBoxIconBack #cfcfcf
*FvwmIconBoxIconHiFore black
*FvwmIconBoxIconHiBack LightSkyBlue
*FvwmIconBoxBack #5f9ea0
#*FvwmIconBoxFore blue
*FvwmIconBoxGeometry 5x1+0+0
*FvwmIconBoxMaxIconSize 64x38
*FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconBoxSortIcons IconName
*FvwmIconBoxPadding 4
*FvwmIconBoxLines 10
*FvwmIconBoxSBWidth 11
*FvwmIconBoxPlacement Left Top
*FvwmIconBoxPixmap fvwm.xpm
#*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxSetWMIconSize
*FvwmIconBoxHilightFocusWin
#*FvwmIconBoxResolution Desk
*FvwmIconBoxMouse 1 Click RaiseLower
*FvwmIconBoxMouse 1 DoubleClick Iconify
*FvwmIconBoxMouse 2 Click Iconify -1, Focus
*FvwmIconBoxMouse 3 Click Module FvwmIdent
*FvwmIconBoxKey r RaiseLower
*FvwmIconBoxKey space Iconify
*FvwmIconBoxKey d Close
*FvwmIconBoxKey n Next
*FvwmIconBoxKey p Prev
*FvwmIconBoxKey h Left
*FvwmIconBoxKey j Down
*FvwmIconBoxKey k Up
*FvwmIconBoxKey l Right
#
# Icon file specifications
#
# Mostly, you don't have to specify icon files, as FvwmIconBox now
# reads icon files specified in Style commands.
#
*FvwmIconBox "Fvwm*" -
# FvwmForm alias - query exit ala mwm
*QuitVerifyGrabServer
*QuitVerifyWarpPointer
*QuitVerifyFont *helvetica*m*r*n*14*
#*QuitVerifyButtonFont *helvetica*m*o*n*14*
*QuitVerifyButtonFont 7x13bold
*QuitVerifyFore Black
*QuitVerifyBack Light Gray
*QuitVerifyItemFore Wheat
*QuitVerifyItemBack Gray50
# begin items
*QuitVerifyLine center
2015-12-06 06:18:29 +11:00
*QuitVerifyText "Do ya really wanna divorce with FVWM???"
2015-11-29 10:09:27 +11:00
*QuitVerifyLine expand
2015-12-06 06:18:29 +11:00
*QuitVerifyButton quit " Nuke me! "
2015-11-29 10:09:27 +11:00
*QuitVerifyCommand Quit
2015-12-06 06:18:29 +11:00
*QuitVerifyButton quit "Bring me back to reason!"
2015-11-29 10:09:27 +11:00
*QuitVerifyCommand Nop