<filename>modules/rofi/__init__.py
from sanity.initializer import BaseInitializer


class Initializer(BaseInitializer):
    @property
    def requirements(self):
        return [
            'rofi',
            'rofi-calc',
            'rofimoji',
            ('networkmanager', 'network-manager')
        ]

    def build(self):
        self.inject('rofi-theme.rasi')

    def install(self):
        config = '.config/rofi/'
        self.link_base('config.rasi', config + 'config.rasi')
        self.link_dist('rofi-theme.rasi', config + 'dotsanity.rasi')
        self.link_base('config.ini', '.config/networkmanager-dmenu/config.ini')

<filename>modules/rofi/__init__.py
from sanity.initializer import BaseInitializer


class Initializer(BaseInitializer):
    @property
    def requirements(self):
        return [
            'rofi',
            'rofi-calc',
            'rofimoji',
            ('networkmanager', 'network-manager')
        ]

    def build(self):
        self.inject('rofi-theme.rasi')

    def install(self):
        config = '.config/rofi/'
        self.link_base('config.rasi', config + 'config.rasi')
        self.link_dist('rofi-theme.rasi', config + 'dotsanity.rasi')
        self.link_base('config.ini', '.config/networkmanager-dmenu/config.ini')
