Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2018 19:48:46 +0200
From:      Polytropon <>
To:        Valeri Galtsev <>
Subject:   Re: Alternative to x11/gnome3 ?
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <> <> <> <> <> <> <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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:

	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:

	[ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc
	# ... 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. ;-)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>