Package: fbpanel
Version: 7.0-4
Severity: normal

Hello!

I finally managed to convince fbpanel to have a width computed as
the screen width minus a fixed length (275 pixels).
The relevant options in ~/.config/fbpanel/default are:

  Global {
      edge = bottom
      allign = right
      xmargin = 275
      widthtype = pixel
      width = 30000
      [...]
  }

The widthtype must be "pixel" and the width must be set to a number
greater than any foreseeable screen width.

This is something that I have wanted to obtain for a long time,
because the alternative strategy is rather inconvenient: setting a
fixed width which is manually computed (by me!) as, say, 1325 pixels
(which is 1600 - 275), but has to be different for each distinct
screen resolution!


Why did it take so long for me to do this?

Because I had been trying to play with the margin option, which
had apparently no effect.

The fact is that the documentation (/usr/share/doc/fbpanel/README.gz)
states:

[...]
|    * Margin - margin from screen edge for left or right allignment. Legal 
values are numbers.
|      Default is 0.
[...]

However, the program ignores any margin option and reads xmargin
(and ymargin) instead.
I had to dig into the source, in order to figure it out:
see function calculate_width() in panel/misc.c
and function panel_parse_global() in panel/panel.c ...

I guess this is an issue with incorrect (or perhaps out of date)
documentation.

Please fix the documentation and/or forward my bug report upstream,
as appropriate.

Thanks for your time.
Bye!


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fbpanel depends on:
ii  libatk1.0-0          2.30.0-2
ii  libc6                2.28-7
ii  libcairo2            1.16.0-2
ii  libfontconfig1       2.13.1-2
ii  libfreetype6         2.9.1-3
ii  libgdk-pixbuf2.0-0   2.38.0+dfsg-7
ii  libglib2.0-0         2.58.3-1
ii  libgtk2.0-0          2.24.32-3
ii  libpango-1.0-0       1.42.4-6
ii  libpangocairo-1.0-0  1.42.4-6
ii  libpangoft2-1.0-0    1.42.4-6
ii  librsvg2-common      2.44.10-1
ii  libx11-6             2:1.6.7-1

fbpanel recommends no packages.

Versions of packages fbpanel suggests:
ii  hicolor-icon-theme  0.17-2
ii  menu                2.1.47+b1

-- no debconf information

Reply via email to