0sama's Website!
How To Enable Kinetic Scrolling In Chrome And Firefox.
Kinetic Scrolling is enabled by default on Xrog Firefox but not on Chrome. I have only tried Chrome's Kinetic scrolling on Wayland, so I dont know if it works on Xorg.
Firefox
For Xorg
Open Firefox and type following in the url:
about:config
Search
apz. gtk. kinetic_scroll. enabled
enable/disable it.
For Wayland
Open terminal and type:
MOZ_ENABLE_WAYLAND=1 firefox
Scroll some random pages you will realize that it has been enabled.
To automatically set it open " bash.profile " and paste the following code:
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then export MOZ_ENABLE_WAYLAND=1 fi [[ -f ~/.bashrc ]] && . ~/.bashrcSave and restart!
You can also use 2 fingure swipe to go forward and backwards.
Chrome And Its Derivatives
For Wayland Only(I have not used chrome on Xorg)
Steps Are Almost The Same As Firefox.
Open terminal and type:
chromium --ozone-platform-hint=auto
Just replace chromium to any other chrome derivative browser e.g:
brave --ozone-platform-hint=auto
To automatically set it go to " /home/$User/.config " and look for "chromium-flags.conf" file.
If you cant find it then simply create a new file by its name. The name will change according to the application e.g "brave-flags.conf"
Paste the following code inside it:
# This line will be ignored. --ozone-platform-hint=autoSave and restart!
To Enable 2 Fingure Gesture
Just add the following into the previously mentioned flag:
--enable-features=TouchpadOverscrollHistoryNavigation
PWA's And Web Applications.
If you have installed a PWA from chrominum then when you will click on its icon the wayland support wont turn on. To fix that follow the steps below:
go to " /home/$User/.local/share/applications/ " and look for anything that starts with chromium/brave/chrome etc
These files will have random names like "brave-jdklklfpinionkgpmghaghehojplfjio-Default.desktop" These are those individual PWA's
Open every single one of them through a text editor.
In the "Exec=" part you will notice the name of the program is written alown with some flags. We only need to add the previous flag in it.
Copy Paste and thats it! Here is how it will look:
Exec=/usr/lib/brave-bin/brave --ozone-platform-hint=auto --profile-directory=Default --app-id=jdklklfpinionkgpmghaghehojplfjio
Troubleshooting
Only For Brave Or Anyother whose run script is avaiable.
If chrome doesnt read that confi file then you may have to go to
- "/usr/bin"
and search for
brave or chrominum Paste the following inside the file after the definition of XDG_CONFIG_HOME:
# Allow users to override command-line options USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf" if [[ -f $USER_FLAGS_FILE ]]; then USER_FLAGS="$(cat $USER_FLAGS_FILE | sed 's/#.*//')" fiReplace "brave" to your desired browser.
Save , quit and restart!