You are not logged in.
Pages: 1
Is there a manual way to set a wallpaer in X without having a program such as nitrogen or feh?
Offline
No. Something has to tell xorg what to use as the root window. If you only want to set your wallpaper, try using imlibsetroot from the AUR.
Last edited by Stebalien (2011-05-15 17:32:09)
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
I was just wondering if I could make a simple script, but it doesn't seem like it would be that easy after all.
Offline
Yes, you can make a script that utilizes feh, xsetroot, hsetroot or whatever wallpaper tool you wish (more or less).
An example of using feh in .xinitrc here:
Offline
What about something like xsetroot?
Offline
AFIAK, xsetroot will not allow you to set complicated backgrounds (images), only a single color or simple bitmap. Take a look at the manual.
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline
nitrogen is another tool for the job. First you set the background you want (only once) then, you restore the previous settings (nitrogen --restore) to load the previous background between sessions.
Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.
Offline
I've tried using feh with
"sh ~/.fehbg &" added to ~/xinitrc but the background will remain black whenever I reboot...
.fehbg has the following code:
feh --bg-scale '1305545346351.jpg'
Do I need to make further adjustments to config.h?
Last edited by Loser777 (2011-05-17 23:59:44)
Offline
yeah, don't use images downloaded from 4chan.
seriously, try "feh --bg-scale /path/to/1305545346351.jpg" from the console instead. that will edit the .fehbg file properly.
also, check https://wiki.archlinux.org/index.php/Feh
Offline
yeah, don't use images downloaded from 4chan.
seriously, try "feh --bg-scale /path/to/1305545346351.jpg" from the console instead. that will edit the .fehbg file properly.
also, check https://wiki.archlinux.org/index.php/Feh
I used feh --bg-fill /home/myusername/wall.jpg (different image) and while .fehbg was changed correctly the wallpaper still does not load when I startx.
.xinitrc still reads as
exec dwm
sh ~/.fehbg &
Last edited by Loser777 (2011-05-18 00:50:24)
Offline
change your .xinitrc to
sh ~/.fehbg &
exec dwm
Offline
change your .xinitrc to
sh ~/.fehbg & exec dwm
Well, that worked quite nicely, thanks! Why does the order matter in this circumstance?
Offline
sh ~/.fehbg & = start the shell (/bin/sh) and load commands from a file (~/.fehbg), and continue to run other commands without waiting for this to complete (&)
exec dwm = go run a binary called (dwm) and wait for it to finish
Since dwm is your window manager, you're not actually running feh until you exit your window manager, so this is why the order matters.
For the record there is no reason to add & after feh, it does not hang around long.
Offline
sh ~/.fehbg & = start the shell (/bin/sh) and load commands from a file (~/.fehbg), and continue to run other commands without waiting for this to complete (&)
exec dwm = go run a binary called (dwm) and wait for it to finish
Since dwm is your window manager, you're not actually running feh until you exit your window manager, so this is why the order matters.
For the record there is no reason to add & after feh, it does not hang around long.
That makes a lot of sense! so should
exec dwm &
sh ~/.fehbg
also work? I remember I couldn't start x with that in .xinitrc.
Offline
problem?
Offline
Should
exec dwm &
sh ~/.fehbgalso work? I remember I couldn't start x with that in .xinitrc.
exec is a command that replaces the shell with a given program, so saying "exec dwm &" is a little self-contradictory... If you want that to work, you should remove the "exec"
Make it idiot-proof, and someone will breed a better idiot.
-- Oliver Elphick
Offline
Pages: 1