Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2018 13:00:15 -0500
From:      Valeri Galtsev <galtsev@kicp.uchicago.edu>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Alternative to x11/gnome3 ?
Message-ID:  <1d0a7981-e564-5726-1d20-bdade411c184@kicp.uchicago.edu>
In-Reply-To: <20180808194846.61e5e0de.freebsd@edvax.de>
References:  <CACDfs3qSdo6cS0F-DVMq2RDMsm-ktBc53k-xNwYwzex1X915-g@mail.gmail.com> <20180511090813.GA21919@admin.sibptus.transneft.ru> <1526039986.18202.5.camel@k1.com.br> <20180731014358.GA925@admin.sibptus.transneft.ru> <20180731195608.40cee639.freebsd@edvax.de> <20180801024324.GA20419@admin.sibptus.transneft.ru> <20180801165950.6bb77eabf97c862866d13ecf@sohara.org> <20180808161156.GA66626@admin.sibptus.transneft.ru> <20180808172413.9759288eaa75f6a8024417c8@sohara.org> <20180808163722.GA67368@admin.sibptus.transneft.ru> <2b5cf789-e846-aac0-d33a-39dd71d55f65@kicp.uchicago.edu> <20180808194846.61e5e0de.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help


On 08/08/18 12:48, Polytropon wrote:
> On Wed, 8 Aug 2018 12:28:23 -0500, Valeri Galtsev wrote:
>> Incidentally one may need to create ~/.xinitrc for that, what someone
>> else had mentioned. My ~/.xinitrc on workstation has one line:
>>
>> exec mate-session
> 
> There is a convenient way I'm using to deal with settings
> that can be either "login with xdm" or "login at console,
> then startx", or both: Create ~/.xsession with the
> following content:
> 
> 	#!/bin/csh
> 	source ~/.cshrc
> 	exec ~/.xinitrc
> 
> This example assumes that the C shell is your dialog shell.
> For zsh or bash, a slightly different incorporation of the
> interactive shell settings is needed.
> 
> And then you can use ~/.xinitrc as you wish, for example:
> 
> 	#!/bin/sh
> 	[ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc
> 	numlockx
> 	#
> 	# ... more crazy stuff ...
> 	#
> 	xsetroot -solid rgb:3b/4c/7a
> 	xset b 100 1000 15 &
> 	xset r rate 250 30 &
> 	xset s off &
> 	xset -dpms &
> 	exec wmaker
> 
> Note that the #!/bin/sh on top of this script is fully
> optional (as sh will be the shell that executes it, no
> matter what you write in there), but it makes sure you
> know that sh syntax is to be used here.
> 
> This allows you to centralize your user's X startup into
> one file, and it will work, no matter if you prefer xdm
> or startx. However, if you use gdm from Gnome 2, it won't
> work, simply because gdm says "FSCK YOU!" and continues
> doing its own startup, tied to the Gnome 2 desktop. ;-)
> 

Wow, Herr Polytropon, you made my day by using filesystem check command 
in very unusual way. Made me laugh for several minutes ;-)

Valeri

> 
> 

-- 
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d0a7981-e564-5726-1d20-bdade411c184>