Created
April 6, 2016 17:56
-
-
Save NateBrune/ad84da1ebd5c153d9b1f087c5dc27ee6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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