diff --git a/bash/usr-local-bin/brave b/bash/usr-local-bin/brave index 29add4c..71bd9cb 100755 --- a/bash/usr-local-bin/brave +++ b/bash/usr-local-bin/brave @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -x -/usr/bin/brave-browser-stable --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/brave-browser-stable --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/brave-beta b/bash/usr-local-bin/brave-beta index 71148f5..9f0f50d 100755 --- a/bash/usr-local-bin/brave-beta +++ b/bash/usr-local-bin/brave-beta @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -x -/usr/bin/brave-browser-beta --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/brave-browser-beta --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/brave-nightly b/bash/usr-local-bin/brave-nightly index eaa59ff..4816974 100755 --- a/bash/usr-local-bin/brave-nightly +++ b/bash/usr-local-bin/brave-nightly @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -x -/usr/bin/brave-browser-nightly --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/brave-browser-nightly --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/chromium b/bash/usr-local-bin/chromium index 0aa7b3c..f29bae7 100755 --- a/bash/usr-local-bin/chromium +++ b/bash/usr-local-bin/chromium @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -x -/usr/bin/chromium-browser --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/chromium-browser --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/code b/bash/usr-local-bin/code index 6ebf570..d1f60ae 100755 --- a/bash/usr-local-bin/code +++ b/bash/usr-local-bin/code @@ -5,20 +5,20 @@ set -x if [ -f /usr/bin/code ]; then - /usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform-hint=x11 "$@" + /usr/bin/code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=x11 "$@" elif [ -f /snap/bin/code ]; then # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104 #unset DBUS_SESSION_BUS_ADDRESS # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105 #export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus - snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform-hint=x11 "$@" + snap run code --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=x11 "$@" elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then - flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations "$@" + flatpak run --user com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code ]; then - flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations "$@" + flatpak run com.visualstudio.code --verbose --no-sandbox --ozone-platform-hint=x11 --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" else echo "code not found :(" diff --git a/bash/usr-local-bin/code-insiders b/bash/usr-local-bin/code-insiders index d8c9e67..da63acc 100755 --- a/bash/usr-local-bin/code-insiders +++ b/bash/usr-local-bin/code-insiders @@ -2,20 +2,20 @@ set -x if [ -f /usr/bin/code-insiders ]; then - /usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform-hint=auto "$@" + /usr/bin/code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@" elif [ -f /snap/bin/code-insiders ]; then # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104 #unset DBUS_SESSION_BUS_ADDRESS # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105 #export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus - snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform-hint=auto "$@" + snap run code-insiders --verbose --enable-features=WaylandWindowDecorations,UseOzonePlatform,WebContentsForceDark --ozone-platform-hint=auto "$@" elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then - flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" + flatpak run --user com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" elif [ -f ~/.local/share/flatpak/exports/bin/run/com.visualstudio.code.insiders ]; then - flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" + flatpak run com.visualstudio.code.insiders --verbose --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" else echo "code not found :(" diff --git a/bash/usr-local-bin/codium b/bash/usr-local-bin/codium index d3e3a5a..e2736e1 100755 --- a/bash/usr-local-bin/codium +++ b/bash/usr-local-bin/codium @@ -2,5 +2,5 @@ set -x # https://github.com/flathub/com.vscodium.codium/issues/55 -flatpak run com.vscodium.codium --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" +flatpak run com.vscodium.codium --no-sandbox --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/deltachat b/bash/usr-local-bin/deltachat index 484046f..7e35145 100755 --- a/bash/usr-local-bin/deltachat +++ b/bash/usr-local-bin/deltachat @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -x -flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" +flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/element b/bash/usr-local-bin/element index 8d8b4ba..f857487 100755 --- a/bash/usr-local-bin/element +++ b/bash/usr-local-bin/element @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -x -flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" +flatpak run im.riot.Riot --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/element-tor b/bash/usr-local-bin/element-tor index d51657c..7073985 100755 --- a/bash/usr-local-bin/element-tor +++ b/bash/usr-local-bin/element-tor @@ -3,5 +3,5 @@ set -x # proxy authentication is not supported # https://github.com/vector-im/element-web/issues/3320 -flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" +flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC im.riot.Riot --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/google-chrome b/bash/usr-local-bin/google-chrome index 721c08d..e97206d 100755 --- a/bash/usr-local-bin/google-chrome +++ b/bash/usr-local-bin/google-chrome @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -x -/usr/bin/google-chrome-stable --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/google-chrome-stable --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/microsoft-edge b/bash/usr-local-bin/microsoft-edge index 032a60c..b32216a 100755 --- a/bash/usr-local-bin/microsoft-edge +++ b/bash/usr-local-bin/microsoft-edge @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -x -/usr/bin/microsoft-edge --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/microsoft-edge --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/microsoft-teams b/bash/usr-local-bin/microsoft-teams index e6f5ed6..6820c44 100755 --- a/bash/usr-local-bin/microsoft-teams +++ b/bash/usr-local-bin/microsoft-teams @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -x -flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" +flatpak run com.github.IsmaelMartinez.teams_for_linux --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/schildichat b/bash/usr-local-bin/schildichat index 85d29fd..09580e4 100755 --- a/bash/usr-local-bin/schildichat +++ b/bash/usr-local-bin/schildichat @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -x -flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@" +flatpak run chat.schildi.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@" set +x diff --git a/bash/usr-local-bin/schildichat-tor b/bash/usr-local-bin/schildichat-tor index edeac82..125a04f 100755 --- a/bash/usr-local-bin/schildichat-tor +++ b/bash/usr-local-bin/schildichat-tor @@ -3,5 +3,5 @@ set -x # proxy authentication is not supported # https://github.com/vector-im/element-web/issues/3320 -flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --system-theme-dark-override "$@" +flatpak run --env=LC_ALL=en_US.utf8 --env=TZ=UTC chat.schildi.desktop --proxy-server=socks5://127.0.0.1:9050 --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark --system-theme-dark-override "$@" set +x diff --git a/bash/usr-local-bin/signal-desktop b/bash/usr-local-bin/signal-desktop index 9085fdc..a5fe252 100755 --- a/bash/usr-local-bin/signal-desktop +++ b/bash/usr-local-bin/signal-desktop @@ -4,5 +4,5 @@ set -x # --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon -flatpak run org.signal.Signal --use-tray-icon --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" +flatpak run org.signal.Signal --use-tray-icon --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x diff --git a/bash/usr-local-bin/superproductivity b/bash/usr-local-bin/superproductivity index 464f18b..6b55739 100755 --- a/bash/usr-local-bin/superproductivity +++ b/bash/usr-local-bin/superproductivity @@ -3,8 +3,8 @@ set -x if [ -f /snap/bin/superproductivity ]; then # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus - snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" + snap run superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" else - /usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@" + /usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" fi set +x diff --git a/bash/usr-local-bin/vivaldi b/bash/usr-local-bin/vivaldi index 810ea71..9823876 100755 --- a/bash/usr-local-bin/vivaldi +++ b/bash/usr-local-bin/vivaldi @@ -1,4 +1,4 @@ #!/usr/bin/env bash set -x -/usr/bin/vivaldi --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@" +/usr/bin/vivaldi --ozone-platform=wayland --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@" set +x