slint/examples/bash
Tobias Hunger 4230ac2572
Update copyright information to reflect name change
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
..
laptop.svg Add an icon to the general tab 2021-10-08 09:33:09 +02:00
laptop.svg.license Update license information 2022-01-20 14:45:02 +01:00
README.md Replace SixtyFPS in many locations (Uppercase) 2022-02-02 15:49:18 +01:00
simple_input.sh Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
sysinfo.slint Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
sysinfo_linux.sh Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
sysinfo_macos.sh Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00

Slint Bash example

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

This assume that the slint-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 slint-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 SIL Open Font License, version 1.1; copyright Google Inc.