Command line client for AutoC4.
- Python 69.3%
- Vim Script 25.4%
- zsh 5.3%
| .gitattributes | ||
| .gitignore | ||
| _c4ctrl | ||
| c4ctrl.py | ||
| c4ctrl.vim | ||
| LICENSE | ||
| README.md | ||
c4ctrl
Command line client for AutoC4. This repository consists of:
- c4ctrl.py: command line client and python module
- _c4ctrl: completion script for zsh
- c4ctrl.vim: vim/neovim plugin
Dependencies
- Python 3
- Python Paho MQTT library
Usage
c4ctrl.py -h
Preset file location
Preset files are stored in $XDG_CONFIG_HOME/c4ctrl/, defaulting to
$HOME/.config/c4ctrl/.
_c4ctrl
Completion script for zsh.
Installation
Link or move _c4ctrl into any directory in $fpath or extend $fpath
accordingly.
c4ctrl.vim
A vim/neovim plugin to help with the creation and editing of preset files.
c4ctrl[.py] has to be in your $PATH.
Install by putting c4ctrl.vim into your ~/.vim/plugin/ directory or create a
symbolic link there.
Usage
:C4ctrl get -- Read current state into buffer.
:C4ctrl open $name -- Open local preset $name.
:C4ctrl set [w|p|f] -- Apply current buffer or range/selection as preset to
room [w]ohnzimmer, [p]lenarsaal or [f]nordcenter.
Default is all rooms.
:C4ctrl write $name -- Save current buffer as preset $name.
:C4ctrl busleiste -- Edit text of Busleiste.
:C4ctrl busleiste write -- Update text of Busleiste.
Commands and options (except preset names) may be abbreviated. Code completion is available via CTRL-X CTRL-U in insert mode.