https://github.com/dotmpe/chauvet-tmux
Tmux statusbar config in Chauvet theme
https://github.com/dotmpe/chauvet-tmux
Last synced: 3 months ago
JSON representation
Tmux statusbar config in Chauvet theme
- Host: GitHub
- URL: https://github.com/dotmpe/chauvet-tmux
- Owner: dotmpe
- Created: 2022-03-30T17:49:13.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-22T08:06:40.000Z (about 4 years ago)
- Last Synced: 2025-02-22T14:50:01.178Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.rst
Awesome Lists containing this project
README
To use Chauvet with tmux, the easiest currently is to use the Airline and Tmuxline Vim addons. See below.
Alternatively a customized Tmuxline snapshot is included in this repository.
To use it in ``tmux.conf``::
source chauvet-powerline-statusbar.conf
Vim setup
---------
Create a ``vimrc`` section like::
let g:tmuxline_preset = {
\'a' : '#S',
\'b' : [ ' #(whoami)' ],
\'c' : [ ' #(string.sh append-if-len "$(system-status charge-left-unconnected)" " ")#(string.sh prepend-if-len "$(system-status short)" " ")' ],
\'win' : [ '#I#W' ],
\'cwin' : [ ' #I', '#W#F' ],
\'x' : [ '#(tmux-uptime p) #(user-tools weather)' ],
\'y' : [ '%R', "%a%V'%y " ],
\'z' : [ '#h' ] }
let g:tmuxline_separators = {
\ 'left' : '',
\ 'left_alt': '',
\ 'right' : '',
\ 'right_alt' : '',
\ 'space' : ''}
You have to provide your own scripts, above sections are my vimrc.
When Vim starts in a Tmux session, the Tmux status is updated automatically.
Alternatively you can disable Tmuxline auto-update::
let g:airline#extensions#tmuxline#enabled = 0
and generate a snapshot to include in your tmux.conf::
:TmuxlineSnapshot ~/.config/tmux/color.conf
And then further edit the generated file.
..