commit 578132c54b55c45274eae05f902d790e8f8f7f2b Author: Markus Koch Date: Wed Mar 4 10:59:58 2020 +0100 Enable Chromium OverlayScrollbars diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..68daf8b --- /dev/null +++ b/README.MD @@ -0,0 +1,4 @@ +# Chromium-Custom +Patches the following behavior: + +* Enable OverlayScrollbars experimental feature diff --git a/desktop.patch b/desktop.patch new file mode 100644 index 0000000..0e12def --- /dev/null +++ b/desktop.patch @@ -0,0 +1,26 @@ +--- /usr/share/applications/chromium.desktop 2020-03-04 10:49:57.162352704 +0100 ++++ a/chromium.desktop 2020-03-04 10:50:01.112359613 +0100 +@@ -105,7 +105,7 @@ + Comment[zh_CN]=访问互联网 + Comment[zh_HK]=連線到網際網路 + Comment[zh_TW]=連線到網際網路 +-Exec=/usr/bin/chromium %U ++Exec=/usr/bin/chromium --enable-features=OverlayScrollbar %U + StartupNotify=true + Terminal=false + Icon=chromium +@@ -166,7 +166,7 @@ + Name[vi]=Cửa sổ Mới + Name[zh_CN]=新建窗口 + Name[zh_TW]=開新視窗 +-Exec=/usr/bin/chromium ++Exec=/usr/bin/chromium --enable-features=OverlayScrollbar + + [Desktop Action new-private-window] + Name=New Incognito Window +@@ -218,4 +218,4 @@ + Name[vi]=Cửa sổ ẩn danh mới + Name[zh_CN]=新建隐身窗口 + Name[zh_TW]=新增無痕式視窗 +-Exec=/usr/bin/chromium --incognito ++Exec=/usr/bin/chromium --enable-features=OverlayScrollbar --incognito diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..846a259 --- /dev/null +++ b/install.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "`whoami`" != "root" ]; then + echo "Need to be root." + exit 1 +fi + +(cd / && patch -p0) < desktop.patch