Coder Social home page Coder Social logo

i3-config-builder's Introduction

i3-config-builder

Python based configuration assembler. This project takes several separate configuration files and combines them together into the config to be used by i3.

This is to help with managing different i3 configurations for different computers. This project allows for separate config files for different hostnames.

This project can be found at https://github.com/omnibrian/i3-config-builder and is based on the work done by simpss over at https://github.com/simpss/i3_config.

Usage

Command line arguments:

usage: i3-config-builder [-h] [-r] [-c] [-b BASE_DIR] [-d OUTPUT_DIR]

Command line i3 config file builder

optional arguments:
  -h, --help            show this help message and exit
  -r, --restart         Make i3 restart to load config
  -c, --reload          Make i3 to reload config
  -b BASE_DIR, --base-dir BASE_DIR
                        Directory containing input configuration files
  -d OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Directory to output built config

Here is an example call to i3cfgbuild:

i3cfgbuild -b ~/i3-config-builder/examples -d ~/.i3 -c

This command uses the .i3conf files in ~/i3-config-builder/examples to create the config file ~/.i3/config and reloads i3 after the new config file is in place.

Input file name format

All input files must start with a number followed by '-all-' or '-hostname-' to specify any computer or just a specific computer to add the config files. Make sure to make all input files have the .i3conf extension.

Examples:

  • 1-all-mod-key.i3conf
  • 12-chaos-raptor-workspaces.i3conf
  • 12-ghost-workspaces.i3conf
  • 2-chaos-raptor-laptop-keys.i3conf
  • 3-all-restart-reload-i3.i3conf

In the above examples, the files that would be used for the hostname ghost are:

  • 1-all-mod-key.i3conf
  • 12-ghost-workspaces.i3conf
  • 3-all-restart-reload-i3.i3conf

Output file format

The output file created is going to be called 'config' and placed in the output directory specified (default is ~/.i3). The contents of each input file is appended to the output file with a comment of what the input file name was.

Examples

There are some example files in the examples directory of the repository which should generate a file that operates in the same way as the default i3 config file for using the super (Mod4) modifier.

i3-config-builder's People

Contributors

brianleblanc-at-bluespurs avatar omnibrian avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.