blob: 4a4e7010a930c3c083cf8c6afa26e8b680c42cab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/execlineb -P
fdmove -c 2 1
multisubstitute {
importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR
importas -i HOME HOME
}
if { mkdir -p ${XDG_RUNTIME_DIR}/wl_env }
if {
forx -E var {
XDG_SESSION_TYPE=wayland
XDG_SESSION_DESKTOP=sway
XDG_CURRENT_DESKTOP=sway
MOZ_ENABLE_WAYLAND=1
QT_QPA_PLATFORM=wayland
SDL_VIDEODRIVER=wayland
_JAVA_AWT_WM_NONREPARENTING=1
}
multidefine -d= ${var} { key val }
redirfd -w 1 ${XDG_RUNTIME_DIR}/wl_env/${key}
heredoc 0 ${val} cat
}
s6-envdir ${XDG_RUNTIME_DIR}/wl_env
if { mkdir -p ./data }
if { rm -f ./data/ready }
if { mkfifo ./data/ready }
background { redirfd -r 0 ./data/ready fdmove 1 3 cat }
cd ${HOME}
sway
|