From 036d60d8cd77a0b25d319d9d7b8353263cdfdf03 Mon Sep 17 00:00:00 2001
From: Jens Nolte <git@queezle.net>
Date: Wed, 19 May 2021 01:13:09 +0200
Subject: [PATCH] chromium: Enable ozone platform

---
 home-profiles/desktop/.config/sway/common | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/home-profiles/desktop/.config/sway/common b/home-profiles/desktop/.config/sway/common
index 53fdc1c..9041ebc 100644
--- a/home-profiles/desktop/.config/sway/common
+++ b/home-profiles/desktop/.config/sway/common
@@ -229,8 +229,8 @@ bindsym $mod+p exec $terminal python
 bindsym $mod+Shift+p exec $terminal stack ghci --verbosity warning
 
 # start a browser
-#bindsym $mod+b exec --no-startup-id chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --force-dark-mode
-bindsym $mod+b exec --no-startup-id chromium --enable-features=WebRTCPipeWireCapturer --force-dark-mode
+# Ozone appears to work only when $DISPLAY is not set
+bindsym $mod+b exec --no-startup-id chromium --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland --force-dark-mode
 #bindsym $mod+Shift+b exec --no-startup-id qutebrowser
 
 # start htop
-- 
GitLab