Skip to content

Instantly share code, notes, and snippets.

@jnovinger
Forked from alexyoung/tmux.conf
Last active August 29, 2015 13:57
Show Gist options
  • Save jnovinger/9454159 to your computer and use it in GitHub Desktop.
Save jnovinger/9454159 to your computer and use it in GitHub Desktop.
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/jason/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 ""
#!/usr/bin/env sh
ioreg -c AppleSmartBattery | grep -i capacity | tr '\n' ' | ' | awk '{printf("%.2f%%\n", $10/$5 * 100)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment