removed autostart and in condif environmental settings using standard sway example. and adding environment.d change .profile to point blanc
This commit is contained in:
6
.config/environment.d/.profile
Normal file
6
.config/environment.d/.profile
Normal 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
|
||||
10
.config/environment.d/30-envvars.conf
Normal file
10
.config/environment.d/30-envvars.conf
Normal 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
|
||||
@@ -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/*
|
||||
|
||||
|
||||
16
.config/sway/config.d/50-systemd-user.conf
Normal file
16
.config/sway/config.d/50-systemd-user.conf
Normal 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
|
||||
@@ -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/
|
||||
|
||||
@@ -15,3 +15,4 @@ prompt=
|
||||
image_size=15
|
||||
display_generic=true
|
||||
location=center
|
||||
columns=2
|
||||
|
||||
Reference in New Issue
Block a user