added .local/bin/ for scripts

This commit is contained in:
Joel Mathew Thomas
2024-04-11 00:22:49 +05:30
parent 3e490de80a
commit c6aa25647e
4 changed files with 91 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Check if the file exists
if [ -f ~/.local/bin/fanctl ]; then
# Read the values of text, class, and tooltip
source ~/.local/bin/stats/fanstat
# Output the values in JSON format using printf
printf '{"text": "%s", "tooltip": "%s", "class": "%s"}\n' "$text" "$tooltip" "$class"
else
echo "{\"error\": \"File not found\"}"
fi