clean up scripts
This commit is contained in:
10
.config/polybar/scripts/system-gpu-intel.sh
Normal file
10
.config/polybar/scripts/system-gpu-intel.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
gpu=$(sudo intel_gpu_frequency --get)
|
||||
|
||||
gpu_cur=$(echo "$gpu" | grep cur | awk '{ print $2 }')
|
||||
gpu_max=$(echo "$gpu" | grep max | awk '{ print $2 }')
|
||||
|
||||
gpu_percent=$(echo "$gpu_cur/$gpu_max*100" | bc -l | cut -d "." -f 1)
|
||||
|
||||
echo "# $gpu_percent %"
|
||||
Reference in New Issue
Block a user