Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kody-Quintana/bspwm_border_color
VIM mode indicator for bspwm
https://github.com/Kody-Quintana/bspwm_border_color
bspwm vim
Last synced: about 1 month ago
JSON representation
VIM mode indicator for bspwm
- Host: GitHub
- URL: https://github.com/Kody-Quintana/bspwm_border_color
- Owner: Kody-Quintana
- Created: 2019-11-16T22:40:57.000Z (about 5 years ago)
- Default Branch: chwb
- Last Pushed: 2023-12-18T04:39:23.000Z (about 1 year ago)
- Last Synced: 2024-12-09T11:33:09.544Z (about 2 months ago)
- Topics: bspwm, vim
- Language: Vim Script
- Size: 17.6 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
December 2023: consider using https://github.com/Kody-Quintana/x11-border-color.nvim instead
# bspwm vim mode indicator
Vim plugin to show what mode vim is in by changing bspwm's active border color.![Preview](https://i.imgur.com/Mu0SbTf.gif)
## Installation
Add `Plugin 'Kody-Quintana/bspwm_border_color'` to `~/.vimrc`and run `:PluginInstall` or appropriate equivalent for your plugin manager.
## Enabling FocusGained event
Regular vim in a terminal doesn't support the FocusGained event by default.
To enable it you will need a plugin.
I personally use [amerlyq/vim-focus-autocmd](https://github.com/amerlyq/vim-focus-autocmd).## Defining custom colors
Custom colors can be used by defining
`g:bspwm_border_insert_color` and `g:bspwm_border_normal_color` to a hex color (with no leading #)
```vimscript
let g:bspwm_border_normal_color = "00FF00"
let g:bspwm_border_insert_color = "FF0000"
```
## Requirements
- chwb (from [wmutils](https://github.com/wmutils/core)) - used to set color of window border
- A terminal that sets the `$WINDOWID` environment variable