18 lines
640 B
Bash
Executable file
18 lines
640 B
Bash
Executable file
#!/bin/env sh
|
|
|
|
# test/xephyr.sh ./thornWM -c config.lua
|
|
# test/xephyr.sh test/x.lua
|
|
|
|
Xephyr -br -ac -noreset -screen 1920x1080 :1 &
|
|
sleep 0.1
|
|
export DISPLAY=:1
|
|
|
|
export LUA_PATH="/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.lua;/usr/lib/lua/5.1/?/init.lua;./?.lua;./?/init.lua;/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua"
|
|
export LUA_CPATH="/usr/lib/lua/5.1/?.so;/usr/lib/lua/5.1/loadall.so;./?.so;/root/.luarocks/lib/lua/5.1/?.so"
|
|
"$@" ; kill %1 &>/dev/null
|
|
|
|
# mkfifo /tmp/thornWM.fifo
|
|
# (while true; do cat /tmp/thornWM.fifo; done) | th ./thornWM -c config.lua ; kill %1
|
|
|
|
wait
|
|
|