mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-24 01:02:38 +00:00
| .. | ||
| laptop.svg | ||
| laptop.svg.license | ||
| README.md | ||
| simple_input.sh | ||
| sysinfo.slint | ||
| sysinfo_linux.sh | ||
| sysinfo_macos.sh | ||
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 path. 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 bashsysinfo_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.