sudo apt install xbindkeys xdotool wmctrlxbindkeys --defaults > ~/.xbindkeysrcAdd the following at the bottom of the file:
# Disable Ctrl+R in Chrome/Chromium only
"bash -c 'wmctrl -lx | grep -qiE \"(google-chrome|chromium)\" && :'"
Control + rkillall xbindkeys
xbindkeysTo autostart add xbindkeys to your session startup.
Extras:
Disable Alt + left arrow and Alt + right arrow:
# Disable Alt+Left in Chrome/Chromium
"bash -c 'wmctrl -lx | grep -qiE \"(google-chrome|chromium)\" && :'"
Alt + Left
# Disable Alt+Right in Chrome/Chromium
"bash -c 'wmctrl -lx | grep -qiE \"(google-chrome|chromium)\" && :'"
Alt + Right