Compare commits
No commits in common. "master" and "conky-cli-colors" have entirely different histories.
master
...
conky-cli-
@ -15,3 +15,5 @@ I have implemented `conky_printf`, a generalized function for printing conky
|
||||
data to the output string. It needs more testing, as I'm sure there are edge
|
||||
cases where it doesn't work properly.
|
||||
|
||||
TODO: Add color to the conky output! That will take if statments, and text
|
||||
for dmenu to consume.
|
||||
|
18
core_temp.sh
18
core_temp.sh
@ -1,18 +0,0 @@
|
||||
#!/bin/zsh
|
||||
temp=$(sensors | grep 'Package id' | awk '{print $4}')
|
||||
|
||||
if [[ "${1}" == "-t" ]]; then
|
||||
shift
|
||||
echo -n "${temp}"
|
||||
else
|
||||
val=$(grep -Po '[\d.]+' <<< ${temp})
|
||||
|
||||
|
||||
if [[ ${val} -le 30.0 ]]; then
|
||||
printf "^fg(#0000cc)"
|
||||
elif [[ ${val} -le 60.0 ]]; then
|
||||
printf "^fg(#cc7700)"
|
||||
elif [[ ${val} -gt 60.0 ]]; then
|
||||
printf "^fg(#cc0000)"
|
||||
fi
|
||||
fi
|
17
nvme_temp.sh
17
nvme_temp.sh
@ -1,17 +0,0 @@
|
||||
#!/bin/zsh
|
||||
temp=$(sensors nvme-pci-3e00 | grep Composite | awk '{print $2}')
|
||||
|
||||
if [[ "${1}" == "-t" ]]; then
|
||||
shift
|
||||
echo -n "${temp}"
|
||||
else
|
||||
val=$(grep -Po '[\d.]+' <<< ${temp})
|
||||
|
||||
if [[ ${val} -le 30.0 ]]; then
|
||||
printf "^fg(#0000cc)"
|
||||
elif [[ ${val} -le 60.0 ]]; then
|
||||
printf "^fg(#cc7700)"
|
||||
elif [[ ${val} -gt 60.0 ]]; then
|
||||
printf "^fg(#cc0000)"
|
||||
fi
|
||||
fi
|
19
virt_temp.sh
19
virt_temp.sh
@ -1,19 +0,0 @@
|
||||
#!/bin/zsh
|
||||
|
||||
#!/bin/zsh
|
||||
temp=$(sensors pch_skylake-virtual-0 | grep temp1 | awk '{print $2}')
|
||||
|
||||
if [[ "${1}" == "-t" ]]; then
|
||||
shift
|
||||
echo -n "${temp}"
|
||||
else
|
||||
val=$(grep -Po '[\d.]+' <<< ${temp})
|
||||
|
||||
if [[ ${val} -le 30.0 ]]; then
|
||||
printf "^fg(#0000cc)"
|
||||
elif [[ ${val} -le 60.0 ]]; then
|
||||
printf "^fg(#cc7700)"
|
||||
elif [[ ${val} -gt 60.0 ]]; then
|
||||
printf "^fg(#cc0000)"
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user