tmux
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# shellcheck source=scripts/helpers.sh
|
||||
source "$CURRENT_DIR/helpers.sh"
|
||||
|
||||
# script global variables
|
||||
@ -21,13 +22,15 @@ get_icon_settings() {
|
||||
}
|
||||
|
||||
print_icon() {
|
||||
local gpu_temp=$($CURRENT_DIR/gpu_temp.sh | sed -e 's/[^0-9.]//')
|
||||
local gpu_temp_status=$(temp_status $gpu_temp)
|
||||
if [ $gpu_temp_status == "low" ]; then
|
||||
local gpu_temp
|
||||
local gpu_temp_status
|
||||
gpu_temp=$("$CURRENT_DIR"/gpu_temp.sh | sed -e 's/[^0-9.]//')
|
||||
gpu_temp_status=$(temp_status "$gpu_temp")
|
||||
if [ "$gpu_temp_status" == "low" ]; then
|
||||
echo "$gpu_temp_low_icon"
|
||||
elif [ $gpu_temp_status == "medium" ]; then
|
||||
elif [ "$gpu_temp_status" == "medium" ]; then
|
||||
echo "$gpu_temp_medium_icon"
|
||||
elif [ $gpu_temp_status == "high" ]; then
|
||||
elif [ "$gpu_temp_status" == "high" ]; then
|
||||
echo "$gpu_temp_high_icon"
|
||||
fi
|
||||
}
|
||||
@ -36,4 +39,4 @@ main() {
|
||||
get_icon_settings
|
||||
print_icon "$1"
|
||||
}
|
||||
main
|
||||
main "$@"
|
||||
|
Reference in New Issue
Block a user