mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
labwc-config(5): document <promptCommand>
Some checks failed
labwc.github.io / notify (push) Has been cancelled
Some checks failed
labwc.github.io / notify (push) Has been cancelled
This commit is contained in:
parent
5765586636
commit
5fdebedcd9
1 changed files with 48 additions and 0 deletions
|
|
@ -179,6 +179,7 @@ this is for compatibility with Openbox.
|
||||||
<reuseOutputMode>no</reuseOutputMode>
|
<reuseOutputMode>no</reuseOutputMode>
|
||||||
<xwaylandPersistence>no</xwaylandPersistence>
|
<xwaylandPersistence>no</xwaylandPersistence>
|
||||||
<primarySelection>yes</primarySelection>
|
<primarySelection>yes</primarySelection>
|
||||||
|
<promptCommand>[see details below]</promptCommand>
|
||||||
</core>
|
</core>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -265,6 +266,53 @@ this is for compatibility with Openbox.
|
||||||
up/down) in Chromium and electron based clients without inadvertantly
|
up/down) in Chromium and electron based clients without inadvertantly
|
||||||
pasting the primary clipboard. Default is yes.
|
pasting the primary clipboard. Default is yes.
|
||||||
|
|
||||||
|
*<core><promptCommand>*
|
||||||
|
Set command to be invoked for an action prompt (*<action><prompt>*)
|
||||||
|
|
||||||
|
The following conversion specifiers are supported:
|
||||||
|
- *%m*: the *<prompt>* message option
|
||||||
|
- *%n*: "No" (in local language if translation is available)
|
||||||
|
- *%y*: "Yes" (in local language if translation is available)
|
||||||
|
- *%b*: osd.bg.color
|
||||||
|
- *%t*: osd.label.text.color
|
||||||
|
|
||||||
|
The default prompt 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
|
||||||
|
```
|
||||||
|
|
||||||
|
Example 1: The prompt can be configured to use a different dialog client
|
||||||
|
|
||||||
|
```
|
||||||
|
<core>
|
||||||
|
<promptCommand>zenity --question --text="%m"</promptCommand>
|
||||||
|
</core>
|
||||||
|
```
|
||||||
|
|
||||||
|
Example 2: A more complex zenity command could be used:
|
||||||
|
|
||||||
|
```
|
||||||
|
zenity \\
|
||||||
|
--question \\
|
||||||
|
--title="" \\
|
||||||
|
--text="%m" \\
|
||||||
|
--ok-label="%y" \\
|
||||||
|
--cancel-label="%n"
|
||||||
|
```
|
||||||
|
|
||||||
## PLACEMENT
|
## PLACEMENT
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue