summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/home.nix b/home.nix
index c74ba4b..c46cbf9 100644
--- a/home.nix
+++ b/home.nix
@@ -1117,6 +1117,18 @@ in
1117 xdg = { 1117 xdg = {
1118 enable = true; 1118 enable = true;
1119 1119
1120 portal = {
1121 enable = true;
1122 extraPortals = [ pkgs.xdg-desktop-portal-luminous ];
1123 config.sway = {
1124 default = [ "luminous" ];
1125 "org.freedesktop.impl.portal.Screenshot" = [ "luminous" ];
1126 "org.freedesktop.impl.portal.ScreenCast" = [ "luminous" ];
1127 "org.freedesktop.impl.portal.Settings" = [ "luminous" ];
1128 "org.freedesktop.impl.portal.RemoteDesktop" = [ "luminous" ];
1129 };
1130 };
1131
1120 configFile = { 1132 configFile = {
1121 "qutebrowser/theme.py".text = '' 1133 "qutebrowser/theme.py".text = ''
1122 # Colors. 1134 # Colors.
@@ -1507,6 +1519,18 @@ in
1507 }; 1519 };
1508 1520
1509 extraConfig = '' 1521 extraConfig = ''
1522 # I hate xdg-desktop-portal
1523 exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway
1524 exec systemctl --user import-environment DISPLAY \
1525 SWAYSOCK \
1526 WAYLAND_DISPLAY \
1527 XDG_CURRENT_DESKTOP
1528 exec hash dbus-update-activation-environment 2>/dev/null && \
1529 dbus-update-activation-environment --systemd DISPLAY \
1530 SWAYSOCK \
1531 XDG_CURRENT_DESKTOP=sway \
1532 WAYLAND_DISPLAY
1533
1510 mouse_warping container 1534 mouse_warping container
1511 1535
1512 blur enable 1536 blur enable