documentation
This commit is contained in:
parent
e290571fee
commit
b662f2e10d
5 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue