mirror of
https://github.com/o0th/tmux-nova.git
synced 2026-09-10 07:16:28 -04:00
24 lines
740 B
Bash
Executable file
24 lines
740 B
Bash
Executable file
#!/usr/bin/env bash
|
||
export LC_ALL=en_US.UTF-8
|
||
|
||
scripts="$HOME/.tmux/plugins/tmux-cpu/scripts"
|
||
tmux set-option -g @gpu_percentage_format "%5.1f%%"
|
||
tmux set-option -g @gram_percentage_format "%5.1f%%"
|
||
|
||
gpu_temp=$(echo "$($scripts/gpu_temp.sh)" | sed -r 's/[C]+//g')
|
||
|
||
if [[ $gpu_temp -ge 0 ]] && [[ $gpu_temp -le 24 ]]; then
|
||
gpu_thermometer=""
|
||
elif [[ $gpu_temp -ge 25 ]] && [[ $gpu_temp -le 49 ]]; then
|
||
gpu_thermometer=""
|
||
elif [[ $gpu_temp -ge 50 ]] && [[ $gpu_temp -le 74 ]]; then
|
||
gpu_thermometer=""
|
||
elif [[ $gpu_temp -ge 75 ]] && [[ $gpu_temp -le 99 ]]; then
|
||
gpu_thermometer=""
|
||
else
|
||
gpu_thermometer=""
|
||
fi
|
||
|
||
echo "$($scripts/gpu_percentage.sh) ﴿ $($scripts/gram_percentage.sh) $gpu_temp糖$gpu_thermometer"
|
||
|