diff options
| author | vin <vin@vineetk.net> | 2025-05-19 15:13:21 -0400 |
|---|---|---|
| committer | vin <vin@vineetk.net> | 2025-05-19 15:13:21 -0400 |
| commit | b6411790c8e145f4a19ecfb3dd39df0c9e33a869 (patch) | |
| tree | 64dba7c261326a0d74c1925e26822f309d1f48ae | |
| parent | 988aca5d5c981d7352b86b8d67727d1227c949fa (diff) | |
demiurge, hastur: finally got xdg-desktop-portal working
| -rw-r--r-- | home.nix | 24 |
1 files changed, 24 insertions, 0 deletions
| @@ -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 |
