documentation

This commit is contained in:
Ethan Edwards 2020-08-10 08:04:51 -04:00
parent e290571fee
commit b662f2e10d
5 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# function for getting the refresh rate
get_tmux_option() {
local option=$1
local default_value=$2
@ -32,6 +33,7 @@ get_percent()
main()
{
# storing the refresh rate in the variable RATE, default is 5
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
cpu_percent=$(get_percent)
echo "CPU $cpu_percent"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# function for getting the refresh rate
get_tmux_option() {
local option=$1
local default_value=$2
@ -38,6 +39,7 @@ get_gpu()
}
main()
{
# storing the refresh rate in the variable RATE, default is 5
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
gpu_usage=$(get_gpu)
echo "GPU $gpu_usage"

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# function for getting the refresh rate
get_tmux_option() {
local option=$1
local default_value=$2
@ -48,6 +49,7 @@ get_percent()
main()
{
# storing the refresh rate in the variable RATE, default is 5
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
ram_percent=$(get_percent)
echo "RAM $ram_percent"