Skip to content

Instantly share code, notes, and snippets.

View mattgemmell's full-sized avatar

Matt Gemmell mattgemmell

View GitHub Profile
@mattgemmell
mattgemmell / tmuxBattery.rb
Last active February 11, 2016 08:36 — forked from mikerudolph/tmuxBattery.rb
Ruby script to pipe `pmset` for battery info and display status back in readable text. Created for display in tmux status bar.
#!/usr/bin/env ruby
# encoding utf-8
status = Hash.new()
if ARGF === nil
puts "NA"
exit
end
### Keybase proof
I hereby claim:
* I am mattgemmell on github.
* I am mattgemmell (https://keybase.io/mattgemmell) on keybase.
* I have a public key whose fingerprint is BCCB 5FC3 82B2 6054 4EEA 069E E0C5 652C 400E 4F53
To claim this, I am signing this object: