diff options
| author | tslil clingman <> | 2021-01-24 20:23:19 -0500 |
|---|---|---|
| committer | tslil clingman <> | 2021-01-24 20:23:19 -0500 |
| commit | 3c79bbc4529f62d462f6807f354b6b4c5e3477e6 (patch) | |
| tree | 3df4f41d1a19eb0e48e60d75f580ff1d8d47b093 /dwm_status | |
| parent | 515c31a1f08d7ba500bf7261d7018a250dfd9779 (diff) | |
| parent | 92f24df41be941d407965368a9c84b7f061fddb8 (diff) | |
Merge branch 'master' of git.sr.ht:~tslil/scripts
Diffstat (limited to 'dwm_status')
| -rwxr-xr-x | dwm_status | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dwm_status b/dwm_status new file mode 100755 index 0000000..947d9ad --- /dev/null +++ b/dwm_status @@ -0,0 +1,13 @@ +#!/bin/sh + +n=0 +while true; do + if [ "$(( $n % 2 ))" = "0" ]; then + bat="$(battery)" + fi; + time="$(date +%d/%Hh%M)" + temp="$(( $(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C" + xsetroot -name "$temp | $bat | $time" + n=$(( $n + 1 )) + sleep 30s +done |
