dotfiles/goog
Jozef Steinhübl eec5faba96
sway: xdg-desktop-portal
i hate XDG so MUCH!!!!!!!!! and dbus even more...
2024-08-10 22:32:12 +02:00

30 lines
689 B
Python
Executable file

#!/usr/bin/env python3
from getopt import getopt
import sys
from common.dump import dump
from common.sync import sync
from common.util import expand
stuff: list[str] = [
*expand("~/.config/{fish,kitty,nvim,pipewire,sway,swaylock,xdg-desktop-portal,zed}/**"),
"~/.icons/**",
*expand("~/.local/bin/{yarn}"),
"~/.profile",
]
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)