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
### Keybase proof | |
I hereby claim: | |
* I am joshua-mcintosh on github. | |
* I am mcinjosh (https://keybase.io/mcinjosh) on keybase. | |
* I have a public key whose fingerprint is FC17 D05E FB58 B2F6 67FA B43B 9F2B FE37 0035 A82B | |
To claim this, I am signing this object: |
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
batt_stat() { | |
batt_perc=$(acpi -b |awk -e 'sub(/%/,"") { print $4 }' |sed -e 's/,//') | |
if acpi -b |egrep 'Charg|Full' >/dev/null | |
then | |
batt_sym="\x05" | |
elif [[ $batt_perc -lt 20 ]] | |
then | |
batt_sym="\x03 " | |
else | |
batt_sym="\x01 " |
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
/* See LICENSE file for copyright and license details. */ | |
/* appearance */ | |
//static const char font[] = "-*-stlarch-*-*-*-*-*-10-*-*-*-*-*-*" "," "Inconsolata for Powerline:Medium:pixelsize=10:antialias=true:hinting=true"; | |
static const char font[] = "-*-stlarch-*-*-*-*-12-*-*-*-*-*-*-*" "," "-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*"; | |
#define NUMCOLORS 5 | |
static const char colors[NUMCOLORS][ColLast][9] = { | |
/* border foreground background */ | |
/* gaia2 */ | |
{ "#444444", "#bbbbbb", "#222222" }, // 1 = normal |