Skip to content

Instantly share code, notes, and snippets.

View joshua-mcintosh's full-sized avatar

Joshua McIntosh joshua-mcintosh

  • Bay Area, California
View GitHub Profile
### 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:
@joshua-mcintosh
joshua-mcintosh / .statusline.sh
Created September 18, 2012 22:39
statnot shatus script
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 "
@joshua-mcintosh
joshua-mcintosh / config.h
Created September 17, 2012 22:09
My config.h for dwm -- check date and git history for more
/* 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