1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-28 05:27:06 -05:00

Add base python scripts

This commit is contained in:
Jack Foltz 2018-10-15 18:21:55 -04:00
parent a256c33379
commit f13f0ce129
Signed by: foltik
GPG Key ID: 303F88F996E95541
4 changed files with 57 additions and 23 deletions

0
install.py Executable file
View File

27
packages.org Normal file
View File

@ -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

View File

@ -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

30
parse.py Executable file
View File

@ -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