diff --git a/bin/dot-bin/simpscan.sh b/bin/dot-bin/simpscan.sh new file mode 100755 index 0000000..7baa67c --- /dev/null +++ b/bin/dot-bin/simpscan.sh @@ -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 diff --git a/i3/dot-config/i3/scripts/temperature b/i3/dot-config/i3/scripts/temperature index b682701..c0a4867 100755 --- a/i3/dot-config/i3/scripts/temperature +++ b/i3/dot-config/i3/scripts/temperature @@ -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 = "😀 ";