all repos — dotfiles @ 694b92e8797f094c3413e8bcc13b68fe5dc39cb2

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