Skip to content

Vxider/iterm-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iterm-components

Custom status bar components for use with iTerm2

Table of Contents

Prerequisites

The components use glyphs from a patched NERDfont. So you need to install a NERDfont and set it as the default font for status bar components.

I use the Source Code Pro patched NERDfont, this and other NERDfonts can be found in Nerd Font. The status bar font of iTerm2 can be setted in iTerm Preferences->Profile->Session->Configure Status Bar->Advanced.

components

components

Installation

  1. git clone https://github.com/Vxider/iterm-components.git && cd iterm-components
  2. Install iStats by gem install iStats. (Used by CPU temperature and Fan speed)
  3. Install script to iTerm2 by using ./install.sh. Or copy the scripts you want to ~/Library/Application Support/iTerm2/Scripts/AutoLaunch
  4. Click Scripts > AutoLaunch in the iTerm2 menu bar and select the components you want to be available.
  5. Open iTerm Preferences->Profile->Session->Configure Status Bar and drag the components where you like.

You may need to restart the iTerm after installing the new components to make the scripts loaded.

Components

System

Power wattage

Display the AC power adapter wattage currently connected.

power usage

CPU temperature

Display the CPU temperature.

Requires iStats ruby gem, if Ruby is not installed by rbenv, you may need to modify the istats path in the script.

CPU temperature

Fan speed

Display the fan speed. (Requires iStats ruby gem)

Requires iStats ruby gem, if Ruby is not installed by rbenv, you may need to modify the istats path in the script.

fan speed

Memory usage

Display the memory usage.

fan speed

Battery charge

Display battery charge status and the estimate remaining time.

Charging:

battery charge

battery charge

Charged:

battery charge

Weather

AQI

You need an aqi api token and modify the TOKEN and CITY fields in weather/aqi.py.

aqi

Local weather

Display local weather by darksky-weather.

Install using Homebrew

brew install darksky-weather

weather

Configuration

  • The update interval of each component can be set by changing update_cadence. The unit is second.

About

Custom status bar components for use with iTerm2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published