Got screen sharing working in a browser

This commit is contained in:
Alejandro Angulo 2023-06-10 18:31:32 -07:00
parent 5f43068efb
commit 6ef2372be6
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -50,7 +50,20 @@ in {
aa.system.fonts.enable = true;
environment.systemPackages = with pkgs; [wl-clipboard];
environment.systemPackages = with pkgs; [
wl-clipboard
grim
slurp
xdg-utils
xdg-desktop-portal-wlr
];
# For screen sharing to work
xdg.portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
wlr.enable = true;
};
aa.home.dataFile = {
${cfg.wallpaperPath}.source = ./wallpaper.jpg;
@ -60,6 +73,7 @@ in {
enable = true;
swaynag.enable = true;
wrapperFeatures.gtk = true; # so that gtk works properly
systemdIntegration = true; # needed this for screen sharing to work
config = {
inherit (terminal menu left right up down modifier);