From bff6c85810eb4dbfc11d03bc8cb4d97a3cef8e9f Mon Sep 17 00:00:00 2001 From: q3aql Date: Tue, 12 Aug 2025 11:48:30 +0200 Subject: [PATCH] .config/sway/scripts/cpu_load.sh --- .config/sway/scripts/cpu_load.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/scripts/cpu_load.sh b/.config/sway/scripts/cpu_load.sh index 57fc7e5..f84be8a 100755 --- a/.config/sway/scripts/cpu_load.sh +++ b/.config/sway/scripts/cpu_load.sh @@ -11,7 +11,7 @@ VERSION="1.0" # Variables cpuPercentage=$(top -b -n1 | grep \%Cpu | awk '{print 100-$8}') showCpuPercentage=$(echo ${cpuPercentage}) -showCpuPercentageInteger=$(echo ${showCpuPercentage} | cut -d "." -f 1) +showCpuPercentageInteger=$(echo ${showCpuPercentage} | sed 's/,/./g' |cut -d "." -f 1) # Show percentage bar if [ ${showCpuPercentageInteger} -ge 0 ] ; then