aboutsummaryrefslogtreecommitdiff
path: root/local/bin/startsway
blob: 262a997660c20a2965191d84c7242067cf499d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -eu
exec 1> >(logger -s -t "${0##*/}") 2>&1

# Declare the current desktop
export XDG_CURRENT_DESKTOP=sway
# Fix fullscreen game offscreen
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
# To fix missing textures on intel
export force_s3tc_enable=true
# Fix firefox touchscreen gestures and force wayland
export MOZ_USE_XINPUT2=1
export MOZ_ENABLE_WAYLAND=1
# Java application do not display properly
export _JAVA_AWT_WM_NONREPARENTING=1

if [ "$(ps -o comm= 1)" = "systemd" ]; then
	launch="systemd-cat --identifier=sway --stderr-priority=err"
else
	launch="dbus-run-session"
fi

exec $launch sway