tileos-settings/miracle-wm/usr/bin/start-miracle-wm

30 lines
888 B
Bash
Executable file

#!/usr/bin/env sh
## General exports
export XDG_CURRENT_DESKTOP=mir:miracle-wm
export XDG_SESSION_DESKTOP=mir:miracle-wm
export XDG_SESSION_TYPE=wayland
## Load system environment customizations
if [ -d /etc/environment.d ]; then
set -o allexport
for f in /etc/environment.d/*.conf; do
# shellcheck source=/dev/null
. "$f"
done
set +o allexport
fi
## Load user environment customizations
if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/environment.d" ]; then
set -o allexport
for i in "${XDG_CONFIG_HOME:-$HOME/.config}/environment.d"/*.conf; do
# shellcheck source=/dev/null
. "$i"
done
set +o allexport
fi
systemd-cat --identifier=miracle-wm /usr/bin/miracle-wm \
--systemd-session-configure=/usr/libexec/miracle-wm-session-setup \
--display-config=static=$(systemd-path user-configuration)/miracle-wm-display.yaml