Start i3 falls es als Bootloadereintrag übergeben wurde
This commit is contained in:
parent
ff9b3b87d0
commit
7bf9fd9f85
1 changed files with 62 additions and 49 deletions
13
dot_zprofile
13
dot_zprofile
|
@ -1,4 +1,16 @@
|
||||||
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
|
# Lade die Bootparameter in den Variablen
|
||||||
|
for wort in $(cat /proc/cmdline)
|
||||||
|
do
|
||||||
|
echo "Parameter ${wort%=*} = ${wort#*=}"
|
||||||
|
if ! export ${wort%=*}=${wort#*=}; then echo "cannot export ${wort}!!!"; fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Falls autostartdesktop auf i3 gesetzt wird, wird i3 statt sway gestartet
|
||||||
|
if [ "${autostartdesktop}" == "i3" ]; then
|
||||||
|
echo "exec i3" > ~/.xinitrc
|
||||||
|
startx
|
||||||
|
else
|
||||||
# First make sure dbus is started
|
# First make sure dbus is started
|
||||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
||||||
export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --fork --print-address)"
|
export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --fork --print-address)"
|
||||||
|
@ -51,5 +63,6 @@ if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
|
|
||||||
#XDG_CURRENT_DESKTOP=sway dbus-run-session sway
|
#XDG_CURRENT_DESKTOP=sway dbus-run-session sway
|
||||||
exec sway
|
exec sway
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue