summaryrefslogtreecommitdiff
path: root/.config/s6-rc/river/run
blob: de4fd8afe8a81e57e6d5b7efb0697ecbd46adc8e (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=wlroots
		XDG_CURRENT_DESKTOP=wlroots
		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}
river