all repos — tint2 @ 5db0dceec23f24133cda220475a762538b974d17

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Scaling support - doc (issue #656)
o9000 mrovi9000@gmail.com
commit

5db0dceec23f24133cda220475a762538b974d17

parent

5c5f507e545634859ff3ac1cad316b2328610fda

3 files changed, 5 insertions(+), 0 deletions(-)

jump to
M doc/manual.htmldoc/manual.html

@@ -386,6 +386,7 @@ <ul>

<li><code>width</code> and <code>height</code> can be specified without units (e.g. <code>123</code>) as pixels, or followed by <code>%</code> as percentages of the monitor size (e.g. <code>50%</code>). Use <code>100%</code> for full monitor width/height. Example:</li> </ul></li> +<li><p><code>scale_relative_to_dpi = integer</code> : If set to a non-zero value, HiDPI scaling is enabled. Each panel is visible on a different monitor. Thus each panel has a specific scaling factor. The scaling factor is computed as the ratio between the monitor DPI (obtained from the dimensions in pixels and millimeters from RandR) and a configured reference DPI - this is the DPI for which exising user configs looked normal, for backward compatibility.</p></li> </ul> <pre class="highlight plaintext"><code># The panel's width is 94% the size of the monitor, the height is 30 pixels: panel_size = 94% 30
M doc/tint2.1doc/tint2.1

@@ -343,6 +343,8 @@ .IP \(bu 2

\fB\fCwidth\fR and \fB\fCheight\fR can be specified without units (e.g. \fB\fC123\fR) as pixels, or followed by \fB\fC%\fR as percentages of the monitor size (e.g. \fB\fC50%\fR). Use \fB\fC100%\fR for full monitor width/height. Example: .RE +.IP \(bu 2 +\fB\fCscale_relative_to_dpi = integer\fR : If set to a non\-zero value, HiDPI scaling is enabled. Each panel is visible on a different monitor. Thus each panel has a specific scaling factor. The scaling factor is computed as the ratio between the monitor DPI (obtained from the dimensions in pixels and millimeters from RandR) and a configured reference DPI \- this is the DPI for which exising user configs looked normal, for backward compatibility. .RE .PP .RS
M doc/tint2.mddoc/tint2.md

@@ -279,6 +279,8 @@ * `panel_size = width height`

* `width` and `height` can be specified without units (e.g. `123`) as pixels, or followed by `%` as percentages of the monitor size (e.g. `50%`). Use `100%` for full monitor width/height. Example: + * `scale_relative_to_dpi = integer` : If set to a non-zero value, HiDPI scaling is enabled. Each panel is visible on a different monitor. Thus each panel has a specific scaling factor. The scaling factor is computed as the ratio between the monitor DPI (obtained from the dimensions in pixels and millimeters from RandR) and a configured reference DPI - this is the DPI for which exising user configs looked normal, for backward compatibility. + ``` # The panel's width is 94% the size of the monitor, the height is 30 pixels: panel_size = 94% 30