You are not logged in.
Heya! I'm Ayame, or "Rumia" by my personal list of forum names. I'm an avid osu!player, Japanese learner, Touhou pro, and artist. I'm also a young, energetic otaku girl that loves nostalgia, anime, and some coding on the side. I hope I can make my stay here enjoyable and energetic for everyone involved!
Issue:
I recently made the switch to Arch and have set up dwm (by suckless). I am starting using "startx" and am trying to use feh to auto-set the wallpaper from the ".xinitrc" file.
Here are the contents of xinitrc:
exec dwm
exec feh --bg-scale Wallpapers/wallpaper.jpgFor context, "Wallpapers" is my personal wallpaper folder, and "wallpaper.jpg" is just a placeholder for the actual .jpg file. When starting with said "startx", no wallpaper is applied.
All help is appreciated!
バイバイ!
Last edited by Rumia (2024-05-19 17:27:14)
Offline
The "exec" command replaces the currently running script. So nothing after "exec dwm" could ever run. Run feh first and not via "exec":
feh --bg-scale Wallpapers/wallpaper.jpg &
exec dwmLast edited by Trilby (2024-05-19 02:18:10)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Worked perfectly! Thank you, Trilby!
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Adding a sllight caveat to forking feh ("&"): ifff anything started into that (dwm) reads the background pixmap into some local cache (fake transparency, compositor) you might end up w/ a race condition where it fetches the previous non-wallpaper black background and misses the event for the change.
But unless you see some unexpected black backgrounds, it's fine and will slightly speed up the session start.
Offline
Noted!
Silly question; How do I edit the subject?
Offline
There's an edit link in the lower right corner of all of your posts, https://bbs.archlinux.org/edit.php?id=2172226
Offline
Found it, thanks!
Offline