all repos — dotfiles @ ac2d5913500f710415f7ed1ba74c38ee96693ed8

my *nix dotfiles

bin/bar (view raw)

 1#!/bin/sh
 2
 3while :; do
 4    vol="$(sndioctl -n output.level)"
 5    bat="$(bat -q)"
 6    time="$(date +"%H:%M")"
 7    date="$(date.sh)"
 8#    printf '%s\t\t\t\t%s\t\t\t\t%s\t\t\t%s' "$bat" "vol $(echo $vol*100 / 1 | bc)" "$date" "$time"
 9    echo "$(date)"
10    sleep 0.5
11done | ~/code/barito/barito