diff --git a/install.py b/install.py new file mode 100755 index 0000000..e69de29 diff --git a/packages.org b/packages.org new file mode 100644 index 0000000..99e27ed --- /dev/null +++ b/packages.org @@ -0,0 +1,27 @@ +* Fonts +core ttf-dejavu +core otf-fira-code +core adobe-source-han-sans-jp-fonts +git https://github.com/domtronn/all-the-icons.el all-the-icons.fish + +* System Tools +core networkmanager + +* Window Manager + +* Desktop Tools +core rofi + +* Editors +core emacs +core neovim + +* Music +core mpd +core mpc +core ncmpcpp +core beets + +* Terminal +core rxvt-unicode +core fish diff --git a/packages.txt b/packages.txt deleted file mode 100644 index bdc51f8..0000000 --- a/packages.txt +++ /dev/null @@ -1,23 +0,0 @@ -ttf-vlgothic AUR -nerd-fonts-source-code-pro AUR - -rofi -rofi-dmenu AUR - -nvim -ctags -# vim-plug --- clone from github - -mpd -mpc -ncmpcpp -beets - -zsh -oh-my-zsh AUR -rxvt-unicode - -networkmanager - -# gnome mutter nvidia fix -mutter-781835-workaround AUR diff --git a/parse.py b/parse.py new file mode 100755 index 0000000..508a582 --- /dev/null +++ b/parse.py @@ -0,0 +1,30 @@ +#!/usr/bin/python + +class Package: + def __init__(self, line): + self.type = line[0] + self.name = line[1] + self.script = line[2] if len(line) == 3 else None + type = None + name = None + script = None + +class Category: + def __init__(self, line): + self.name = ' '.join(line[1:]) + self.packages = [] + name = '' + packages = [] + +def parse_package_listing(file): + f = open(file, 'r') + lines = list(map(lambda l: l.rstrip().split(' '), f.readlines())) + categories = [] + category = None + for line in lines: + if line[0].startswith('*'): + category = Category(line) + categories.append(category) + elif len(line[0]) != 0: + category.packages.append(Package(line)) + return categories