all repos — dotfiles @ 4ef5778216d93754b929aaacb93633abba5e0223

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