pentest-distro-builder/filesystem/root/.tmux/plugins/tmux-net-speed/scripts/net_speed.sh
Kaj Forney 4fdc60b6a2 Add autologin and custom tmux config.
Former-commit-id: 9f5a64d372
Former-commit-id: 89d8a1302bd2a72239fbe9ad9820be4ecda76cab
2018-09-27 17:40:01 -06:00

16 lines
370 B
Bash
Executable file

#!/bin/bash -
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_DIR/helpers.sh"
main()
{
local download=$("$CURRENT_DIR/download_speed.sh")
local upload=$("$CURRENT_DIR/upload_speed.sh")
## Format output
local format=$(get_tmux_option @net_speed_format "D:%10s U:%10s")
printf "$format" "$download" "$upload"
}
main