######################################################
# .fvwm2rc initialisation file, using fvwm-2.5.9 on Gentoo Linux. # adapted from taviso (http://dev.gentoo.org/~taviso) ######################################################
# angel2k <angel2k@piregwan.com>
######################################################
# Environmental Variables
#
SetEnv fvwm_themes_path /home/nico/.fvwm/themes
SetEnv fvwm_theme default
SetEnv fvwm_root /home/nico/.progs/fvwm/bin/fvwm-root
SetEnv fvwm_icon_size 96
SetEnv my_font -misc-smooth-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
# Emplacement des icones
ImagePath /home/nico/elements/icons/GANT/:/home/nico/elements/icons/kbicons/:/home/nico/elements/icons/dock/:/home/nico/elements/icons/divers/:/home/nico/elements/icons/mini/:/home/nico/elements/icons/qnx_style/:
# -- End Environmental Variables --
######################################################
######################################################
# Misc Options
#
DeskTopSize 3x2
OpaqueMoveSize -1
SnapAttraction 1
EdgeResistance 1000 20
EdgeThickness 0
IgnoreModifiers L25
BugOpts FlickeringMoveWorkaround True
# -- End Of Misc Options --
#####################################################
#####################################################
# Application Specific Styles
#
Style FvwmButtons NoTitle, StaysOnBottom, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmButtons HandleWidth 2, NeverFocus, Layer 1
Style * DecorateTransient
Style FvwmPager NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmPager StaysOnBottom, NoHandles, BorderWidth 0
Style Thumbnail Style xmms NoTitle
Style FvwmTaskBar NoTitle, WindowListSkip, Sticky, StaysOnBottom
# --End of Application Specific Styles --
######################################################
######################################################
# Global Settings
#
# -- End Global Settings
######################################################
######################################################
# Demarrage
#
AddToFunc StartFunction
+ I Exec xset b off
+ I Module FvwmAnimate
+ I Module FvwmEvent
+ I Module FvwmWindowMenu
+ I Module FvwmProxy
+ I Exec exec $[fvwm_root] ~/elements/walls/qnx.png
+ I Read /home/nico/.fvwm/shelf
#+ I Module FvwmButtons -g 40x344+0+100 LaunchTime
#+ I Module FvwmButtons -g 40x130+0+460 OrpheusControl
# -- End Fvwm Start/Restart Functions --
######################################################
######################################################
# Suppression des icones & sync a la sortie
#
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f /home/nico/.fvwm/icon.tmp.* /home/nico/.fvwm/icon.cache*
+ I Exec exec sync
#
#
######################################################
######################################################
# Cursor Settings:
# It is possible to assign a specific cursor to a
# specific Context, such as root/window
CursorStyle ROOT top_left_arrow
CursorStyle POSITION crosshair
CursorStyle WAIT watch
#CursorStyle DESTROY gumby
# -- End Cursor Settings --
######################################################
######################################################
# Mouse Bindings:
# By assigning actions to the mouse buttons it allows
# me to customize how Fvwm reacts to mousebutton events.
Mouse 1 R A Menu FvwmRootMenu
Mouse 2 R A WindowList
Mouse 0 1 A Nop
Mouse 0 2 A Close
Mouse 0 4 A Maximize
Mouse 0 6 A Thumbnail
Mouse 0 I A Move
Mouse 2 I A Iconify off
Mouse 0 1 A Menu FvwmWindowOpsMenu
Mouse 3 T A WindowShade
Mouse 4 R A GotoPage +1p 0p
Mouse 5 R A GotoPage -1p 0p
######################################################
SetEnv ligne 0
SetEnv colonne 0
DestroyFunc CycleDesk
AddToFunc CycleDesk
+ I SetEnv $[colonne] $[colonne]+1
+ I $$(( test $[colonne] -gt 2)) && (SetEnv $[colonne] 0 && SetEnv $[ligne] $[ligne]+1)
+ I $$(( test $[ligne] -gt 1)) && SetEnv $[ligne] 0 || SetEnv $[ligne] $[ligne] +1 + I GotoPage $[colonne] $[ligne]
######################################################
# Key Bindings:
# Allows you to assign actions/events to key-combos.
# This is very useful if you are used to have certain
# actions, ex: <Alt>+F4 Close window.
#
# W = window
# D = desktop
# T title-bar
# S window side/top/bottom
# F window frame
# < ^ > _ left/top/right/bottom corners
# I icon window
# O - 9 title-bar buttons
# A anything
# C control
# S shift
# M meta
# L capslock
# mod1 - mod5 1 - 5 Key F1 A M GotoPage 0 0
Key F2 A M GotoPage 1 0
Key F3 A M GotoPage 2 0
Key Tab A M NoWindow FvwmExpose
Key A W MC Thumbnail
Key F1 W C MovetoPage 0 0
Key F2 W C MovetoPage 1 0
Key F3 W C MovetoPage 2 0
Key F1 A N All (AcceptsFocus CurrentPage !Iconic !Shaded !FvwmButtons) Thumbnail
Key T A MC Exec exec uxterm -bg black -fn -misc-smooth-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 -fg grey -sl 500 -geometry 120x35
# -- End Key Bindings --
######################################################
######################################################
# Decoration de fenetres
#
# Assign colorsets to the windows
TitleStyle InActive ( ColorSet 9 --Flat )
TitleStyle Active ( ColorSet 8 --Flat )
# Set the titlebar height and position of
# the text.
BorderStyle -- HiddenHandles NoInset Raised Style * BorderWidth 0
Style * HandleWidth 2
Style * ForeColor #c6cbd6
Style * BackColor #c6cbd6
Style * HilightFore #000000
Style * HilightBack #000000
Style * IconBox 20 15 100 80, SloppyFocus, MouseFocusClickRaises
# Decorate the window buttons, can be done by defining
# pixmap to use or by creating vectors (no used here).
ButtonStyle All Active ( -- Flat)
# Button Positions, # illustration by taviso (http://dev.gentoo.org/~taviso)
# +---------------------------------------+
# | . _ # X |
# +---------------------------------------+
# | 1 6 4 2 |
#
#Colorset 9 fg black, bg white, NoShape, RootTransparent Buffer, Tint #5a8ade 60
#Colorset 8 fg black, bg #c6cbd6, NoShape, RootTransparent Buffer, Tint #f6f6f6 20
Colorset 9 fg black, bg white, NoShape, Translucent #c6cbd6 90
Colorset 8 fg black, bg white, NoShape, RootTransparent Buffer, Tint #f6f6f6 20
Style * UseDecor DefaultDecor
DestroyDecor DefaultDecor
AddToDecor DefaultDecor
+ TitleStyle AllActive TiledPixmap qnx_fond.png
+ TitleStyle AllInactive TiledPixmap qnx_fondi.png
+ TitleStyle LeftJustified Height 19 -- Flat
+ ButtonStyle All Simple -- Flat
+ AddButtonStyle 1 \
ActiveUp (Pixmap qnx_iconify.png -- Flat) \
ActiveDown (Pixmap qnx_iconify.png -- Flat) \
Inactive (Pixmap qnx_iconifyi.png -- Flat)
+ AddButtonStyle 6 \
ActiveUp (Pixmap qnx_min.png -- TiledPixmap Flat) \
ActiveDown (Pixmap qnx_min.png -- TiledPixmap Flat) \
Inactive (Pixmap qnx_min.png -- TiledPixmap Flat)
+ AddButtonStyle 4 \
ActiveUp (Pixmap qnx_up.png -- TiledPixmap Flat) \
ActiveDown (Pixmap qnx_up.png -- TiledPixmap Flat) \
Inactive (Pixmap qnx_up.png -- TiledPixmap Flat)
+ AddButtonStyle 2 \
ActiveUp (Pixmap qnx_close.png -- Flat) \
ActiveDown (Pixmap qnx_close.png -- Flat) \
Inactive (Pixmap qnx_close.png -- Flat)
#Style "*" Button 1 GrabFocusOff
#Style "*" Button 2 GrabFocusOff
#Style "*" Button 4 GrabFocusOff
#Style "*" Button 6 GrabFocusOff
Style "*" FvwmButtons
# -- End Window Decoration
######################################################
######################################################
# Icon Style and IconBox setup:
#
Colorset 13 fg black, bg black, IconAlpha 40
Colorset 14 fg black, bg black, fgsh black, IconAlpha 100
Style * Colorset 13, HilightColorset 14
Style * MWMFunctions, MWMDecor, HintOverride, DecorateTransient, NoPPosition
Style * IconBox 1000x70+25+25, IconFill right bottom, SloppyFocus, MouseFocusClickRaises
Style * SmartPlacement Style * WindowShadeSteps 20
Style * NoIconTitle, Icon unknown.png
# Comment out these lines if you don't like Icons to have Titles.
#Colorset 12 fg white, bg black, fgsh black, NoShape, RootTransparent Buffer
Colorset 12 fg black, bg grey, Translucent #c6cbd6 90
Style * IconTitle, IconTitleColorset 12, HilightIconTitleColorset 12, IconTitleRelief 0
Style * IndexedIconName, IconBackgroundPadding 0,
Style * IconBackgroundRelief 0, IconBackGroundColorset 12
# -- End Icon Style --
######################################################
######################################################
# -- Mon menu -- #
Read menu_nico_mini
#
######################################################
######################################################
# User Defined Functions
# You can create your own functions to perform custom
# tasks, such as calling external scripts and feed the
# output through a pipe to Fvwm
# ***************************************************
# Get Images
# #AddToFunc FvwmGetImages
#+ I DestroyMenu FvwmGetImages
#+ I PipeRead 'eval '$HOME/.fvwm/scripts/fvwm-menu-imlist''
# -- End Get Images:if expand("%" ) == ""|browse confirm w|else|confirm w|endif
#--
# ***************************************************
# ****************************************************
# Thumbnailing functions by taviso (http://dev.gentoo.org/~taviso)
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded Iconifiable) PipeRead \
"xwd -silent -id $[w.id] | convert -scale $[fvwm_icon_size] -frame 1x1 \
-mattecolor black -quality 0 xwd:- png:$[HOME]/.fvwm/icon.tmp.$[w.id].png \
&& echo WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png \
|| echo Nop"
+ I TestRc (Match) Test (f $[HOME]/icons/$[w.miniiconfile]) PipeRead "composite -geometry +2+4 \
$[HOME]/icons/$[w.miniiconfile] $[HOME]/.fvwm/icon.tmp.$[w.id].png \
$[HOME]/.fvwm/icon.tmp.$[w.id].png && echo Nop \
|| echo Beep"
+ I Iconify
# XXX: No need for NoIconOverride.
DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead "echo WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
+ I UnsetEnv Icon-$[w.id]
+ I Exec exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].png
*FvwmEvent: deiconify DeThumbnail
#####################################################
# Remplacement du Alt-Tab par la fonction Expose de
# taviso :D
# Qq légères modifs
#####################################################
DestroyModuleConfig ExposeCache: *
*ExposeCache: add_window CacheWindow
*ExposeCache: raise_window CacheWindow
*ExposeCache: dewindowshade CacheWindow
*ExposeCache: deiconify CacheWindow
*ExposeCache: destroy_window "Exec rm -f $[FVWM_USERDIR]/cache.$[w.id].xwd $[FVWM_USERDIR]/icon.exp.$[w.id].png"
DestroyFunc CacheWindow
AddToFunc CacheWindow I ThisWindow (Raised, !Iconic, !Shaded, !CirculateHit, AcceptsFocus) Exec nice xwd -screen -silent -id $[w.id] -out $[FVWM_USERDIR]/cache.$[w.id].xwd
AddToFunc StartFunction
+ I Test (Init) Exec while :; do FvwmCommand 'All (CurrentPage, Raised, !CirculateHit) CacheWindow'; sleep 5; done
+ I Module FvwmEvent ExposeCache
AddToFunc ExitFunction I Test (!ToRestart) Exec rm -f $[FVWM_USERDIR]/cache.* $[FVWM_USERDIR]/icon.exp.*
DestroyFunc FvwmExpose
AddToFunc FvwmExpose
+ I AddToMenu FvwmExposeMenu ".: e x p o s e :." Title
+ I + DynamicPopDownAction DestroyMenu FvwmExposeMenu
+ I All (CurrentDesk, AcceptsFocus, !CirculateHit !Iconic) PipeRead "test $[FVWM_USERDIR]/icon.exp.$[w.id].png -nt \
$[FVWM_USERDIR]/cache.$[w.id].xwd || convert -scale 96 -frame 1x1 -mattecolor black -quality 0 \
xwd:$[FVWM_USERDIR]/cache.$[w.id].xwd png:$[FVWM_USERDIR]/icon.exp.$[w.id].png 2>/dev/null && \
echo AddToMenu FvwmExposeMenu %$[FVWM_USERDIR]/icon.exp.$[w.id].png%\\\'\"$[w.name]\"\\\' WindowID $[w.id] WindowListFunc \
|| echo AddToMenu FvwmExposeMenu %$[w.miniiconfile]%\\\'\"$[w.name]\"\\\' WindowID $[w.id] WindowListFunc; \
echo AddToMenu FvwmExposeMenu \\\"\\\" Nop"
+ I Popup FvwmExposeMenu
AddToFunc WindowListFunc I WarpToWindow 50 50
####
# These functions modified from the functions provided in the fvwm FAQ.
# http://www.fvwm.org/documentation/faq/#7.17
#################
AddToFunc Autohide
+ I ThisWindow ($0) Deschedule $[w.id]
+ I TestRc (!Match) Deschedule -$[w.id]
+ I ThisWindow ($0) ThisWindow (shaded) AutohideShow $1 $3
+ I TestRc (!Match) All ($0, !shaded) AutohideHide $2 $3
AddToFunc AutohideShow
+ I Schedule $0 -$[w.id] WindowShade $1 off
+ I Schedule $0 -$[w.id] Raise
+ I Schedule $0 -$[w.id] Deschedule $[w.id]
+ I Schedule $0 -$[w.id] Deschedule -$[w.id]
AddToFunc AutohideHide
+ I Schedule $0 $[w.id] WindowShade $1 on
+ I Schedule $0 $[w.id] Deschedule $[w.id]
+ I Schedule $0 $[w.id] Deschedule -$[w.id]
# -- End --
# ****************************************************
# ****************************************************
# Misc Functions
#################
# Hit Alt+Esc to toggle FvwmProxy, which allows you to see all windows on your
# desktop, even if they've been obscured..really cool.
##################
DestroyModuleConfig FvwmProxy: *
#*FvwmProxy: Font "-misc-smooth-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1"
*FvwmProxy: ProxyMove true
Key Escape A M SendToModule FvwmProxy ShowToggle
#####
# -- End User Defined Functions
######################################################
######################################################
# FvwmEvent Module Setup
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: deiconify DeThumbnail
# -- End FvwmEvent Module Setup --
######################################################
######################################################
# FvwmPager Module Style and Setup
#
Colorset 2 fg #d6d6d6, bg #d6d6d6, RootTransparent, Tint #cacaca 10
Colorset 3 fg #d6d6d6, bg #d6d6d6, RootTransparent, Tint #000000 10
Colorset 4 fg #cacaca, bg #cacaca, RootTransparent, Tint #d6d6d6 10
Colorset 5 fg black, bg Khaki1, RootTransparent,Tint #cacaca 20
Colorset 6 fg #a3a3a3, bg #a3a3a3, RootTransparent, Tint #cacaca 20
DestroyModuleConfig FvwmPager: *
*FvwmPager: Colorset * 3
*FvwmPager: HilightColorset * 6
*FvwmPager: WindowColorsets 4 2
*FvwmPager: BalloonColorset * 5
*FvwmPager: Font none
*FvwmPager: SmallFont 5x8
*FvwmPager: Balloons All
*FvwmPager: BalloonYOffset +2
*FvwmPager: BalloonBorderWidth 1
*FvwmPager: UseSkipList
*FvwmPager: MoveThreshold 0
#*FvwmPager: MiniIcons
*FvwmPager: WindowLabelFormat ""
*FvwmPager: WindowBorderWidth 1
# Taille du pager
*FvwmPager: Geometry 140x50+0+0
# -- End FvwmPager Module Style and Setup --
######################################################
######################################################
# FvwmAnimate Module Style and Setup
# Animations are controlled by this module
# You could also use Frame, Lines, Flip, Turn, Twist, Random and None.
DestroyModuleConfig FvwmAnimate: *
*FvwmAnimate: Effect Flip
*FvwmAnimate: Delay 0
*FvwmAnimate: Iterations 30
*FvwmAnimate: Twist 1
*FvwmAnimate: Width 2
#####################################################
#####################################################
# FvwmIdent is an xwininfo replacement.
DestroyModuleConfig FvwmIdent: *
*FvwmIdent: Back #afc4de
*FvwmIdent: Fore #000000
#####################################################
#####################################################
#
# Simple panel, to modify later..
#
Colorset 30 fg black, bg #ffffff, hi #dde5ec, sh #a6bbce, RootTransparent buffer, Tint #ffffff 65 Style *LaunchTime Sticky, NoTitle, Handlewidth 1, Borderwidth 1, WindowListSkip, StaysOnBottom DestroyModuleConfig LaunchTime: *
*LaunchTime: Rows 8
*LaunchTime: Columns 1
*LaunchTime: Frame 0
*LaunchTime: Colorset 30
*LaunchTime: (1x1 Icon 32x32/apps/terminal.png, Action(Mouse 1) `Exec uxterm -bg black -fn -misc-smooth-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 -fg grey -sl 500 -geometry 120x35`)
*LaunchTime: (1x1 Icon 32x32/apps/monkey_robot.png, Action(Mouse 1) `Exec /soft/firefox/firefox`)
*LaunchTime: (1x1 Icon thunderbird32.png, Action(Mouse 1) `Exec thunderbird`)
*LaunchTime: (1x1 Icon 32x32/apps/gimp.png, Action(Mouse 1) `Exec gimp`)
*LaunchTime: (1x1 Icon 32x32/apps/licq.png, Action(Mouse 1) `Exec xterm -geometry 90x40 -bg black -fg lightgrey -T Centericq -e /home/nico/.progs/centerICQ/bin/centericq`)
*LaunchTime: (1x1 Icon 32x32/apps/multimedia.png, Action(Mouse 1) `Exec xterm -geometry 90x40 -bg black -fg lightgrey -T Orpheus -e /home/nico/.progs/orpheus/bin/orpheus`)
*LaunchTime: (1x1 Icon 32x32/devices/home.png, Action(Mouse 1) `Exec rox`)
*LaunchTime: (1x1 Icon 32x32/apps/camera.png, Action(Mouse 1) `Exec ~/.progs/utils/screenshot`)
#
#####################################################
#####################################################
#
# Orpheus control panel : allows to make orpheus, if launched before,
# play the first track (seems to have a bug in this feature indeed, I # may do a bug-report), go to next & previous track.
#
# To create this I used taviso's tutorial about fvwmbuttons : http://forums.gentoo.org/viewtopic.php?p=1049122#1049122
#
Style *OrpheusControl Sticky, NoTitle, Handlewidth 1, Borderwidth 1, WindowListSkip, StaysOnBottom DestroyModuleConfig OrpheusControl: *
*OrpheusControl: Rows 3
*OrpheusControl: Columns 1
*OrpheusControl: Frame 0
*OrpheusControl: Colorset 30
*OrpheusControl: (1x1 Icon play_snd.png, Action(Mouse 1) `Exec ~/.progs/orpheus/bin/orpheus -r "play 1"`)
*OrpheusControl: (1x1 Icon play_next.png, Action(Mouse 1) `Exec ~/.progs/orpheus/bin/orpheus -r next`)
*OrpheusControl: (1x1 Icon play_prev.png, Action(Mouse 1) `Exec ~/.progs/orpheus/bin/orpheus -r prev`)
#
#####################################################
|