AutoYADM commit: 2025-01-13 13:15:05

This commit is contained in:
Daniel Fichtinger 2025-01-13 13:15:05 -05:00
parent fcdaf85cf8
commit 8ac47bf79b
2 changed files with 24 additions and 1 deletions

View file

@ -1,4 +1,21 @@
include /etc/sway/config.d/* # include /etc/sway/config.d/*
# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
# See FS#63021
# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
# Upstream refuses to set XDG_CURRENT_DESKTOP so we have to.
exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway
exec systemctl --user import-environment DISPLAY \
SWAYSOCK \
WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY \
SWAYSOCK \
XDG_CURRENT_DESKTOP=sway \
WAYLAND_DISPLAY
# Default config for sway # Default config for sway
# #
# Copy this to ~/.config/sway/config and edit it to your liking. # Copy this to ~/.config/sway/config and edit it to your liking.

6
.config/sway/start.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
export ELECTRON_OZONE_PLATFORM_HINT=auto
export OZONE_PLATFORM=wayland
export XDG_CURRENT_DESKTOP=sway
sway