mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-25 20:40:24 +10:00
Adding a conky
This commit is contained in:
12
.config/conky/qtile/Mimosa/scripts/cputemp.sh
Executable file
12
.config/conky/qtile/Mimosa/scripts/cputemp.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Variable
|
||||
temp=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||
cputemp=$(expr $temp / 1000)
|
||||
base=32
|
||||
|
||||
# Main
|
||||
Fahrenheit=$(expr $cputemp \* 9 / 5 + $base)
|
||||
echo $Fahrenheit
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user