mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
Add documentation for launch_command
This commit is contained in:
parent
931807e326
commit
c2d55a1963
4 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,7 @@ Optionally displays a launchable set of favourites.
|
||||||
| `show_names` | `boolean` | `false` | Whether to show app names on the button label. Names will still show on tooltips when set to false. |
|
| `show_names` | `boolean` | `false` | Whether to show app names on the button label. Names will still show on tooltips when set to false. |
|
||||||
| `show_icons` | `boolean` | `true` | Whether to show app icons on the button. |
|
| `show_icons` | `boolean` | `true` | Whether to show app icons on the button. |
|
||||||
| `icon_size` | `integer` | `32` | Size to render icon at (image icons only). |
|
| `icon_size` | `integer` | `32` | Size to render icon at (image icons only). |
|
||||||
|
| `launch_command` | `string` | `gtk-launch` | Command used to launch applications. |
|
||||||
| `reversed` | `boolean` | `false` | Whether to reverse the order of favorites/items |
|
| `reversed` | `boolean` | `false` | Whether to reverse the order of favorites/items |
|
||||||
| `minimize_focused` | `boolean` | `true` | Whether to minimize a focused window when its icon is clicked. Only minimizes single windows. |
|
| `minimize_focused` | `boolean` | `true` | Whether to minimize a focused window when its icon is clicked. Only minimizes single windows. |
|
||||||
| `truncate.mode` | `'start'` or `'middle'` or `'end'` or `off` | `end` | Location of the ellipses and where to truncate text from. Applies to application names when `show_names` is enabled. |
|
| `truncate.mode` | `'start'` or `'middle'` or `'end'` or `off` | `end` | Location of the ellipses and where to truncate text from. Applies to application names when `show_names` is enabled. |
|
||||||
|
|
|
@ -20,6 +20,7 @@ It is also possible to add custom categories and actions into the menu.
|
||||||
| `label` | `string` | `≡` | Label to show on the menu button on the bar. |
|
| `label` | `string` | `≡` | Label to show on the menu button on the bar. |
|
||||||
| `label_icon` | `string` | `null` | Icon to show on the menu button on the bar. |
|
| `label_icon` | `string` | `null` | Icon to show on the menu button on the bar. |
|
||||||
| `label_icon_size` | `integer` | `16` | Size of the label_icon image. |
|
| `label_icon_size` | `integer` | `16` | Size of the label_icon image. |
|
||||||
|
| `launch_command` | `string` | `gtk-launch` | Command used to launch applications. |
|
||||||
| `truncate` | `'start'` or `'middle'` or `'end'` or `off` or `Map` | `off` | Applies to popup. The location of the ellipses and where to truncate text from. Leave null to avoid truncating. Use the long-hand `Map` version if specifying a length. |
|
| `truncate` | `'start'` or `'middle'` or `'end'` or `off` or `Map` | `off` | Applies to popup. The location of the ellipses and where to truncate text from. Leave null to avoid truncating. Use the long-hand `Map` version if specifying a length. |
|
||||||
| `truncate.mode` | `'start'` or `'middle'` or `'end'` or `off` | `off` | Applies to popup. The location of the ellipses and where to truncate text from. Leave null to avoid truncating. |
|
| `truncate.mode` | `'start'` or `'middle'` or `'end'` or `off` | `off` | Applies to popup. The location of the ellipses and where to truncate text from. Leave null to avoid truncating. |
|
||||||
| `truncate.length` | `integer` | `null` | Applies to popup. The fixed width (in chars) of the widget. Leave blank to let GTK automatically handle. |
|
| `truncate.length` | `integer` | `null` | Applies to popup. The fixed width (in chars) of the widget. Leave blank to let GTK automatically handle. |
|
||||||
|
|
|
@ -108,6 +108,9 @@ pub struct LauncherModule {
|
||||||
#[serde(default, flatten)]
|
#[serde(default, flatten)]
|
||||||
layout: LayoutConfig,
|
layout: LayoutConfig,
|
||||||
|
|
||||||
|
/// Command used to launch applications.
|
||||||
|
///
|
||||||
|
/// **Default**: `gtk-launch`
|
||||||
#[serde(default = "default_launch_command")]
|
#[serde(default = "default_launch_command")]
|
||||||
launch_command: String,
|
launch_command: String,
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,9 @@ pub struct MenuModule {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub common: Option<CommonConfig>,
|
pub common: Option<CommonConfig>,
|
||||||
|
|
||||||
|
/// Command used to launch applications.
|
||||||
|
///
|
||||||
|
/// **Default**: `gtk-launch`
|
||||||
#[serde(default = "default_launch_command")]
|
#[serde(default = "default_launch_command")]
|
||||||
pub launch_command: String,
|
pub launch_command: String,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue