Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme is incompatible with version of Leftwm #64

Open
MrCockles opened this issue Jan 26, 2022 · 16 comments
Open

Theme is incompatible with version of Leftwm #64

MrCockles opened this issue Jan 26, 2022 · 16 comments

Comments

@MrCockles
Copy link

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.

@MrCockles
Copy link
Author

the wiki that I used is here https://www.arcolinuxd.com/3-how-to-change-the-theme-in-leftwm/

@VuiMuich
Copy link
Member

VuiMuich commented Jan 26, 2022

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?

@MrCockles
Copy link
Author

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

@VuiMuich
Copy link
Member

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

@MrCockles
Copy link
Author

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

@MrCockles
Copy link
Author

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?

@PeterDauwe
Copy link
Contributor

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

@mautamu
Copy link
Member

mautamu commented Jan 27, 2022

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.

@VuiMuich
Copy link
Member

VuiMuich commented Jan 27, 2022

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?

@AethanFoot
Copy link
Member

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

@MrCockles
Copy link
Author

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?

@ghost
Copy link

ghost commented Jan 29, 2022

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? 🤔

@MrCockles
Copy link
Author

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

@mautamu
Copy link
Member

mautamu commented Jan 30, 2022

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

@MarkuBu
Copy link

MarkuBu commented Feb 11, 2022

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

@ghost
Copy link

ghost commented Feb 13, 2022

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

@hertg hertg transferred this issue from leftwm/leftwm Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants