This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
2023-09-11 07:22:17 +01:00
|
|
|
#!/bin/sh
|
2023-08-05 21:19:04 +01:00
|
|
|
|
2023-08-12 22:52:59 +01:00
|
|
|
# Session config
|
2023-09-11 07:22:17 +01:00
|
|
|
XDG_RUNTIME_DIR=/run/user/$(id -u)
|
|
|
|
XDG_SESSION_TYPE=wayland
|
|
|
|
XDG_SESSION_DESKTOP=wayfire
|
|
|
|
XDG_CURRENT_DESKTOP=wayfire
|
2023-08-05 21:19:04 +01:00
|
|
|
|
2023-08-12 22:52:59 +01:00
|
|
|
# Wayland config
|
2023-09-11 07:22:17 +01:00
|
|
|
MOZ_ENABLE_WAYLAND=1
|
|
|
|
SDL_VIDEODRIVER=wayland
|
|
|
|
_JAVA_AWT_WM_NONREPARENTING=1
|
2023-08-05 21:19:04 +01:00
|
|
|
|
2023-08-12 22:52:59 +01:00
|
|
|
# Wayfire specific stuff
|
|
|
|
CLUTTER_BACKEND=gdk
|
|
|
|
|
2023-08-05 21:19:04 +01:00
|
|
|
pidof wayfire &>/dev/null
|
|
|
|
if [ "$?" = "0" ]; then
|
|
|
|
killall wayfire
|
|
|
|
fi
|
|
|
|
if [ "$1" = "" ]; then
|
|
|
|
dbus-run-session wayfire &>/dev/null
|
|
|
|
else
|
|
|
|
dbus-run-session $* &>/dev/null
|
|
|
|
fi
|