LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-08-2017, 05:46 AM   #1
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Rep: Reputation: 66
Question Where's best to issue desktop background command in configs?


where/what is the most/best distro agnostic, desktop-environment agnostic, window-manager agnostic, login-manager agnostic, init agnostic, fundamental basic simple clean minimal ubiquitous method of having the following command* be the desktop background wallpaper?
Code:
galaxy -root -delay 7857 -count 19 -cycles 1001 -ncolors 205 -fps
* (or whatever other command is used for setting the background "image", like
Code:
feh --bg-tile ~/images/mylovelylovelycatpic.png
whatever, or whatnot.) ~ but where in the system's configs to put that.

I presume putting that xscreensaver's galaxy command into .fehbg will fail. but i'm looking for something more core basic fundamental minimal than relying on feh anyway (because i want the shiny galaxy background by default).

as simply as i can put the question (after a lot of attempts):

where in the system configs does the command to set the default background image go?

ps.(agnostic's a silly choice of word there, but seems a readily understood convention. my mental thesaurus does want to reach for something more like... ambivalent(?), non-specific, unrelated... something like that. please do feel free to mention as an aside if you think you can offer me clarity/correction on any of that too.)



-- posting before i over-work this question any more.
 
Old 12-08-2017, 07:52 AM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 179

Rep: Reputation: Disabled
I gather you're asking two questions:

1. What is the most "fundamental basic simple clean minimal ubiquitous" place to indicate a command should be run when starting an Xorg server.
2. How to make the "galaxy" xscreensaver the background rather than a screensaver.

I'm insufficiently experienced with xscreensaver to provide any advice for the second question. At first blush I'm concerned it might not be cleanly possible. Hopefully someone else knows.

However, for the question of where to set such a command, should you be able to make it:

One of the more "fundamental basic simple clean minimal ubiquitous" methods of starting an Xorg server is with the `xinit` command. Some other methods (e.g. `startx`) are wrappers around this. Per `man xinit`, by default it executes `~/.xinitrc`, and so people who start Xorg this way often place some command to set the background in `~/.xinitrc`. If you go down this road, be warned that by default Xorg will exit once `~/.xinitrc` returns, and so people usually throw something long-lasting like their window manager at the end in a blocking manner. You can probably query your preferred search engine for "xinitrc" for more, including examples.

If you utilize `xinit` (or `startx`, etc) I'd argue there aren't any more "fundamental basic simple clean minimal ubiquitous" options to set a background. If you use some other method of starting Xorg which ignores `~/.xinitrc`, it won't have a "fundamental basic simple clean minimal ubiquitous" overlap with `~/.xinitrc`, and you'll have to start looking at login manager / desktop environment / etc specifics.
 
Old 12-09-2017, 04:09 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
depends how you start X.
on my system, it would be ~/.xinitrc

also, on my system, /usr/lib/xscreensaver is not in PATH, so i have to issue the full path to start it, aprt from that it works as expected.
unless, of course, some stoopid desktop environment simply paints over the root window.
 
  


Reply

Tags
#agnostic, #background, #desktop, #wallpaper, #x



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing desktop background to command prompt donnied Linux - Desktop 1 08-30-2009 01:00 AM
Fluxbox Background Issue alkos333 Slackware 10 10-06-2007 03:11 PM
Frugal Install : Saving desktop configs. such as wallpaper - which method is best ? uncle-c DamnSmallLinux 1 07-05-2007 10:38 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration