Hi all, This is a bit of a silly question. I have a FVWM config that's about 10 years old now that I set up to be largely keyboard oriented and maximise screen real-estate.
For system status and a calendar, I have a BarButtons instance on the right-hand side of the display which I can call up by hitting Logo, Z. The problem is every time I've moved to a new machine, I have to edit the config file to appropriately dimension the panel. I want the panel to be the full height of the display, minus the height of the task bar (now, fbpanel; since FVWM have dropped FVWMTaskBar). Right now I have this: > DestroyModuleConfig BarButtons: * > *BarButtons: Fore Black > *BarButtons: Back #cccccc > *BarButtons: Font > "xft:sans-serif:Bold:pixelsize=10;-*-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*" > # Geometry - really likes to pick its own size, but giving a position is OK > # Warning: I've added a size geometry to avoid pbs if the fvwm_icons are > # not in the image path ! Remove the size in this geometry especially if > # you add buttons > #*BarButtons: Geometry 250x568-0+24 > PipeRead "${HOME}/.fvwm/position-barbuttons.sh" with the script containing this: > #!/bin/sh > > printf '*BarButtons: Geometry 250x%d-0+24\n' $(( \ > $( xdpyinfo | sed -ne \ > '/dimensions/ { s/^.*: \+[0-9]\+x\([0-9]\+\) .*$/\1/; p }' ) - > 24 )) This works, but I wonder if there's a more elegant way. Is it possible to grab the screen size in the .fvwmrc and do the required arithmetic for deriving Geometry? Regards, -- Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... ...it's backed up on a tape somewhere.
signature.asc
Description: OpenPGP digital signature