diff options
author | David Phillips <david@yeah.nah.nz> | 2020-09-20 20:13:35 +1200 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2020-09-20 20:13:35 +1200 |
commit | 45655b50d04d58b65fd3e8c38ac563a43e28abeb (patch) | |
tree | 4a8a27ed9919ab226bc9d08484fa877efb7b9498 | |
parent | 1ebcb1eddea42f8b1911fde06909fda3ecaeae86 (diff) | |
download | dotfiles-45655b50d04d58b65fd3e8c38ac563a43e28abeb.tar.xz |
Tidy up dwm bar
-rwxr-xr-x | local/bin/update-dwm-bar | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/local/bin/update-dwm-bar b/local/bin/update-dwm-bar index e9156b1..a9fdf92 100755 --- a/local/bin/update-dwm-bar +++ b/local/bin/update-dwm-bar @@ -4,9 +4,6 @@ DELAY=20 sep=$(echo -e '\u2502') while true; do - if hash upsc 2>/dev/null; then - ups="UPS: $(upsc eaton5e@zoidberg battery.charge)% $sep " - fi currency= if [ ! -z "$(ls -A ~/.cache/currency/)" ] ; then for c in ~/.cache/currency/* ; do @@ -32,14 +29,8 @@ while true; do esac bat_string="$bat_icon $bat $sep " fi - thermal_string="🌡" - for zone in /sys/class/thermal/thermal_zone* ; do - temp="$(cat $zone/temp)" - thermal_string="$thermal_string $(($temp / 1000))," - done - thermal_string="${thermal_string%,} °C" datetime_string=$(date "+%A $sep %d %h %Y $sep %_I:%M %p (UTC%:::z)") - xsetroot -name " $currency$ups$thermal_string $sep $bat_string$datetime_string" || exit + xsetroot -name " $bat_string$datetime_string" || exit sleep "$DELAY" done |