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.
- Host: GitHub
- URL: https://github.com/coffebar/google-chrome-quit-shortcut
- Owner: coffebar
- License: gpl-2.0
- Created: 2019-06-21T13:45:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T07:59:00.000Z (over 2 years ago)
- Last Synced: 2025-01-18T22:12:14.972Z (3 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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```