Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pronobis/powerline_iconcwd
A Powerline cwd segment with support for folder/path icons
https://github.com/pronobis/powerline_iconcwd
Last synced: 15 days ago
JSON representation
A Powerline cwd segment with support for folder/path icons
- Host: GitHub
- URL: https://github.com/pronobis/powerline_iconcwd
- Owner: pronobis
- License: mit
- Created: 2018-10-23T09:06:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T09:20:31.000Z (about 6 years ago)
- Last Synced: 2024-08-01T18:29:43.360Z (4 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
powerline_iconcwd
=================A drop in replacement for the stock `cwd` segment in
[powerline](https://github.com/powerline/powerline), which allows for specifying
icons for paths/folders. To add an icon for a path, simply create a hidden file
`.powerline_icon` containing the desired glyphs at that path.![screenshot](https://github.com/pronobis/powerline_iconcwd/blob/master/screenshot.png)
Installation
------------The segment can be installed with pip:
```shell
pip install git+https://github.com/pronobis/powerline_iconcwd.git
```It uses an additional custom highlight group `cwd:icon`. This group must be defined in `.config/powerline/colorschemes/default.json`. A custom color can be defined in `.config/powerline/colors.json`.
For example, to get the result shown in the screenshot, add to `.config/powerline/colorschemes/default.json`:
```json
{
"groups": {
"cwd:icon": { "fg": "white", "bg": "iconcwd", "attrs": [] }
}
}
```and to `.config/powerline/colors.json`:
```json
{
"colors": {
"iconcwd": 96
}
}
```The segment uses default icons for the home and root folders (if `.powerline_icon` is not found). To override those, add the following to your default top theme:
```json
{
"segment_data": {
"powerline_iconcwd.cwd": {
"args": {
"root_icon": "",
"home_icon": ""
}
}
}
}
```License
-------Licensed under [the MIT License](https://github.com/pronobis/powerline_iconcwd/blob/master/LICENSE).