Compare commits
4 commits
2fbffcda50
...
d8d634e45c
Author | SHA1 | Date | |
---|---|---|---|
d8d634e45c | |||
2e6e29ed34 | |||
c64e51a244 | |||
0d9d4b363e |
3 changed files with 6 additions and 4 deletions
|
@ -48,9 +48,7 @@ SUDO_ASKPASS=$HOME/.local/bin/askpass-bemenu sudo -A systemd-nspawn -M $CONTAINE
|
|||
--bind-ro=/run/systemd/resolve/stub-resolv.conf:/etc/resolv.conf \
|
||||
`# GPU` \
|
||||
--bind=/dev/dri \
|
||||
--bind=/dev/shm \
|
||||
--property=DeviceAllow='/dev/dri rw' \
|
||||
--property=DeviceAllow='/dev/shm rw' \
|
||||
--property=DeviceAllow='char-drm rw' \
|
||||
`# Input devices` \
|
||||
--bind-ro=/dev/input \
|
||||
--property=DeviceAllow='char-input r' \
|
||||
|
@ -58,7 +56,7 @@ SUDO_ASKPASS=$HOME/.local/bin/askpass-bemenu sudo -A systemd-nspawn -M $CONTAINE
|
|||
--bind=$container_xdg_runtime:/run/xdg \
|
||||
--setenv=XDG_RUNTIME_DIR=/run/xdg \
|
||||
`# Xorg / Xwayland` \
|
||||
--bind-ro=/tmp/.X11-unix \
|
||||
--bind=/tmp/.X11-unix \
|
||||
--setenv=DISPLAY=$DISPLAY \
|
||||
`# Wayland (note the symlink created before in xdg runtime)` \
|
||||
--bind-ro=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/run/host/$WAYLAND_DISPLAY \
|
||||
|
|
|
@ -122,4 +122,5 @@ export GTK_THEME=Gruvbox-Material-Dark-HIDPI
|
|||
export GTK_IM_MODULE=fcitx
|
||||
export QT_IM_MODULE=fcitx
|
||||
export SDL_IM_MODULE=fcitx
|
||||
export WLR_XWAYLAND=$HOME/.local/bin/Xwayland-noshm
|
||||
$MACHINE_START_SWAY && [[ -z "$DISPLAY" && $(tty) == /dev/tty1 ]] && exec sway
|
||||
|
|
3
sway/.local/bin/Xwayland-noshm
Executable file
3
sway/.local/bin/Xwayland-noshm
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
exec /usr/bin/Xwayland -extension MIT-SHM $@
|
Loading…
Add table
Reference in a new issue