Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created July 19, 2013 16:12

Revisions

  1. Alex Young created this gist Jul 19, 2013.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/usr/bin/env sh
    ioreg -l | grep -i capacity | tr '\n' ' | ' | awk '{printf("%.2f%%\n", $10/$5 * 100)}'
    10 changes: 10 additions & 0 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    set -g status on
    set -g status-utf8 on
    set -g status-interval 2
    set -g status-fg black
    set -g status-bg colour232
    set -g status-right '#[bg=colour233] #[fg=white,bg=colour234] %T #[fg=yellow,bg=colour233] #[bg=colour232] #(/Users/alex/Documents/Code/dotfiles2/bin/mac-battery.sh)'
    set -g status-left '#[fg=colour16,bg=colour232,bold] #S #[fg=colour254,bg=colour234,nobold]'
    set -g window-status-format "#[fg=colour16,bg=colour234] #I #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
    set -g window-status-current-format "#[fg=colour117,bg=colour31] #I #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
    set -g window-status-separator ""