mirror of https://gitlab.com/meliurwen/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# This file is used by xinit and its wrapper startx.
|
|
# Display managers like xdm doesn't use this file at all
|
|
#
|
|
# See: man startx
|
|
# Use this script with the following commands:
|
|
# startx
|
|
# startx <program_full_path>
|
|
# startx $HOME/.xinitrc i3
|
|
# xinit -- $DISPLAY -nolisten tcp vt$XDG_VTNR
|
|
|
|
if [ -f "$HOME/.Xresources" ]; then
|
|
xrdb -merge "$HOME/.Xresources"
|
|
fi
|
|
|
|
# NOTE: this stinks a bit, and everything works without this... BUT there are
|
|
# some parameters set in this collection of scripts of which at the
|
|
# moment I don't have the time (and the will) to grasp the secuirty
|
|
# consequences of removing them.
|
|
# run all system xinitrc shell scripts.
|
|
if [ -d /etc/X11/Xsession.d ]; then
|
|
SESSIONFILES=$(run-parts --list /etc/X11/Xsession.d)
|
|
if [ -n "$SESSIONFILES" ]; then
|
|
set +e
|
|
for SESSIONFILE in $SESSIONFILES; do
|
|
. "$SESSIONFILE"
|
|
done
|
|
set -e
|
|
fi
|
|
fi
|
|
|
|
# To avoid very solw startup of many GTK apps
|
|
# https://dbus.freedesktop.org/doc/dbus-update-activation-environment.1.html
|
|
#dbus-update-activation-environment --systemd DISPLAY
|
|
|
|
# invoke local X session script
|
|
. "$HOME/.xsession"
|
|
|