mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-24 12:26:05 -05:00
Move transform_defaults and fix config inference again
This commit is contained in:
parent
e3bb3f31de
commit
01592e44fa
@ -21,7 +21,9 @@ class Package:
|
|||||||
self.name = obj
|
self.name = obj
|
||||||
|
|
||||||
# Transform and infer attributes
|
# Transform and infer attributes
|
||||||
self.update_from_files()
|
self.transform_default('config', '.config/' + self.name, 'lain/')
|
||||||
|
self.transform_default('script', self.name + '.fish', 'scripts/')
|
||||||
|
self.transform_default('userunit', self.name + '.service', 'lain/.config/systemd/user/')
|
||||||
|
|
||||||
# Install State
|
# Install State
|
||||||
self.enabled = True
|
self.enabled = True
|
||||||
@ -64,11 +66,6 @@ class Package:
|
|||||||
else:
|
else:
|
||||||
self[prop] = None
|
self[prop] = None
|
||||||
|
|
||||||
def update_from_files(self):
|
|
||||||
self.transform_default('config', self.name, 'lain/')
|
|
||||||
self.transform_default('script', self.name + '.fish', 'scripts/')
|
|
||||||
self.transform_default('userunit', self.name + '.service', 'lain/.config/systemd/user/')
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def config_menu(screen, title, packages):
|
def config_menu(screen, title, packages):
|
||||||
items = []
|
items = []
|
||||||
|
Loading…
Reference in New Issue
Block a user