-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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 themesMetadata
Metadata
Assignees
Labels
No labels