Connectivity
Shows an icon based on the status of the SSH connection.
Import this State Bar Item to WebSSH
JavaScript Content
1
2
3
4
5
6
7
8
(function() {
let icon = $ssh.isConnected() ? 'cable.connector' : 'cable.connector.slash'
return {
label: $vars.get('WEBSSH_CONNECTION_NAME'),
icon
}
})();
Icon
cable.connector
Compatibility
WebSSH >=30.0
iOS >=26.0
iPadOS >=26.0
macOS >=26.0
Supported Targets
Linux
macOS
FreeBSD
Windows
Needed Capabilities
The table below lists the capabilities required for this script to operate. Capabilities marked as “Safe” are generally considered secure. Capabilities with a “Warning” level indicate that, while they are typically acceptable, their safety cannot be fully guaranteed in all scenarios. For your peace of mind, we recommend reviewing the script before running it.
Capability Safety Level ssh_isConnected 🟢 Safe vars_get 🟢 Safe
Additional Information
Tiny script that shows an icon based on the status of the SSH connection. It uses the $ssh.isConnected to determine if the connection is active or not. If the connection is active, it shows a connected cable icon; otherwise, it shows a disconnected cable icon. It also displays the connection name as the label.
This content is licensed under MIT by the author.Trending Tags