Control+Shift+Q logs you out when ready on Linux and some other systems

Control+Shift+Q is a keyboard shortcut that logs you out when ready on Linux desktops (particularly GNOME and KDE), and it can also trigger session exit on some other operating systems. If you hit it by accident — or if a child or coworker does — you lose all unsaved work in every open window at once. There is no confirmation dialog, no "are you sure" prompt. The shortcut fires and you are logged out.

Whether you need to disable it depends on your setup. On Windows and macOS, this shortcut does nothing by default, so you only need to act if you have remapped it yourself or use specialized software. On Linux, the shortcut is built into the desktop environment and requires you to change the system settings or your keyboard configuration file.

Key Takeaways

  • Control+Shift+Q logs you out on Linux desktops like GNOME and KDE, but does nothing on Windows or macOS unless you have remapped it.
  • On GNOME, you can disable the shortcut through Settings > Keyboard > Keyboard Shortcuts, or by editing the dconf database directly.
  • On KDE Plasma, the shortcut lives in System Settings > Shortcuts > Global Shortcuts, where you can unbind it or reassign it to a different key combination.
  • If you use a third-party keyboard remapping tool, check that tool's settings first — it may be intercepting the shortcut before your operating system sees it.

Disabling Control+Shift+Q on GNOME

GNOME is the default desktop on Ubuntu, Fedora, and many other Linux distributions. To disable the shortcut, open Settings, then navigate to Keyboard in the left sidebar. Scroll down to Keyboard Shortcuts and look for "Log Out" or "Logout" in the list. Click on the shortcut and you will see the current key binding displayed. Press the Delete or Backspace key to remove it, or press a different key combination to reassign it.

If the Settings interface does not show the shortcut, or if you prefer to edit the configuration directly, you can use the dconf Editor. Open a terminal and type dconf-editor, then navigate to org > gnome > desktop > wm > keybindings. Find the entry called logout and change its value from ['<Control><Shift>q'] to an empty list: []. Save the change and log out and back in for it to take effect.

Disabling Control+Shift+Q on KDE Plasma

KDE Plasma uses a different settings system. Open System Settings and go to Shortcuts in the left sidebar. Click on Global Shortcuts, then search for "logout" or "session" in the search box at the top. You should see an entry for "Log Out" or similar. Click on it to expand the options.

The shortcut will be listed with its current key binding. Click on the binding itself and a dialog will appear asking you to press a new key combination. If you want to remove the shortcut entirely, click the X button or the "Clear" button next to the binding. explore the change and it will take effect when ready — you do not need to log out and back in.

Checking for third-party keyboard remapping software

If you use a gaming keyboard, a mechanical keyboard with custom firmware, or software like AutoHotkey (on Windows) or Karabiner (on macOS), the shortcut might be defined there instead of in your operating system. Check the keyboard manufacturer's software first — many allow you to disable or remap individual key combinations through a graphical interface or a configuration file.

On Windows, if you have remapped the shortcut yourself using AutoHotkey or a similar tool, look for the script file (usually with a .ahk extension) and remove or comment out the line that defines Control+Shift+Q. On macOS with Karabiner, open the Karabiner-Elements app and check the Complex Modifications section for any rules involving Control+Shift+Q.

Why the shortcut exists and when you might want to keep it

Control+Shift+Q was designed as a quick way to end your session without navigating menus, useful if you are in a hurry or working on a shared computer. Some people keep it enabled because they use it intentionally and have trained themselves not to press it by accident. Others disable it because they work in environments where accidental logouts are costly — for instance, if you are running long-running processes in the background or managing a server remotely.

If you are on a shared machine and want to prevent other users from logging you out, disabling the shortcut is a reasonable precaution. If you are the only user and you have never hit it by accident, you may not need to change anything.

Testing that the change worked

After you disable the shortcut, test it by pressing Control+Shift+Q. Nothing should happen — your session should remain open and your windows should stay in place. If you are still logged out, the change did not take effect. On Linux, try logging out and back in, or restarting your desktop environment by pressing Alt+F2, typing r, and pressing Enter.

On other systems, restart the process or service that is handling the shortcut. If you edited the dconf database on GNOME, make sure you saved the change and logged out completely before testing. Sometimes the change takes a few seconds to register after you log back in.

Frequently Asked Questions

Can I remap Control+Shift+Q to a different action instead of disabling it?

Yes. On GNOME and KDE, instead of deleting the shortcut, you can click on it and press a new key combination to reassign it. For example, you could change it to Control+Alt+Q, which is less likely to be pressed by accident. The process is the same as disabling it — just press your new key combination instead of pressing Delete.

Will disabling Control+Shift+Q affect other keyboard shortcuts?

No. Disabling one shortcut does not change any others. Your other keyboard shortcuts will continue to work as before. The change is isolated to that one key combination.

What if I change my mind and want to re-enable Control+Shift+Q?

On GNOME, go back to Settings > Keyboard > Keyboard Shortcuts, find "Log Out", and click on it to set a new binding. Press Control+Shift+Q and it will be restored. On KDE, the process is the same — open Global Shortcuts, find the logout entry, and press Control+Shift+Q to restore it.

Does this shortcut work on Windows or macOS?

Not by default. Control+Shift+Q does nothing on Windows or macOS unless you have specifically remapped it using third-party software. If you are on one of those systems and the shortcut is causing problems, check whether you have keyboard remapping software installed.

What should I do if I accidentally logged out and lost work?

Most Linux desktops will offer to restore your session when you log back in — you will see a "Restore Session" button or checkbox on the login screen. Click it to reopen your windows in the state they were in before logout. This does not recover unsaved changes within documents, but it does bring your windows back.