You are not logged in.

#1 2009-06-10 12:24:32

unregistered
Member
Registered: 2008-04-09
Posts: 134

Is it better to put this in xinitrc or xsession

Taken from:
http://haskell.org/haskellwiki/Xmonad/C … figuration
and modified abit

Since most people put exec xmonad into xinitrc, hence the question

#!/bin/bash
 
# Load resources
 
xrdb -merge .Xresources
 
# Set up an icon tray
 
trayer --edge top --align right --SetDockType true --SetPartialStrut true \
 --expand true --width 10 --transparent true --tint 0x191970 --height 12 &
 
# Set the background color
 
xsetroot -solid black
 
# Fire up apps
 
# gajim &
 
# xscreensaver -no-splash &
 
# if [ -x /usr/bin/nm-applet ] ; then
#    nm-applet --sm-disable &
# fi
 
# if [ -x /usr/bin/gnome-power-manager ] ; then
#    sleep 3
#    gnome-power-manager
# fi
 
exec xmonad

Offline

#2 2009-06-10 12:27:11

Meillo
Member
From: Balmora
Registered: 2009-05-21
Posts: 10
Website

Re: Is it better to put this in xinitrc or xsession

AFAIK you should choose .xsession if you use use a login manager (like [xgk]dm), and .xinitrc otherwise.


Finally, thanks go to Dennis Ritchie and Ken Thompson, who showed a generation of programmers that complexity is avoidable.
(Marc J. Rochkind in Advanced UNIX Programming)

Offline

#3 2009-06-10 12:35:40

unregistered
Member
Registered: 2008-04-09
Posts: 134

Re: Is it better to put this in xinitrc or xsession

ok, but what's the reason for that?

Offline

#4 2009-06-10 12:59:12

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: Is it better to put this in xinitrc or xsession

unregistered wrote:

ok, but what's the reason for that?

Because, if you use it,  your session manager (KDM/GDM/XDM/Whatever) will not read .xinitrc .;)

Offline

#5 2009-06-10 14:03:01

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Is it better to put this in xinitrc or xsession

By default in Arch, .xsession just runs .xinitrc anyway, so you don't have to decide. Put everything in .xinitrc and enjoy another case of Arch simplicity.

Offline

Board footer

Powered by FluxBB