Giter Site home page Giter Site logo

i3-create-config's Introduction

i3 Configuration Creator

This was created in an effort to allow the better organization of an i3 config file. Currently there is no way to include extra files in the main ~/.i3/config file.

Here is an example of how your i3 config can look by using this script: https://github.com/kenyonj/dotfiles-legacy/tree/99ce9a5dd79191e6699575b9b64f8302d785f780/tag-i3/i3/config.d

Usage

Create a new directory in your ~/.i3 directory called config.d. In this directory you will need a configs import file. This script assumes that the imports file is named i3_configs.conf, create it with the contents following this pattern:

# ~/.i3/config.d/i3_configs.conf

# the vars file needs to be first so that other config files can use the vars
# defined within it.
import vars.conf;

import base.conf;
import colors.conf;
import gaps.conf;
import menus.conf;
import screenshots.conf;
import terminal.conf;
import todo.conf;
import containers.conf;
import workspaces.conf;
import xf86.conf;

Each one of the above referenced files will be located in the config.d directory and will be formatted the same as your current i3 config file. This way you can separate the configuration options for different parts of your i3 configuration and feel a little more organized.

Once you have this structure setup, you can execute create_config and it will delete your current ~/.i3/config file and create a new one using the files that in your i3_configs.conf file.

Tips

Execute the create_config script in these places so that you are always using your latest edits:

~/.xinitrc

# load Xresources
xrdb -load ~/.Xresources &
xrdb -merge ~/.Xresources

#load xmodmap
xmodmap ~/.Xmodmap

#create i3 config
~/.i3/create_config

#start i3
exec i3

~/.i3/config.d/base.conf

# i3 shorcuts for reload/restart
bindsym $mod+$other+Shift+C exec ~/.i3/create_config reload
bindsym $mod+$other+Shift+R exec ~/.i3/create_config restart

i3-create-config's People

Contributors

ferrgo avatar kenyonj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.