defaultConfigYaml top-level constant
String
const defaultConfigYaml
Default unified config: settings scalars + scrcpy plugin.
Implementation
const String defaultConfigYaml = '''
# Simutil configuration
#
# Press <e> in the app to open this file in your default editor.
# Plugin changes apply after restart (or press <r> to refresh devices).
theme: dark
last_selected_device_id: ~
# Plugins
#
# Define external shell-command plugins here. Each plugin groups one or more
# commands. In the app press <p> on a selected device to pick a plugin and then
# a command to run. You can also give a command a "shortcut" to run it directly.
#
# Template variables available in "args":
# {device.id}, {device.name}, {device.platform}, {device.os}, {device.state}
#
# Command fields:
# id, label (required) identity shown in the menu
# command (required) executable to run
# args (optional) list of arguments, supports templates
# description (optional) help text shown under the label
# platforms (optional) [android, ios] filter; empty = any
# requires_running (optional) only show when the device is running
# mode (optional) detached (default) | inherit
# shortcut (optional) single key to run this command directly
plugins:
- id: scrcpy
label: scrcpy
description: Screen mirroring and control for Android
availability:
command: scrcpy
args: [--version]
commands:
- id: mirror
label: Screen Mirror
description: Mirror the device screen
command: scrcpy
args: [-s, "{device.id}"]
platforms: [android]
requires_running: true
mode: detached
shortcut: s
- id: mirror-no-audio
label: Screen Mirror (No Audio)
description: Mirror without forwarding audio
command: scrcpy
args: [-s, "{device.id}", --no-audio]
platforms: [android]
requires_running: true
mode: detached
''';