Skip to content

Instantly share code, notes, and snippets.

@NateBrune
Created April 6, 2016 17:56
Show Gist options
  • Save NateBrune/ad84da1ebd5c153d9b1f087c5dc27ee6 to your computer and use it in GitHub Desktop.
Save NateBrune/ad84da1ebd5c153d9b1f087c5dc27ee6 to your computer and use it in GitHub Desktop.
MAX0="$(cat /sys/class/power_supply/BAT0/charge_full)"
CAP0="$(cat /sys/class/power_supply/BAT0/charge_now)"
BAT="$(echo "100*(${CAP0})/(${MAX0})" | bc)"
echo $BAT%
# This is a comment
interval=1
color=#ebdbb2
[wifi]
label=
command=iwgetid -r
[volume]
label=
command=vol.sh
[battery]
label=
command=bat.sh
[datetime]
label=
command=date '+%b %-d / %-l:%M %p '
echo `(pactl list sinks | grep "front-left:")| awk '{print $5}' | awk 'NR==2 {print}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment