Quote (mikshaw @ Dec. 01 2007,15:25) |
I wonder why you need to copy the file? This single line should do as well as the two you have: xsri --scale-width=100 --scale-height=100 $1 In any case, that's a handy tip. thanks |
Quote (roberts @ Dec. 02 2007,08:56) |
So using this scheme every window manager has the same wallpaper? |
Code Sample |
#!/bin/bash #set_wallpaper <file> #copy the wallpaper to a file called 'default' inside the desktop wallpaper folder and load it. #if no <file> is given, just reload 'default' if [ "$1" != "" ]; then cp $1 /home/dsl/.dfmdesk/wallpaper/default fi xsri --scale-width=100 --scale-height=100 /home/dsl/.dfmdesk/wallpaper/default |