From 2ec630fdbf9c9ca691c95d773b33c34584cdde8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Wed, 7 Aug 2024 22:46:13 +0200 Subject: [PATCH] feat: goog --- README.md | 4 +++- common/.gitignore | 1 + common/dump.py | 2 ++ common/sync.py | 2 ++ goog | 28 ++++++++++++++++++++++++++++ 5 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 common/.gitignore create mode 100644 common/dump.py create mode 100644 common/sync.py create mode 100755 goog diff --git a/README.md b/README.md index b6ff77e..00ba2b6 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -This repository contains my configs, themes and other stuff that I'm using on void linux. +# Void Linux Configuration + +My configuration files, themes and other stuff I daily use on my machine. diff --git a/common/.gitignore b/common/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/common/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/common/dump.py b/common/dump.py new file mode 100644 index 0000000..b80b22c --- /dev/null +++ b/common/dump.py @@ -0,0 +1,2 @@ +def dump(): + exit(1) diff --git a/common/sync.py b/common/sync.py new file mode 100644 index 0000000..033cc64 --- /dev/null +++ b/common/sync.py @@ -0,0 +1,2 @@ +def sync(): + exit(1) diff --git a/goog b/goog new file mode 100755 index 0000000..8347d70 --- /dev/null +++ b/goog @@ -0,0 +1,28 @@ +#!/usr/bin/env python3 + +from getopt import getopt +import sys + +from common.dump import dump +from common.sync import sync + +stuff = { + "~/.config/{kitty,nvim,openbox,pipewire,tint2,zed}", + "~/.themes", + "~/.local/bin/{yarn}" +} + +options, _ = getopt(sys.argv[1:], "ds", ["dump", "sync"]) + +for option, _ in options: + if option in ("-d", "--dump"): + dump(stuff) + break + + if option in ("-s", "--sync"): + sync(stuff) + break + +print("Usage: ./goog [-d | --dump] [-s | --sync]\n") +print("A simple tool for dumping dotfiles and syncing them") +exit(1)