diff --git a/.chezmoitemplates/zprofile_linux.tmpl b/.chezmoitemplates/zprofile_linux.tmpl index 764e18e..cd3962a 100644 --- a/.chezmoitemplates/zprofile_linux.tmpl +++ b/.chezmoitemplates/zprofile_linux.tmpl @@ -60,8 +60,11 @@ if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then export QT_QPA_PLATFORM=wayland export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" export GDK_BACKEND=wayland - export XDG_SESSION_TYPE=wayland - export XDG_CURRENT_DESKTOP=sway + + export XDG_CURRENT_DESKTOP=sway # xdg-desktop-portal + export XDG_SESSION_DESKTOP=sway # systemd + export XDG_SESSION_TYPE=wayland # xdg/systemd + export WLR_NO_HARDWARE_CURSORS=1 export CLUTTER_BACKEND=wayland export SDL_VIDEODRIVER=wayland diff --git a/dot_config/xdg-desktop-portal/sway-portals.conf b/dot_config/xdg-desktop-portal/sway-portals.conf new file mode 100644 index 0000000..476f6b4 --- /dev/null +++ b/dot_config/xdg-desktop-portal/sway-portals.conf @@ -0,0 +1,2 @@ +[preferred] +default=wlr;gtk