diff --git a/docs/modules/Launcher.md b/docs/modules/Launcher.md index 3d6dfa8..6efa18e 100644 --- a/docs/modules/Launcher.md +++ b/docs/modules/Launcher.md @@ -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_icons` | `boolean` | `true` | Whether to show app icons on the button. | | `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 | | `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. | diff --git a/docs/modules/Menu.md b/docs/modules/Menu.md index 793f4d0..ba8becd 100644 --- a/docs/modules/Menu.md +++ b/docs/modules/Menu.md @@ -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_icon` | `string` | `null` | Icon to show on the menu button on the bar. | | `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.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. | diff --git a/src/modules/launcher/mod.rs b/src/modules/launcher/mod.rs index 13338c8..e7cd9d9 100644 --- a/src/modules/launcher/mod.rs +++ b/src/modules/launcher/mod.rs @@ -108,6 +108,9 @@ pub struct LauncherModule { #[serde(default, flatten)] layout: LayoutConfig, + /// Command used to launch applications. + /// + /// **Default**: `gtk-launch` #[serde(default = "default_launch_command")] launch_command: String, diff --git a/src/modules/menu/config.rs b/src/modules/menu/config.rs index 8efe994..1b84ae3 100644 --- a/src/modules/menu/config.rs +++ b/src/modules/menu/config.rs @@ -125,6 +125,9 @@ pub struct MenuModule { #[serde(flatten)] pub common: Option, + /// Command used to launch applications. + /// + /// **Default**: `gtk-launch` #[serde(default = "default_launch_command")] pub launch_command: String, }