slint/examples/bash
Olivier Goffart 396820243d Fix typo and size in the sysinfo script
(The default size was too small to see the picture on my machine because of
the long CPU string)
2021-10-08 19:22:30 +02:00
..
laptop.svg Add an icon to the general tab 2021-10-08 09:33:09 +02:00
README.md Update examples/bash/README.md 2021-10-08 09:33:09 +02:00
simple_input.sh Fix capitalization of simple input dialog 2021-10-06 16:15:32 +02:00
sysinfo.60 Fix typo and size in the sysinfo script 2021-10-08 19:22:30 +02:00
sysinfo_linux.sh Fix typo and size in the sysinfo script 2021-10-08 19:22:30 +02:00
sysinfo_macos.sh Split out the memory into a separate tab 2021-10-08 09:33:09 +02:00

SixtyFPS Bash example

This shows how to use sixtyfps-viewer to display dialog from a bash script.

This assume that the sixtyfps-viewer tool is in patch. This can be achieved with cargo install. (use the --path tools/viewer option to install it from the current repository.)

cargo install sixtyfps-viewer

The examples also assume that jq is in the path

  • simple_input.sh: shows how to query a few parameter with bash
  • sysinfo_linux.sh/sysinfo_macos.sh: show how to display the result of bash commands.

Attributions

The laptop.svg icon is emoji_u1f4bb.svg from the Noto Emoji font from https://github.com/googlefonts/noto-emoji and licensed under the terms of the Apache license, version 2.0; copyright Google Inc.