Kharacternyk / pacwall

A live wallpaper that shows the dependency graph and status of installed packages.
GNU General Public License v3.0
556 stars 33 forks source link

Installation config hook KDE #66

Open TheFibonacciEffect opened 1 year ago

TheFibonacciEffect commented 1 year ago

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 commented 1 year ago

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 commented 7 months ago

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
"