bashrc/.bashrc.d/broadway-run.bash

17 lines
240 B
Bash
Raw Normal View History

2020-07-02 17:15:49 +00:00
broadway-run() {
local bwdisp=:10
if [[ "$1" = "-d" ]]; then
bwdisp="$2"
shift 2
fi
env \
--ignore-environment \
# --unset=DISPLAY \
# --unset=WAYLAND_DISPLAY \
GDK_BACKEND=broadway \
BROADWAY_DISPLAY="$bwdisp" \
"$@"
}