mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 02:50:24 +10:00
Fixing temp in conky
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Main
|
||||
cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}')
|
||||
cpuTemp=$(sensors | grep Tctl | head -1 | awk -F '+' '{print $2}')
|
||||
|
||||
if [[ -n $cpuTemp ]]; then
|
||||
echo "$cpuTemp";
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Main
|
||||
cpuTemp=$(sensors | grep Tctl | awk -F '+' '{print $2}')
|
||||
echo "$cpuTemp"
|
||||
cpuTemp=$(sensors | grep Tctl | head -1 | awk -F '+' '{print $2}')
|
||||
|
||||
if [[ -n $cpuTemp ]]; then
|
||||
echo "$cpuTemp";
|
||||
else
|
||||
echo "n/a";
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user