mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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>
This commit is contained in:
parent
7028e65154
commit
5765586636
10 changed files with 193 additions and 6 deletions
|
|
@ -19,6 +19,10 @@
|
|||
<reuseOutputMode>no</reuseOutputMode>
|
||||
<xwaylandPersistence>no</xwaylandPersistence>
|
||||
<primarySelection>yes</primarySelection>
|
||||
<!--
|
||||
# See labwc-config(5) for details
|
||||
<promptCommand></promptCommand>
|
||||
-->
|
||||
</core>
|
||||
|
||||
<placement>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue