Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]how can i change the desktop background in pekwm?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Thu Aug 05, 2004 12:38 pm    Post subject: [SOLVED]how can i change the desktop background in pekwm? Reply with quote

:?:

Last edited by v3rtigo on Thu Aug 05, 2004 3:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Thu Aug 05, 2004 12:45 pm    Post subject: Reply with quote

Your theme file (in /usr/share/pekwm/themes for instance) would contain a line like e.g.

rootCommand Esetroot -stretch /path/to/image.jpg

or similar; you should edit that and restart pekwm
_________________
shine on,

dr_strange

Set the Controls for the Heart of Gentoo
http://magenta.linuxforum.hu
Back to top
View user's profile Send private message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Thu Aug 05, 2004 1:20 pm    Post subject: Reply with quote

didn't found any line that contain something with backgournd picture
Back to top
View user's profile Send private message
sjokki
n00b
n00b


Joined: 13 Jul 2003
Posts: 7

PostPosted: Thu Aug 05, 2004 3:22 pm    Post subject: Reply with quote

Many pekwm-themes use feh to change the background. You can use this command to set a background with feh:

Code:

feh --bg-scale /path/to/file.png


It will create a file ~/.fehbg which you have to make executable. If you have done that you can add this to your theme-file (if it isn't there yet):

Code:

Root {
  Command = "\$HOME/.fehbg"
}


If you select the theme or start pekwm the background will change to the background you have selected with feh.

It is also possible to make dynamic menus in pekwm. See the manual. I created this little script for a dynamic background menu:

Code:

#!/bin/bash
echo "Dynamic {"
for image_path in ~/.pekwm/backgrounds/*.png ; do
  echo "  Entry = \"$(basename $image_path)\""
  echo "    { Actions = \"Exec feh --bg-scale $image_path &\" }"
done
echo "}"


It assumes your background-images are in ~/.pekwm/backgrounds/ . Store this script as ~/.pekwm/scripts/backgroundchooser.sh, make it executable and add the following to ~/.pekwm/menu:

Code:

Submenu = "Backgrounds" {
  Entry { Actions = "Dynamic \$HOME/.pekwm/scripts/backgroundchooser.sh" }
}
Back to top
View user's profile Send private message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Thu Aug 05, 2004 3:29 pm    Post subject: Reply with quote

tnx, but i installed eterm and did it with Esetroot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum