From owner-freebsd-x11@freebsd.org Sun May 3 20:34:00 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9AC572E728A for ; Sun, 3 May 2020 20:34:00 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mail.evolve.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Fd4R3ZD4z48xt for ; Sun, 3 May 2020 20:33:59 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 558b4139; Sun, 3 May 2020 20:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=Lf5q/tOWtzwjL8 figBjM4pGo7Sk=; b=QGnTMCEyl8OcqPFjSHBpo1PElU1WxRvzx91NBKPFC7OIOJ 9oC/ZHrOO1/Zix7GSTUIPY/IONNVTmp20xWoGWmPpwHmfAk8CCOF+bfKiVSAOupi znin1lUk8z5G1vLI0rjBSMbHoljqA9mqS3JxurbRMgEjx7oZZDqs8o0u+2fw5rbg UCcNB+btryLC8xmWTgMmwaz8Z+I41VgnhXzsW0tXMm666UdMCldLWNG7yz/fQlqI xqxAwXCvUF4BV5hYstZU4j5r7aL5hMsr9Dehb6v9VmlQfQ8vv6oGJMqwcCZU/v7e MFzGhCNAMeVY3NmGXYKGpRo3QsUqYeNmxc1oIAbw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=sjGcUao5 itlTXztz4mU4pcYU8O8u9Jp7w7lWLxcb6n8pMIkpujWE7Rh3Mh9MRgVo00gNNGkS 4SJnxm+kH1/r1/UKyJH3KRUNbnWpawSSZ6N6aNvsk0EuMeAbDPFhulA1c8MGombR NmDTtANpzyrlqvJ5ShBNq1Mpl2AOp3jwO1VcrkjINQGpQ3sjVQeZLHniG9D63oiq r5P29obld5srmgOxTWp9FGwsYP9OOiNQDjndFaIK6WfIsOjVS/hlQc7wvLQG6gfE bh3qtUCiKNvQ+JA+kCrHg23/gW2SU/aWQSGyQvXryxkNglWIiCkUtnpkRmMwzKa1 oLSQBot1dS6hCA== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 7cbc3ae1 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Sun, 3 May 2020 20:33:55 +0000 (UTC) Mime-Version: 1.0 (1.0) Subject: Re: Xorg recurring background From: Michael Gmelin In-Reply-To: Date: Sun, 3 May 2020 22:33:54 +0200 Cc: "freebsd-x11@freebsd.org" Message-Id: <8F3567B2-7131-49CB-9D9A-FAE393477D53@grem.de> References: To: Brandon helsley X-Mailer: iPhone Mail (17E262) X-Rspamd-Queue-Id: 49Fd4R3ZD4z48xt X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=QGnTMCEy; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[grem.de]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.30)[ip: (-4.91), ipnet: 213.239.192.0/18(-0.05), asn: 24940(-1.50), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 20:34:00 -0000 Xorg isn=E2=80=99t a window manager. If you installed the default package, i= t most likely uses twm by default (see here for details, you might find the l= ook familiar: https://en.m.wikipedia.org/wiki/Twm ) Xdm runs on xorg and presents a login manager to you. Once you logged in successfully using xdm, it executes what is in .xsession.= If you have no .xsession file in your home directory, it executes defaults (= which might include starting twm, the window manager installed with the xorg= package). By creating an .xsession file and making it executable, you tell x= dm to run that instead of the default on start up. The first line of the .xsession file tells the system that the following lin= es are to be interpreted by /bin/sh (see https://en.m.wikipedia.org/wiki/Bou= rne_shell ). The =E2=80=9C#!=E2=80=9D construct is called a shebang (see htt= ps://en.m.wikipedia.org/wiki/Shebang_(Unix) ) The next two lines set the background using feh and then start the window ma= nager (which needs to be explicit, now that .xsession overrides the defaults= ). So, please test chmod 700 /home/youruser/.xsession Then, make sure /home/youruser/.xsession contains at least: #!/bin/sh feh --bg-center $HOME/Downloads/wallpaper1.jpg exec twm and let me know if this worked for you or not. If it doesn=E2=80=99t, please record the boot up process, your login process= , and showing the content of the config files we talked about in a terminal u= sing your smartphone and share that with us over a publicly accessible platf= orm of your choice. -m > On 3. May 2020, at 22:08, Brandon helsley wr= ote: >=20 > =EF=BB=BF > What is the #!/bin/sh for? > If I'm using xdm and xorg why would it be exec xterm and not exec xdm or e= xec xorg? >=20 > Sent from Outlook Mobile >=20 > From: Michael Gmelin > Sent: Sunday, May 3, 2020 1:07:00 PM > To: Brandon helsley > Cc: freebsd-x11@freebsd.org > Subject: Re: Xorg recurring background > =20 > If you really only want to use xterm and no window manager, this would mea= n: >=20 > chmod 700 /home/youruser/.xsession >=20 > Then, make sure /home/youruser/.xsession contains at least: >=20 > #!/bin/sh > feh --bg-center $HOME/Downloads/wallpaper1.jpg > exec xterm >=20 > (I would assume that you would use something basic like twm though, in whi= ch case the last line would read: exec twm) >=20 >>> On 3. May 2020, at 19:53, Brandon helsley w= rote: >>>=20 >> =EF=BB=BF >> Yes I changed it. I am only using xorg and xterms. No desktop environment= . >>=20 >> Sent from Outlook Mobile >>=20 >> From: Michael Gmelin >> Sent: Sunday, May 3, 2020 11:36:06 AM >> To: Brandon helsley >> Cc: freebsd-x11@freebsd.org >> Subject: Re: Xorg recurring background >> =20 >> So .xsession is relevant to you. >>=20 >> Can you change the command to contain the absolute path to the wallpaper f= ile? >> (/home/youruser/Downloads/wallpaper1.jpg). >>=20 >> Also, which window manager/desktop environment are you using? >>=20 >>>> On 3. May 2020, at 19:32, Brandon helsley = wrote: >>>>=20 >>> =EF=BB=BF >>> I'm using xdm and xorg, and there is nothing in either but this command.= =20 >>>=20 >>> Sent from Outlook Mobile >>>=20 >>> From: Michael Gmelin >>> Sent: Sunday, May 3, 2020 11:27:26 AM >>> To: Brandon helsley >>> Cc: freebsd-x11@freebsd.org >>> Subject: Re: Xorg recurring background >>> =20 >>>=20 >>>=20 >>>> On 3. May 2020, at 19:12, Brandon helsley = wrote: >>>>=20 >>>> =EF=BB=BF >>>> Ok I did, "feh --bg-center Downloads/wallpaper1.jpg" in .xinitrc=20 >>>> What does PATH and $HOME mean?=20 >>>>=20 >>>=20 >>> PATH is the environment variable where your shell finds programs (e.g. f= eh is in /usr/local/bin). You can show your environment by calling =E2=80=9C= env=E2=80=9D. >>>=20 >>> $HOME is a variable containing your user=E2=80=99s home directory. So in= your example I would suggest to put: >>>=20 >>> /usr/local/bin/feh --bg-center $HOME/Downloads/wallpaper1.jpg >>>=20 >>> in there. >>>=20 >>>> I copied my .xinitrc to .xsession. Can you tell me why I'm supposed to d= o this?=20 >>>=20 >>> You would do this if you use a graphical login session manager like xdm o= r gdm. If you start X using =E2=80=9Cstartx=E2=80=9D, ~/.xinitrc is enough (= ~ is an alias for your home directory) >>>=20 >>> If this doesn=E2=80=99t work, please share some details of your setup, e= specially: >>> - how do you start X >>> - which window manager are you using >>> - content of your ~/.xinitrc (and or ~/.xsession) file >>>=20 >>>=20 >>>>=20 >>>> Sent from Outlook Mobile >>>=20 >>> You probably can disable that somewhere in that app ;) >>>=20 >>>>=20 >>>> From: Michael Gmelin >>>> Sent: Sunday, May 3, 2020 11:05:14 AM >>>> To: Brandon helsley >>>> Cc: freebsd-x11@freebsd.org >>>> Subject: Re: Xorg recurring background >>>> =20 >>>> Anything you run to set the background while X is running will also wor= k from within those files (X is already started when they=E2=80=98re execute= d). You have to make sure that the programs you call are found in PATH (and s= pecify the correct path to any files you pass as parameters, like images - y= ou can use $HOME in ~/.xinitrc) >>>>=20 >>>>> On 3. May 2020, at 18:50, Brandon helsley wrote: >>>>>=20 >>>>> =EF=BB=BF >>>>> So would " feh --bg-center " in .xinitrc or .xsession work? >>>>>=20 >>>>> Sent from Outlook Mobile >>>>>=20 >>>>> From: Michael Gmelin >>>>> Sent: Sunday, May 3, 2020 10:11:29 AM >>>>> To: Brandon helsley >>>>> Cc: freebsd-x11@freebsd.org >>>>> Subject: Re: Xorg recurring background >>>>> =20 >>>>> Oh, so that=E2=80=99s what you meant with =E2=80=9Crecurring=E2=80=9D?= Like it permanently? >>>>>=20 >>>>> You can set these kind of things in ~/.xinitrc >>>>> (or if you use a session manager, ~/.xsession). >>>>>=20 >>>>> Just add the command in there before starting your window manager, >>>>>=20 >>>>> e.g. >>>>>=20 >>>>> xmodmap ... >>>>> xsetroot ... >>>>> xterm& >>>>> twm >>>>>=20 >>>>>> On 3. May 2020, at 17:58, Brandon helsley wrote: >>>>>>=20 >>>>>> =EF=BB=BF >>>>>> There are no options for setting background from file, or set permane= ntly. I'm using feh, but it doesn't give option for permanent set. The wallp= aper has to be set everytime the machine is turned off and on. >>>>>>=20 >>>>>> Sent from Outlook Mobile >>>>>>=20 >>>>>> From: owner-freebsd-x11@freebsd.org o= n behalf of Brandon helsley >>>>>> Sent: Sunday, May 3, 2020 9:50:21 AM >>>>>> To: Michael Gmelin >>>>>> Cc: freebsd-x11@freebsd.org >>>>>> Subject: Re: Xorg recurring background >>>>>> =20 >>>>>> Got it, thanks. >>>>>>=20 >>>>>> Sent from Outlook Mobile >>>>>>=20 >>>>>> ________________________________ >>>>>> From: Michael Gmelin >>>>>> Sent: Sunday, May 3, 2020 9:49:38 AM >>>>>> To: Brandon helsley >>>>>> Cc: freebsd-x11@freebsd.org >>>>>> Subject: Re: Xorg recurring background >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> On 3. May 2020, at 17:42, Brandon helsley wrote: >>>>>>=20 >>>>>> =EF=BB=BFHello, could I gain assistance in setting up a recurring bac= kground in xorg? >>>>>>=20 >>>>>>=20 >>>>>> See xsetroot(1) >>>>>>=20 >>>>>> https://www.x.org/archive/X11R7.5/doc/man/man1/xsetroot.1.html >>>>>>=20 >>>>>>=20 >>>>>> _______________________________________________ >>>>>> freebsd-x11@freebsd.org mailing list >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-x11 >>>>>> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org= "