Skip to content

Commit

Permalink
Use Xwayland instead of Xephyr under wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Sep 26, 2024
1 parent 8b5b338 commit d5d60af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions zsh/funcs/xinabox
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ _getfreedisplay
local display=$?
if [[ $display != 255 ]]
then
Xephyr :$display -screen 1024x768 &
if [[ $WAYLAND_DISPLAY ]]
then
Xwayland :$display -geometry 1024x768 -decorate &
else
Xephyr :$display -screen 1024x768 &
fi
sleep 1
DISPLAY=:$display openbox &
# xkbcomp $DISPLAY :$display
WAYLAND_DISPLAY= DISPLAY=:$display openbox &
fi

# vi: set ft=zsh ts=4 sw=4:

0 comments on commit d5d60af

Please sign in to comment.