26 lines
460 B
Bash
Executable File
26 lines
460 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Session config
|
|
XDG_RUNTIME_DIR=/run/user/$(id -u)
|
|
XDG_SESSION_TYPE=wayland
|
|
XDG_SESSION_DESKTOP=wayfire
|
|
XDG_CURRENT_DESKTOP=wayfire
|
|
|
|
# Wayland config
|
|
MOZ_ENABLE_WAYLAND=1
|
|
SDL_VIDEODRIVER=wayland
|
|
_JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
# Wayfire specific stuff
|
|
CLUTTER_BACKEND=gdk
|
|
|
|
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
|