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

Installation config hook KDE #66

Open
TheFibonacciEffect opened this issue Jun 4, 2023 · 2 comments
Open

Installation config hook KDE #66

TheFibonacciEffect opened this issue Jun 4, 2023 · 2 comments
Labels
bug Something isn't working wallpaper-hook

Comments

@TheFibonacciEffect
Copy link

I needed some tweaking to the config file to get it to work in kde:
Mine looks like this:


hook:
# Set the KDE Plasma Desktop Wallpaper
"echo 'test' \n"
"blank=$HOME/.config/pacwall/oneblackpixel.png"
"plasma-apply-wallpaperimage $blank \n"
"plasma-apply-wallpaperimage $W \n"

# Set the KDE Plasma Lock Screen Wallpaper

"kwriteconfig5 --file kscreenlockerrc --group Greeter --key WallpaperPlugin org.kde.image \n"
"kwriteconfig5 --file kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.iemage --group General --key Color \"#073642\" \n"
"kwriteconfig5 --file kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.iemage --group General --key FillMode 6 \n"
"kwriteconfig5 --file kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.iemage --group General --key Image $W \n"

so I needed to add quotes and newlines to everything. Otherwise it complained about having a missconfigured config.

@Kharacternyk Kharacternyk added bug Something isn't working wallpaper-hook labels Jun 4, 2023
@Kharacternyk
Copy link
Owner

I see that the opening doublequote is not closed in the example hook, which is definetely a bug. If we just close it, does it work? Or does it still require wrapping each line into quotes and adding \n?

@deimosian
Copy link
Contributor

Looks like you're missing the double quotes around the whole hook. Here's mine that's working for me:

hook: "

# Set the KDE Plasma Desktop Wallpaper

blank=$HOME/.config/pacwall/oneblackpixel.png 
plasma-apply-wallpaperimage $blank
plasma-apply-wallpaperimage $W

# Set the KDE Plasma Lock Screen Wallpaper

kwriteconfig5 --file kscreenlockerrc --group Greeter --key WallpaperPlugin org.kde.image
kwriteconfig5 --file kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key Color \"#000000\"
kwriteconfig5 --file kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key FillMode 6
kwriteconfig5 --file kscreenlockerrc --group Greeter --group Wallpaper --group org.kde.image --group General --key Image $W
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wallpaper-hook
Projects
None yet
Development

No branches or pull requests

3 participants