summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-gpubar
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-09 20:07:10 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-09 20:07:10 +0100
commitb3fdb09a1c512738fbe42aefb80a92b4560a5677 (patch)
treeea7d4736c323646707e33eaa3589ff321df2f622 /.local/bin/statusbar/sb-gpubar
parentbec891dac2cc69a75e4c5d273b4a1f3893f5b14b (diff)
Update icons for statusbar scripts
Diffstat (limited to '.local/bin/statusbar/sb-gpubar')
-rwxr-xr-x.local/bin/statusbar/sb-gpubar20
1 files changed, 10 insertions, 10 deletions
diff --git a/.local/bin/statusbar/sb-gpubar b/.local/bin/statusbar/sb-gpubar
index d19995d..2fe6658 100755
--- a/.local/bin/statusbar/sb-gpubar
+++ b/.local/bin/statusbar/sb-gpubar
@@ -4,23 +4,23 @@
case $BLOCK_BUTTON in
2) setsid -f "$TERMINAL" -e gpuwatch ;;
- 3) notify-send " GPU load module" "The bar represents
+ 3) notify-send "󰢮 GPU load module" "The bar represents
GPU load";;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
# id total idle
load=$(nvidia-smi --query-gpu=utilization.memory --format=csv | awk 'FNR == 2 {print $1}')
-printf "GPU: "
+printf ""
case "$load" in
- [0-9]) printf "▁";;
- 1[0-9]) printf "▂";;
- 2[0-9]) printf "▃";;
- 3[0-9]) printf "▄";;
- 4[0-9]) printf "▅";;
- 5[0-9]) printf "▆";;
- 6[0-9]) printf "▇";;
- 7[0-9]) printf "█";;
+ [0-9]|1[0-9]) printf "▁";;
+ 2[0-9]) printf "▂";;
+ 3[0-9]) printf "▃";;
+ 4[0-9]) printf "▄";;
+ 5[0-9]) printf "▅";;
+ 6[0-9]) printf "▆";;
+ 7[0-9]) printf "▇";;
+ 8[0-9]) printf "█";;
*) printf "█";;
esac
printf "\\n"