Enable Chromium OverlayScrollbars

This commit is contained in:
Markus Koch 2020-03-04 10:59:58 +01:00
commit 578132c54b
3 changed files with 38 additions and 0 deletions

4
README.MD Normal file
View File

@ -0,0 +1,4 @@
# Chromium-Custom
Patches the following behavior:
* Enable OverlayScrollbars experimental feature

26
desktop.patch Normal file
View File

@ -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

8
install.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [ "`whoami`" != "root" ]; then
echo "Need to be root."
exit 1
fi
(cd / && patch -p0) < desktop.patch