Giter Site home page Giter Site logo

dotfiles-synchronizer's Introduction

Dotfiles Synchronizer

Automatically synchronize any of your configurations to git. A working example can be seen here

Installation

  1. Fork this repository
  2. Clone the forked repo (preferably with ssh, as this program will also automatically push and you won't be able to input password/passkey)
  3. Run systemd_setup.sh (if you have systemd)
  4. Profit

You can configure the directories or inidividual files that you want to synchronize by modifying ~/.config/synchronization_targets.json

The syntax is quite simple:

{
    "directories": [
        "~/path/to/your/dir1",
        "~/path/to/your/dir2",
        "~/path/to/your/dir3"
    ],
    "files": [
        "~/path/to/your/file.1",
        "~/path/to/your/file.2",
        "~/path/to/your/file.3"
    ]
}

Other configuration

synchronizer_service.py:

# Polling rate for file changes in seconds. Isn't as important, just make sure that it's not 0 if you use editors like neovim.
RATE = 0.5

VERBOSE_LOGGING = False

# Mainly used in development. If False, will not commit/push just log.
COMMIT = True

# Time since last commit in order to push. Used to prevent rate limits.
PUSH_RATE = 30

# Experimental. Use GPT for commit messages. Requires OPENAI_KEY environment variable
USE_OPENAI = False

What if I don't have systemd?

I don't really have experience with systemd alternatives, but feel free to open a pr.

dotfiles-synchronizer's People

Contributors

thealexdev23 avatar

Stargazers

Philip avatar Nino avatar  avatar  avatar  avatar same thing avatar jaxolingo avatar Navi Sidhu avatar null avatar molly avatar Jay avatar KYЯΛ avatar  avatar Trong avatar Frederick Polk avatar Gabriel Suela avatar  avatar  avatar Andril avatar John Fano avatar Vid Furlan avatar  avatar  avatar

Watchers

 avatar

Forkers

ma77hews gamono23

dotfiles-synchronizer's Issues

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.