all repos — dotfiles @ 61fed1b49b25bdaee135fa1488ea5435edd10b72

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