Skip to content

Waybar Modules Not Being Removed #9

@IvyWi

Description

@IvyWi

I installed on Tumbleweed so this could certainly be something I have done wrong.

Here is what I have found:
The waybar module removal feature was failing on my install due to missing themes ml4w-blur-bottom & ml4w-bottom. I noticed that they exist in the dev branch of the dotfiles repository, but not the main repo. I solved this originally by commenting out the offending themes from the theme list. I wonder if a better solution might be to dynamically generate the theme list instead of a hard coded list.

This is what I tried and appears to be working:

        self.waybar_themes = self.get_waybar_themes()

        
    def get_waybar_themes(self):
        exclude = {"assets", "default", "starter"}
        themes_path = os.path.join(self.dotfiles, "waybar/themes")
        themes = []
        if os.path.isdir(themes_path):
            for entry in os.listdir(themes_path):
                if entry in exclude:
                    continue
                theme_dir = os.path.join(themes_path, entry)
                if os.path.isdir(theme_dir) and os.path.isfile(os.path.join(theme_dir, "config")):
                    themes.append(entry)
        return themes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions