Command line client for AutoC4.
  • Python 69.3%
  • Vim Script 25.4%
  • zsh 5.3%
Find a file
2026-02-19 17:32:38 +01:00
.gitattributes Revert "Define filetype via vim modeline." 2026-02-09 13:39:07 +01:00
.gitignore Added __pycache__ 2017-03-14 14:40:52 +01:00
_c4ctrl Complete Busleisten text with current value. 2026-02-09 17:12:38 +01:00
c4ctrl.py Bugfix: use readline(), not read() 2026-02-13 19:00:34 +01:00
c4ctrl.vim Facilitate spellchecking in Busleiste. 2026-02-19 17:32:38 +01:00
LICENSE Initial commit 2017-03-11 13:51:40 +01:00
README.md Mention code completion. 2026-02-18 18:19:43 +01:00

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.