diff --git a/app_containers/.local/bin/run_app_container b/app_containers/.local/bin/run_app_container index 3c8f5c6..85f6755 100755 --- a/app_containers/.local/bin/run_app_container +++ b/app_containers/.local/bin/run_app_container @@ -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 \ diff --git a/bash/.bashrc b/bash/.bashrc index 951875f..1a5afff 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -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 diff --git a/sway/.local/bin/Xwayland-noshm b/sway/.local/bin/Xwayland-noshm new file mode 100755 index 0000000..a588b44 --- /dev/null +++ b/sway/.local/bin/Xwayland-noshm @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +exec /usr/bin/Xwayland -extension MIT-SHM $@