init for refresh_rate NOT WORKING

This commit is contained in:
Ethan Edwards 2020-08-09 01:50:07 -04:00
parent 288cdc5a99
commit 695a67531f
4 changed files with 8 additions and 4 deletions

View file

@ -23,7 +23,7 @@ main()
{
cpu_percent=$(get_percent)
echo "CPU $cpu_percent"
sleep 10
sleep $RATE
}
# run main driver

View file

@ -32,6 +32,10 @@ main()
show_ram_usage=$(get_tmux_option "@dracula-ram-usage" false)
show_gpu_usage=$(get_tmux_option "@dracula-gpu-usage" false)
show_time=$(get_tmux_option "@dracula-show-time" true)
show_refresh=$(get_tmux_option "@dracula-refresh-rate" 5)
# exporting the value for the other scripts to read
export RATE=$show_refresh
# Dracula Color Pallette
white='#f8f8f2'
@ -79,7 +83,7 @@ main()
esac
# sets refresh interval to every 5 seconds
tmux set-option -g status-interval 5
tmux set-option -g status-interval $show_refresh
# set clock to 12 hour by default
tmux set-option -g clock-mode-style 12

View file

@ -29,7 +29,7 @@ main()
{
gpu_usage=$(get_gpu)
echo "GPU $gpu_usage"
sleep 10
sleep $RATE
}
# run the main driver
main

View file

@ -39,7 +39,7 @@ main()
{
ram_percent=$(get_percent)
echo "RAM $ram_percent"
sleep 10
sleep $RATE
}
#run main driver