Hi everybody,
I’m configuring my FVWM from scratch. I’ve had and I’ve still some problems .
I’ve done a panel, and now, I’m trying to center it.
Here’s my code:
##############################
# #
# Panel #
# #
##############################
DestroyModuleConfig FvwmButtons-Panel: *
#### Une seule colonne
SetEnv colu 300
*FvwmButtons-Panel: Rows 1
*FvwmButtons-Panel: Columns $[colu]
UnSetEnv offset_dock
PipeRead "echo SetEnv offset_dock $(($(($(($[vp.width]/2))+$[colu]))/2))"
#### Definition des couleurs
*FvwmButtons-Panel: Colorset $[PanelOff]
*FvwmButtons-Panel: ActiveColorset $[PanelOn]]
*FvwmButtons-Panel: Geometry +$[offset_dock]
#### pas de separations
*FvwmButtons-Panel: Frame 0
*FvwmButtons-Panel: (1x1, Icon dock/globes/firefox.png, \
Action(Mouse 1) 'exec exec firefox', \
ActiveIcon dock/globes/firefox_hover.png \
)
*FvwmButtons-Panel: (1x1 Icon dock/globes/xmms.png, \
Action(Mouse 1) 'exec exec xmms', \
ActiveIcon dock/globes/xmms_hover.png \
)
*FvwmButtons-Panel: (1x1 Icon dock/globes/mail.png, \
Action(Mouse 1) 'exec exec thunderbird', \
ActiveIcon dock/globes/mail_hover.png \
)
*FvwmButtons-Panel: (1x1, Icon dock/globes/system.png, \
Action(Mouse 1) 'Module FvwmForm QuitVerify', \
Action(Mouse 3) 'restart', \
ActiveIcon dock/globes/system_hover.png \
)
With this line :
$(($(($(($[vp.width]/2))+$[colu]))/2))
, the panel is quite at the center of the screen, but not exactly.
Thank you
[/img]