dotfiles/goog

31 lines
754 B
Text
Raw Normal View History

2024-08-07 22:46:13 +02:00
#!/usr/bin/env python3
from getopt import getopt
import sys
from common.dump import dump
from common.sync import sync
2024-08-08 12:28:10 +02:00
from common.util import expand
2024-08-07 22:46:13 +02:00
2024-08-08 12:28:10 +02:00
stuff: list[str] = [
2024-08-15 20:36:20 +02:00
*expand("~/.config/{fish,kitty,nvim,pipewire,sway,swaylock,waybar,xdg-desktop-portal,zed}/**"),
2024-12-21 11:56:42 +01:00
*expand("~/.config/vesktop/{settings,themes}/**"),
2024-08-09 14:47:04 +02:00
"~/.icons/**",
2024-12-23 11:35:33 +01:00
*expand("~/.local/bin/{yarn,memory,biggest_files}"),
2024-08-08 12:28:10 +02:00
]
2024-08-07 22:46:13 +02:00
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)