use proper cpu sensor in i3bar pc-mans && add simpscan.sh script

This commit is contained in:
Mans Ziesel 2024-10-14 19:14:58 +02:00
parent b90c2531f4
commit 5658204f93
2 changed files with 8 additions and 1 deletions

7
bin/dot-bin/simpscan.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
for arg in "$@"; do
prips "$arg" | \
parallel --timeout 2 -j0 \
'ping -c 1 {} >/dev/null && echo {}' 2>/dev/null
done

View File

@ -29,7 +29,7 @@ binmode(STDOUT, ":utf8");
# default values
my $t_warn = $ENV{T_WARN} || 70;
my $t_crit = $ENV{T_CRIT} || 90;
my $chip = $ENV{SENSOR_CHIP} || "";
my $chip = $ENV{SENSOR_CHIP} || "k10temp-pci-00c3";
my $temperature = -9999;
my $label = "😀 ";
my $label = "😀 ";