Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#1 by Kriss » 15 Nov 2011, 02:40

Hi all!
I'm trying to properly place background image for this program so if KDE4 wallpaper is stretched, I'd like to do the same for abovementioned program.
But so far I've been unable to retrieve any information on wallpaper palcement aside from image that is used for it (and even this information isn't accurate enough since there are quite many "wallpaper=" in config file):

Code: Select all

grep 'wallpaper=/' ~/.kde4/share/config/plasma-desktop-appletsrc | sed  's/wallpaper=//' | sed q
I've tried to change wallpaper placement method and look for changes in configuration but no file was changed.
Also I've heard about qdbus but found it too complicated (although I was able to get some irrelevant info, I didn't find something related to wallpapers).

Does anybody know how to get information about KDE4 wallpaper placement for a script?
Last edited by Kriss on 15 Nov 2011, 11:45, edited 1 time in total.
Suggestions/corrections/additions are always welcome.

beny
Full of knowledge
Full of knowledge
Posts: 720
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#2 by beny » 15 Nov 2011, 10:49

the wallpaper place location usr/share/wallpaper and you can manage picture from desktop setting or desktop preference via right click on mouse in the desktop.

Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#3 by Kriss » 15 Nov 2011, 11:24

Thanks!
I'm sorry for being unclear, the command from my first post gets information about wallpaper location. But I can't understand where to find information about its placement on the screen. Was it cropped, was it stratched or something else. I want to create some sort of script (like the one above) to get this information.
Suggestions/corrections/additions are always welcome.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#4 by brokenman » 15 Nov 2011, 17:40

Most of this info (for 32bit anyway) can be found in your home folder:

Code: Select all

kdskrc=/home/guest/.kde/share/config/kdesktoprc

grep WallpaperMode $kdskrc|awk -F= '{print$NF}'
How do i become super user?
Wear your underpants on the outside and put on a cape.

Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#5 by Kriss » 15 Nov 2011, 22:22

Thanks brokenman!
Regrettably you're talking about KDE3 =(
Suggestions/corrections/additions are always welcome.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#6 by brokenman » 16 Nov 2011, 15:10

Is there any other?

Your example above is ok for getting wallpaper but may be difficult for setting. I found this:

I will boot into 64bit and play around but for now have you tried kreadconfig/kwriteconfig?

Code: Select all

kreadconfig --file plasma-desktop-appletsrc

kwriteconfig --file plasma-desktop-appletsrc --key wallpaper <path-to-wallpaper>
Also this may be a solution for you:
http://kde-look.org/content/show.php/Sc ... ent=115147
How do i become super user?
Wear your underpants on the outside and put on a cape.

Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: Where to get info about KDE4 wallpaper (Scaled/Cropped)?

Post#7 by Kriss » 16 Nov 2011, 20:39

Thanks brokenman!
I'll check these options.
I'm not trying to set wallpapers, I'm just trying to simulate transparency for conky.
You can see examples of code for KDE3 here
Edit: sadly, no luck...
Suggestions/corrections/additions are always welcome.

Post Reply