Code: Alles auswählen
sebastian@t420:~$ cat .xinitrc
#!/bin/sh
xfce4-power-manager &
/usr/bin/lxpolkit &
xautolock -time 5 -locker slock &
volumeicon &
udiskie &
nm-applet &
exec awesome
sebastian@t420:~$
* Braucht die .xinitrc einen Shebang? Das Beispiel aus dem Debianwiki hat keinen, die /etc/X11/xinit/xinitrc aber schon (beides funktioniert bei mir).
* In der genannten /etc/X11/xinit/xinitrc gibt es die Einbindung von von ". /etc/X11/Xsession", die ja ziemlich umfangreich ist. Sollte ich das auch übernehmen?!
* Das Manual zu startx legt mir nahe, nicht eine ~/.xinitrc anzulegen, stattdessen eine ~/.xsession oder ~/.startxrc. Wenn ich es richtig verstehe, damit ich nicht von startx oder xinit abhängig bin. Ist das wirklich ein gängiger Weg? Hier der Auszug:
Code: Alles auswählen
Note that in the Debian system, what many people traditionally put in
the .xinitrc file should go in .xsession instead; this permits the same
X environment to be presented whether startx, xdm, or xinit is used to
start the X session. All discussion of the .xinitrc file in the
xinit(1) manual page applies equally well to .xsession. Keep in mind
that .xinitrc is used only by xinit(1) and completely ignored by
xdm(1).
To determine the client to run, startx looks for the following files,
in order:
$(HOME)/.startxrc
/usr/lib/x86_64-linux-gnu/sys.startxrc
$(HOME)/.xinitrc
/etc/X11/xinit/xinitrc