add testing script

This commit is contained in:
Luca Bilke 2023-02-05 19:15:42 +01:00
parent 93f9157de3
commit 35d7cfefbd
1 changed files with 24 additions and 0 deletions

24
test.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
#set -o xtrace
set -o errexit -o nounset -o pipefail -o errtrace
IFS=$'\n\t'
disp_num=1
disp=:$disp_num
Xephyr -screen 2560x1440 $disp -ac -br -sw-cursor &
pid=$!
while [ ! -e /tmp/.X11-unix/X${disp_num} ] ; do
sleep 0.1
done
export DISPLAY=$disp
xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources" & xrdbpid=$!
setbg &
remaps &
[ -n "$xrdbpid" ] && wait "$xrdbpid"
./dwm
kill $pid
exit 0