all repos — dotfiles @ efeacabb189cc3da0924cc034ed369e0477300e7

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