leftwm / leftwm-community-themes

A collection of themes built by the community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme is incompatible with version of Leftwm

MrCockles opened this issue · comments

I have been trying to change the theme along with my OS's wiki.
I get this error instead of the picture in the wiki
ArcoLinux-2022-01-26-1643223832_screenshot_1920x1080
ArcoLinux-2022-01-26-1643223905_screenshot_1920x1080
I tried googling the error message, but I got nothing. this feels like a simple fix, but I don't know where else to go for troubleshooting.

Welcome Adventurer!
You came to the exact right place with your problem. There is one other place that would've been equally good place and that is our community discord.

To be fair, I have yet to check what is exactly the issue with the Dracula theme, but I guess it would use a feature of the yet to be released leftwm version 3.0.0.
You are probably on the regular leftwm AUR package and not on the leftwm-git package, aren't you? Could you please also post the output of leftwm-check?

ArcoLinux-2022-01-26-1643226353_screenshot_1920x1080
here you go

Just checked, its actually the dracula theme that is out of date.

To manually fix this on your machine, please go to ~/.config/leftwm/themes/current and edit both the up script:

- echo "LoadTheme $SCRIPTPATH/theme.toml" > $XDG_RUNTIME_DIR/leftwm/commands.pipe
+ leftwm-command "LoadTheme $SCRIPTPATH"

and down script:

- echo "UnloadTheme" > $XDG_RUNTIME_DIR/leftwm/commands.pipe
+ leftwm-command UnloadTheme

Ok, thanks! is this the same process with the other themes also?

I think I messed something up, I removed the red lines in your post from the script, and added the green lines in their place, updated, then tried to apply the theme and got the same error as before. did I misinterpret your instructions?

In the up script the green line must be :
leftwm-command "LoadTheme $SCRIPTPATH"/theme.toml

Leftwm-theme doesn't know that you've made the change, what you can do is edit ~/.config/leftwm/themes.toml and set leftwm_versions = "*" under Dracula Rounded.

In the up script the green line must be :

leftwm-command "LoadTheme $SCRIPTPATH"/theme.toml

Oh, yeah, my bad.
But actually the end-quote is misplaced in yours I think. Should be

leftwm-command "LoadTheme $SCRIPTPATH/theme.toml"

While at this topic already, would we have a way to push this change to all the submoduled themes? Or do we depend on theme maintainers to update?

We need an automatic way to update the submodules in community themes. Dracula rounded should be updated on the main branch with these changes.

I corrected the line in the up script, changed the leftwm version line in the theme.toml to "*". I ran leftwm-theme update, then tried to apply the Dracula theme with no luck. same error. for grins and giggles I tried to apply Ocean-night, and it seemed to work at first. but as soon as I switched back to leftwm from awesome my computer froze up, tried Epitaph, and it didn't freeze, it rebooted my login manager. Is this problem linked at all to the out-of-date themes?

Epitaph rebooted your login manager 😱 ? How so? If you happen to know can you please open an issue in the repository so I can take a look at that issue? 🤔

done, let me know when you figure out what the problem is.

We need an automatic way to update the submodules in community themes. Dracula rounded should be updated on the main branch with these changes.

Tagging leftwm/leftwm-theme#33

I compiled leftwm from git. Still the same problem. Only the ocean night theme is working after manually make up, down and change_to_tag executabel

I think most themes need to update their scripts. However some of them haven't been notified or are unmaintained 🤔