From d79a93b645d51b80cffbd3471e41ceb50580d577 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 10 Oct 2023 10:13:27 +0200 Subject: [PATCH] add xdg-desktop-portol for sway --- .chezmoitemplates/zprofile_linux.tmpl | 7 +++++-- dot_config/xdg-desktop-portal/sway-portals.conf | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 dot_config/xdg-desktop-portal/sway-portals.conf 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