mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-27 21:19:51 -05:00
Add base python scripts
This commit is contained in:
parent
a256c33379
commit
f13f0ce129
0
install.py
Executable file
0
install.py
Executable file
27
packages.org
Normal file
27
packages.org
Normal 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
|
23
packages.txt
23
packages.txt
@ -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
30
parse.py
Executable 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
|
Loading…
Reference in New Issue
Block a user