An open API service indexing awesome lists of open source software.

https://github.com/coffebar/google-chrome-quit-shortcut

Gracefully terminate Google Chrome browser with this bash script using hotkey you like.
https://github.com/coffebar/google-chrome-quit-shortcut

Last synced: about 1 month ago
JSON representation

Gracefully terminate Google Chrome browser with this bash script using hotkey you like.

Awesome Lists containing this project

README

        

# Google Chrome Quit Shortcut

### Problem
Google Chrome does not support "Ctrl+Q" to quit on Linux. "Ctrl+Shift+Q" does nothing too.

### Solution
Use pkill with tiny script to gracefully terminate Google Chrome using hotkey.

### How to use
Make sure *xdotool* is installed:
`which xdotool`
shoud be "/usr/bin/xdotool". If xdotool not found, please install it.

Bind *quit-chrome.sh* bash script to any hotkey. I prefer "Ctrl+Win+Q", which does not conflict with "Ctrl+Q".

`/bin/bash YOUR_PATH_TO_SCRIPT/quit-chrome.sh > /dev/null`

Keep in mind that the script will work if the browser window is active. Thereby, You can add other programs to the script to provide the desired logic for each one. You probably won't have to do this. Unlike Chrome, most programs follow the standard to quit on Ctrl+Q.

# UPD: Solution 2
Try this without any scripts:
```Alt+e x```