use proper cpu sensor in i3bar pc-mans && add simpscan.sh script
This commit is contained in:
parent
b90c2531f4
commit
5658204f93
7
bin/dot-bin/simpscan.sh
Executable file
7
bin/dot-bin/simpscan.sh
Executable 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
|
@ -29,7 +29,7 @@ binmode(STDOUT, ":utf8");
|
|||||||
# default values
|
# default values
|
||||||
my $t_warn = $ENV{T_WARN} || 70;
|
my $t_warn = $ENV{T_WARN} || 70;
|
||||||
my $t_crit = $ENV{T_CRIT} || 90;
|
my $t_crit = $ENV{T_CRIT} || 90;
|
||||||
my $chip = $ENV{SENSOR_CHIP} || "";
|
my $chip = $ENV{SENSOR_CHIP} || "k10temp-pci-00c3";
|
||||||
my $temperature = -9999;
|
my $temperature = -9999;
|
||||||
my $label = "😀 ";
|
my $label = "😀 ";
|
||||||
my $label = "😀 ";
|
my $label = "😀 ";
|
||||||
|
Loading…
Reference in New Issue
Block a user