This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

desktops.wayland: pin xdg-desktop-portal-wlr source chooser

+11 -1
+11 -1
2configs/desktops/lib/wayland.nix
··· 41 41 pkgs.xdg-desktop-portal-gtk 42 42 pkgs.xdg-desktop-portal-wlr 43 43 ]; 44 - # xdg.portal.wlr.enable = true; 45 44 xdg.portal.config.common.default = "wlr"; 45 + # Firefox (and chromium, obs) always ask the ScreenCast portal for 46 + # MONITOR|WINDOW. xdg-desktop-portal-wlr then skips the slurp entry of its 47 + # default chooser list — slurp cannot pick a window — and falls through to the 48 + # dmenu-style entries (wmenu, wofi, rofi, bemenu, ...), none of which nixpkgs 49 + # wraps into the portal: NixOS/nixpkgs#471244. So SelectSources died with 50 + # "no output found" before any picker appeared and every screenshare failed. 51 + # Pin an absolute dmenu chooser, which lists monitors and windows alike. 52 + xdg.portal.wlr.settings.screencast = { 53 + chooser_type = "dmenu"; 54 + chooser_cmd = "${lib.getExe pkgs.wofi} -d -n --prompt='Select a source to share:'"; 55 + }; 46 56 fonts.enableDefaultPackages = true; 47 57 48 58 # PipeWire runs system-wide and is usually not ready yet when sway starts the