From b6411790c8e145f4a19ecfb3dd39df0c9e33a869 Mon Sep 17 00:00:00 2001 From: vin Date: Mon, 19 May 2025 15:13:21 -0400 Subject: demiurge, hastur: finally got xdg-desktop-portal working --- home.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/home.nix b/home.nix index c74ba4b..c46cbf9 100644 --- a/home.nix +++ b/home.nix @@ -1117,6 +1117,18 @@ in xdg = { enable = true; + portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-luminous ]; + config.sway = { + default = [ "luminous" ]; + "org.freedesktop.impl.portal.Screenshot" = [ "luminous" ]; + "org.freedesktop.impl.portal.ScreenCast" = [ "luminous" ]; + "org.freedesktop.impl.portal.Settings" = [ "luminous" ]; + "org.freedesktop.impl.portal.RemoteDesktop" = [ "luminous" ]; + }; + }; + configFile = { "qutebrowser/theme.py".text = '' # Colors. @@ -1507,6 +1519,18 @@ in }; extraConfig = '' + # I hate xdg-desktop-portal + 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 + mouse_warping container blur enable -- cgit v1.2.3