iterm-components
iterm-components copied to clipboard
Custom status bar components for use with iTerm2
iterm-components
Custom status bar components for use with iTerm2
Table of Contents
- Prerequisites
- Installation
-
Components
-
System
- Power wattage
- CPU temperature
- Fan speed
- Memory usage
- Battery charge
-
Weather
- AQI
- Local weather
-
System
- Configuration
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
.
Installation
-
git clone https://github.com/Vxider/iterm-components.git && cd iterm-components
- Install iStats by
gem install iStats
. (Used byCPU temperature
andFan speed
) - Install script to iTerm2 by using
./install.sh
. Or copy the scripts you want to~/Library/Application Support/iTerm2/Scripts/AutoLaunch
- Click Scripts > AutoLaunch in the iTerm2 menu bar and select the components you want to be available.
- 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.
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.
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.
Memory usage
Display the memory usage.
Battery charge
Display battery charge status and the estimate remaining time.
Charging:
Charged:
Weather
AQI
You need an aqi api token and modify the TOKEN
and CITY
fields in weather/aqi.py
.
Local weather
Display local weather by darksky-weather.
Install using Homebrew
brew install darksky-weather
Configuration
- The
update interval
of each component can be set by changingupdate_cadence
. The unit is second.