Merge pull request #57 from ringo32/main

removed autostart and in condif environmental settings using standard…
This commit is contained in:
Johannes Kamprad
2024-02-10 19:25:53 +01:00
committed by GitHub
7 changed files with 35 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
export MOZ_ENABLE_WAYLAND=1
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export WLR_NO_HARDWARE_CURSORS=1
#export WLR_NO_HARDWARE_CURSORS=0
export WLR_RENDERER_ALLOW_SOFTWARE=1

View File

@@ -0,0 +1,10 @@
# Default env vars.
#XDG_CURRENT_DESKTOP=sway
#XDG_SESSION_TYPE,wayland
#XDG_SESSION_DESKTOP=sway
MOZ_ENABLE_WAYLAND=1
GDK_BACKEND=wayland
WLR_NO_HARDWARE_CURSORS=1
GDK_BACKEND=wayland
WLR_RENDERER_ALLOW_SOFTWARE=1
OZONE_PLATFORM=wayland

View File

@@ -5,10 +5,7 @@ exec ~/set_once.sh
#
# Read `man 5 sway` for a complete reference.
# announce a running sway session to systemd
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
#
# user config directory
include $HOME/.config/sway/config.d/*

View File

@@ -0,0 +1,16 @@
# 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

View File

@@ -7,10 +7,7 @@ exec mako
# Network Applet
exec nm-applet --indicator
# GTK3 applications take a long time to start
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# Welcome App
exec dex -a -s /etc/xdg/autostart/:~/.config/autostart/

View File

@@ -15,3 +15,4 @@ prompt=
image_size=15
display_generic=true
location=center
columns=2

View File

@@ -1,6 +0,0 @@
export MOZ_ENABLE_WAYLAND=1
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export WLR_NO_HARDWARE_CURSORS=1
#export WLR_NO_HARDWARE_CURSORS=0
export WLR_RENDERER_ALLOW_SOFTWARE=1