Hello. Here you are in case it helps.
I do basic maths using bash: Piperead 'echo SetEnv taskbar_width $(($[panel_width]-$[clock_width]-$[button_width]*3-$[widget_width]*2-$[pa$ Piperead 'echo SetEnv widget_height $(($[panel_height]-2*$[separator]))' Piperead 'echo SetEnv button_height $((($[panel_height]-2*$[separator])/3))' I also change panel labels like this: DestroyFunc FvwmSetVolume AddToFunc FvwmSetVolume + I Piperead 'echo SetEnv vol $(setvol $0)' + I SendToModule FvwmPanel ChangeButton vol_button Title "$[vol]" And to define and launch panels: DestroyModuleConfig FvwmPanel: * *FvwmPanel: Frame 0 *FvwmPanel: Columns $[panel_width] *FvwmPanel: Rows $[panel_height] *FvwmPanel: Colorset 1 *FvwmPanel: ActiveColorset 2 *FvwmPanel: PressColorset 3 *FvwmPanel: Font "xft:DejaVu Sans:size=7:encoding=iso10646-1" *FvwmPanel: ($[panel_width]x$[separator], Frame 0) *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[clock_width]x$[widget_height], Colorset 2, Padding 4, Frame 1, Swallow "clock" "FvwmScript DigitalClock") *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "gimp", Action (Mouse 1) "Exec exec gimp") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "urxvt", Action (Mouse 1) "Exec exec urxvtc") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "LEER", Action (Mouse 1) "Exec echo \"$(xsel -o)\" | festival --tts") *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[taskbar_width]x$[widget_height], Frame 0, Swallow "FvwmIconMan") *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[tray_width]x$[widget_height], Colorset 2, Frame 1, Swallow (NoClose,UseOld,Respawn) "stalonetray" "Exec exec stalonetray -geometry 1x2-0+1 --grow-gravity E --icon-gravity N --icon-size 24 --transparent") *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[widget_width]x$[widget_height], Colorset 2, Frame 1, Swallow (NoClose,UseOld,Respawn) "bubblemon" "Exec exec bubblemon -k") *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[widget_width]x$[widget_height], Colorset 2, Frame 1, Id "vol_button", Font "xft:DejaVu Sans:size=17:encoding=iso10646-1", Title "$[vol]", Action (Mouse 1) "Exec exec alsamixer", Action (Mouse 4) FvwmSetVolume 4, Action (Mouse 5) FvwmSetVolume -4) *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[pager_width]x$[widget_height], Colorset 2, Padding 4, Frame 1, Swallow "FvwmPager") *FvwmPanel: ($[separator]x$[widget_height], Frame 0) *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "kcolorchooser", Action (Mouse 1) "Exec exec kcolorchooser") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "nwn", Action (Mouse 1) "Exec cd $[HOME]/games/nwn;exec ./nwn") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "kcontrol", Action (Mouse 1) "Exec exec systemsettings") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "gwenview", Action (Mouse 1) "Exec exec gwenview") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "dolphin", Action (Mouse 1) "Exec exec dolphin") *FvwmPanel: ($[button_width]x$[button_height], Colorset 1, Frame 1, Title "lxappearance", Action (Mouse 1) "Exec exec lxappearance") *FvwmPanel: ($[panel_width]x$[separator], Frame 0) DestroyFunc StartFunction AddToFunc StartFunction + I All (Maximized) WindowStyle BorderWidth 0, HandleWidth 0 + I UpdateStyles + I All (Maximized) Maximize True + I Module FvwmButtons -g $[panel_width]x$[panel_height]+$[panel_offset]-0 FvwmPanel + I Module FvwmIconMan + I Module FvwmPager + I Schedule 1000 ColorizeLayers Other random stuff: DestroyFunc FvwmDmenuWrapper AddToFunc FvwmDmenuWrapper + I Piperead 'echo SetEnv exe $(dmenu_path|dmenu -nb "#ffe3ab" -nf black -sb "#afaca7" -sf "#ffe3ab" -fn "-*-$ + I Exec exec $[exe] As for 3), I knew, but I prefer using a consistent scheme for everything. My brain for sure will be grateful for that when I have to review the config I wrote 5 years later. 2014-09-13 10:14 GMT+02:00 Dominik Vogt <[email protected]>: > For testing pusposes I need to get an overwiev of what types of > commands people use in fvwm. Could everybody please look through > their configuration files and post any commands: > > 1) That contain whitespace, quoting characters or variables > (e.g. $[foo] or $w) in the first word of the line. Expamples: > > -- snip -- > |* FvwmButtons: ... > | Move 0 0 > |"Resize" ... > | ` Stick ` ... > |Some\ Function ... > |Some$[env.function]" ... > -- snip -- > > If it's not obvious, please include the command line that is > actually executed. > > 2) Such things in conditional commands or function or menu > definitions in place of the command name, menue name or > function name. Examples: > > -- snip -- > AddToFounc Foo$[desk.n] I "Desk$[w.desk] Func" > + I \ MyOwnFunc\ a b c > All `Destroy` > + I PipeRead 'cd $HOME/.fvwm2/palettes; /bin/ls *.pal | sed -e > \"s:\\(.*\\)\\(\\.pal\\):+ \\\\&\\1 Function SetPalette \\1\\2:\"' > -- snip -- > > (With the same explanation as above, if necessary). > > 3) Fvwm allows to start modules without using the "Module" command, > e.g. with just "FvwmButtons" instead of "Module FvwmButtons". > Do you use this? Did you know that's possible? > > Please be careful to not post sensitive information, and please > post only interesting lines, not your whole configuration files! > If you have a similar line multiple times, plese post it only > once. > > Ciao > > Dominik ^_^ ^_^ > > -- > > Dominik Vogt > > -- Jesús Guerrero Botella
