labwc/src/common
Johan Malm 5765586636 config: add <core><promptCommand>
...to enable configuration of the action prompt command.

Also set some better defaults for labnag.

The new default command is:

    labnag \
        --message '%m' \
        --button-dismiss '%n' \
        --button-dismiss '%y' \
        --background '%b' \
        --text '%t' \
        --border '%t' \
        --border-bottom '%t' \
        --button-background '%b' \
        --button-text '%t' \
        --border-bottom-size 1 \
        --button-border-size 3 \
        --timeout 0

...where the conversion specifiers are defined as follows:

    %m: the `<prompt>` message option
    %n: _("No")
    %y: _("Yes")
    %b: osd.bg.color
    %t: osd.label.text.color

This config options also enables the use of a different dialog client, for
example like this:

    <core>
      <promptCommand>zenity --question --text="%m"</promptCommand>
    </core>
2025-09-24 20:13:51 +01:00
..
box.c src: remove unused #includes (via include-what-you-use) 2025-09-07 19:34:30 +09:00
buf.c config: add <core><promptCommand> 2025-09-24 20:13:51 +01:00
dir.c src: remove unused #includes (via include-what-you-use) 2025-09-07 19:34:30 +09:00
edge.c common: flesh out enum lab_edge and prefer over wlr_edges/wlr_direction 2025-08-26 20:36:43 -04:00
fd-util.c src: include primary header first 2025-07-29 21:51:56 +01:00
file-helpers.c src: include primary header first 2025-07-29 21:51:56 +01:00
font.c font: remove 4px padding on the right 2025-09-22 18:23:33 +01:00
gen-color-table.pl common/graphic-helpers: adopt lookup_named_color from xpm parser 2025-06-18 15:48:24 -04:00
grab-file.c common: remove buf_init(), add BUF_INIT and buf_move() 2024-04-18 07:00:23 +01:00
graphic-helpers.c src: remove unused #includes (via include-what-you-use) 2025-09-07 19:34:30 +09:00
lab-scene-rect.c src: include primary header first 2025-07-29 21:51:56 +01:00
match.c src: include primary header first 2025-07-29 21:51:56 +01:00
mem.c array: use die_if_null() from common/mem.c 2025-09-07 19:17:18 +09:00
meson.build desktop: don't use LAB_NODE_LAYER_SUBSURFACE node type 2025-09-09 18:50:20 +09:00
node-type.c common: add node-type.c/h (renaming ssd_part_type to lab_node_type) 2025-09-06 16:00:20 -04:00
nodename.c src: include primary header first 2025-07-29 21:51:56 +01:00
parse-bool.c include: add config/types.h 2025-08-21 16:55:25 +09:00
parse-double.c src: remove unused #includes (via include-what-you-use) 2025-09-07 19:34:30 +09:00
rgb.txt common/graphic-helpers: adopt lookup_named_color from xpm parser 2025-06-18 15:48:24 -04:00
scene-helpers.c src: remove unused #includes (via include-what-you-use) 2025-09-07 19:34:30 +09:00
set.c src: include primary header first 2025-07-29 21:51:56 +01:00
spawn.c src: remove unused #includes (via include-what-you-use) 2025-09-07 19:34:30 +09:00
string-helpers.c string-helper: add str_space_only() 2025-07-30 20:36:27 +01:00
xcolor-table.h common/graphic-helpers: adopt lookup_named_color from xpm parser 2025-06-18 15:48:24 -04:00
xml.c common/xml.c: fix memory leak in lab_xml_get_bool() 2025-08-06 21:11:42 +01:00