View previous topic :: View next topic |
Author |
Message |
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Thu Aug 05, 2004 12:38 pm Post subject: [SOLVED]how can i change the desktop background in pekwm? |
|
|
Last edited by v3rtigo on Thu Aug 05, 2004 3:29 pm; edited 1 time in total |
|
Back to top |
|
|
dr_strange Guru
Joined: 16 Apr 2002 Posts: 480 Location: Cambridge, UK
|
Posted: Thu Aug 05, 2004 12:45 pm Post subject: |
|
|
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 |
|
|
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Thu Aug 05, 2004 1:20 pm Post subject: |
|
|
didn't found any line that contain something with backgournd picture |
|
Back to top |
|
|
sjokki n00b
Joined: 13 Jul 2003 Posts: 7
|
Posted: Thu Aug 05, 2004 3:22 pm Post subject: |
|
|
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 |
|
|
v3rtigo Apprentice
Joined: 15 Jun 2004 Posts: 179
|
Posted: Thu Aug 05, 2004 3:29 pm Post subject: |
|
|
tnx, but i installed eterm and did it with Esetroot. |
|
Back to top |
|
|
|