https://github.com/mcartmell/powerline-segment-sghaze
Powerline segment for displaying PSI readings in Singapore
https://github.com/mcartmell/powerline-segment-sghaze
Last synced: 4 months ago
JSON representation
Powerline segment for displaying PSI readings in Singapore
- Host: GitHub
- URL: https://github.com/mcartmell/powerline-segment-sghaze
- Owner: mcartmell
- License: mit
- Created: 2014-06-30T13:44:04.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-30T14:15:04.000Z (almost 11 years ago)
- Last Synced: 2025-01-10T09:13:22.364Z (5 months ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Singapore Haze Powerline Segment
A [Powerline](https://github.com/Lokaltog/powerline) segment for displaying the
[PSI](http://www.nea.gov.sg/psi/) reading in Singapore.# Installing
1. First, install this module:
```
$ pip install git+https://github.com/mcartmell/powerline-segment-sghaze
```2. If you already have Powerline configuration in your `~/.config`, skip this step. Otherwise, copy the entire set of default Powerline configuration files to your user's config directory:
```
mkdir ~/.config/powerline
cp -R /path/to/powerline/config_files/* ~/.config/powerline
```3. Now define colours for it, eg. by editing `~/.config/powerline/colorschemes/tmux/default.json`
```
"sghaze": { "fg": "gray10", "bg": "black" }
```4. Finally, add this module to your segment configuration, eg. `~/.config/powerline/themes/tmux/default.json`
```
{
"name": "sghaze",
"module": "powerline_sghaze.segments",
"args": {
"area": "West"
}
},
```It looks like this for me:
