How to customize tmux status bar with shell scripts
TMUX status bar can be customized to run shell scripts.
In the .tmux.conf file, in the status left or right command execute the shell script using the following syntax,
set -g status-right '| #(shell_script.bash) |'
This will print the output of that shell script in the status bar. Useful if you want to check the size the home directory.
Contents of shell_script.bash example
#!/bin/bash
df -h $HOME | awk '{print $5}' | tail -n 1