Commit 4bc5408ace6e645f79140c9fa43b257c4d3ce925

Thomas de Grivel 2021-02-20T13:43:46

t60

diff --git a/bin/battery b/bin/battery
deleted file mode 100755
index 7f3132e..0000000
--- a/bin/battery
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-MAX="$(sysctl -n hw.sensors.acpibat0.watthour0 | cut -d ' ' -f 1)"      
-POWER="$(sysctl -n hw.sensors.acpibat0.watthour3 | cut -d ' ' -f 1)" 
-PERCENT=$({ echo scale=1; echo "$POWER*100/$MAX"; } | bc) 
-echo ${PERCENT}%
diff --git a/bin/battery-t60 b/bin/battery-t60
new file mode 100755
index 0000000..7f3132e
--- /dev/null
+++ b/bin/battery-t60
@@ -0,0 +1,5 @@
+#!/bin/sh
+MAX="$(sysctl -n hw.sensors.acpibat0.watthour0 | cut -d ' ' -f 1)"      
+POWER="$(sysctl -n hw.sensors.acpibat0.watthour3 | cut -d ' ' -f 1)" 
+PERCENT=$({ echo scale=1; echo "$POWER*100/$MAX"; } | bc) 
+echo ${PERCENT}%
diff --git a/bin/status b/bin/status
deleted file mode 100755
index f603a44..0000000
--- a/bin/status
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-xsetroot -name "$(hostname) $(~/bin/egress_interface) $(~/bin/host-ip) $(~/bin/nwid) $(~/bin/load) $(~/bin/temperature) $(~/bin/battery)$(~/bin/plugged) $(date)"
diff --git a/bin/status-t60 b/bin/status-t60
new file mode 100755
index 0000000..6365801
--- /dev/null
+++ b/bin/status-t60
@@ -0,0 +1,2 @@
+#!/bin/sh
+xsetroot -name "$(hostname) $(~/bin/egress_interface) $(~/bin/host-ip) $(~/bin/nwid) $(~/bin/load) $(~/bin/temperature-t60) $(~/bin/battery-t60)$(~/bin/plugged) $(date)"
diff --git a/bin/temperature b/bin/temperature
deleted file mode 100755
index 23f79c8..0000000
--- a/bin/temperature
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-CPUTEMP=$(sysctl -n hw.sensors.acpithinkpad0.temp0 | cut -d\  -f 1)
-MBTEMP=$(sysctl -n hw.sensors.ksmn0.temp0 | cut -d\  -f 1)
-echo "${CPUTEMP}°C ${MBTEMP}°C"