xwin: unset I3SOCK

This commit is contained in:
lelgenio 2021-03-24 16:58:58 -03:00
parent aa86e4f06e
commit 31c3d86a87
1 changed files with 5 additions and 3 deletions

View File

@ -1,12 +1,14 @@
#!/bin/sh
SIZE=$(swaymsg -t get_outputs |
jq -r '.[]|select(.active=true).rect |
[.width, .height] | join("x")')
TMP_DISPLAY=":999"
Xephyr -screen 1920x1080 "$TMP_DISPLAY" &
Xephyr -screen "$SIZE" "$TMP_DISPLAY" &
export DISPLAY="$TMP_DISPLAY"
unset WAYLAND_DISPLAY
unset WAYLAND_DISPLAY I3SOCK
sleep 1s
i3 &