]> git.mdlowis.com Git - proto/labwc.git/commit
osd: add window-switcher custom field (#1670)
authordroc12345 <80716141+droc12345@users.noreply.github.com>
Wed, 10 Apr 2024 22:39:31 +0000 (17:39 -0500)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 22:39:31 +0000 (23:39 +0100)
commitd672765ea7c684c7b61cc277e7fd310f723effbd
treecb2222476ab7925d0af9eeb01064b593b37df202
parent2bf285a2c6ee70a3c796e4384afb7349dcd290bf
osd: add window-switcher custom field (#1670)

Add custom field with subset of printf style formatting
to replace the original field formats.

Example:

    <windowSwitcher preview="no" outlines="no" allWorkspaces="yes">
      <fields>
        <field content="custom" format="foobar %b %3s %-10o %-20W %-10i%t" width="100%" />
      </fields>
    </windowSwitcher>

Mono space font recommended. May need OSD width adjusted

Co-authored-by: @Consolatis (based on work done by them)
13 files changed:
docs/labwc-config.5.scd
docs/rc.xml.all
include/config/rcxml.h
include/labwc.h
include/osd.h [new file with mode: 0644]
src/action.c
src/config/rcxml.c
src/desktop.c
src/input/keyboard.c
src/meson.build
src/osd.c
src/osd_field.c [new file with mode: 0644]
src/view.c