chromium screen capture

This commit is contained in:
dusk 2021-08-21 17:13:22 +03:00
parent 454ed1e050
commit 3918630973
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 7 additions and 3 deletions

View File

@ -146,6 +146,7 @@ in
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
media-session.enable = true;
}; };
hardware = { hardware = {
opengl = { opengl = {

View File

@ -98,9 +98,9 @@ in
let let
flags = [ flags = [
"--enable-vulkan" "--enable-vulkan"
#"--flag-switches-begin" "--flag-switches-begin"
"--enable-features=UseOzonePlatform" "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklis"
#"--flag-switches-end" "--flag-switches-end"
"--ozone-platform=wayland" "--ozone-platform=wayland"
"--enable-webrtc-pipewire-capturer" "--enable-webrtc-pipewire-capturer"
"--ignore-gpu-blocklist" "--ignore-gpu-blocklist"
@ -402,6 +402,9 @@ in
enable = true; enable = true;
extraSessionCommands = extraEnv; extraSessionCommands = extraEnv;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
extraConfig = ''
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
'';
config = { config = {
fonts = { fonts = {
names = [ font ]; names = [ font ];