mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-29 14:49:22 +01:00
usr-local-bin: attempt to force dark mode
This commit is contained in:
parent
be3c9a1092
commit
b11fab004a
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -5,20 +5,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/code ]; then
|
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
|
elif [ -f /snap/bin/code ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#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
|
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
|
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
|
else
|
||||||
echo "code not found :("
|
echo "code not found :("
|
||||||
|
@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
if [ -f /usr/bin/code-insiders ]; then
|
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
|
elif [ -f /snap/bin/code-insiders ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
|
||||||
#unset DBUS_SESSION_BUS_ADDRESS
|
#unset DBUS_SESSION_BUS_ADDRESS
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
#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
|
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
|
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
|
else
|
||||||
echo "code not found :("
|
echo "code not found :("
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
# https://github.com/flathub/com.vscodium.codium/issues/55
|
# 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
|
set +x
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
set -x
|
set -x
|
||||||
# proxy authentication is not supported
|
# proxy authentication is not supported
|
||||||
# https://github.com/vector-im/element-web/issues/3320
|
# 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
|
set +x
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
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
|
set +x
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
set -x
|
set -x
|
||||||
# proxy authentication is not supported
|
# proxy authentication is not supported
|
||||||
# https://github.com/vector-im/element-web/issues/3320
|
# 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
|
set +x
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
# --start-in-tray - would be nice, but then I cannot open it from there, thus --use-tray-icon
|
# --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
|
set +x
|
||||||
|
@ -3,8 +3,8 @@ set -x
|
|||||||
if [ -f /snap/bin/superproductivity ]; then
|
if [ -f /snap/bin/superproductivity ]; then
|
||||||
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105
|
||||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
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
|
else
|
||||||
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"
|
/usr/bin/superproductivity --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebContentsForceDark "$@"
|
||||||
fi
|
fi
|
||||||
set +x
|
set +x
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -x
|
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
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user