Keyboard Shortcut Repeatedly Stops Working in Xubuntu

Abstract: Reset corrupted xfce4-keyboard-shortcuts.xml to restore non-functional keyboard shortcuts in Xubuntu.

Created: 2026-08-25 by
Keyboard shortcuts in Xubuntu often stop working due to configuration corruption within the xfce4-keyboard-shortcuts.xml file or conflicts with running applications. The most reliable fix is resetting this specific XML file to its default state, which forces the Xfce desktop environment to reload standard key bindings without affecting other system settings or user data.

Understanding the Configuration File

In the Xfce desktop environment used by Xubuntu, keyboard shortcuts are managed by a dedicated configuration file located in your user home directory. This file, named xfce4-keyboard-shortcuts.xml, resides inside the .config/xfce4/ hidden folder. When this file becomes corrupted, experiences permission errors, or contains invalid XML syntax, the window manager may fail to parse the key binding rules correctly. As a result, specific shortcuts like Super+E for files or Alt+F2 for the run dialog will cease to respond.

It is important to distinguish this from the global system-wide shortcuts. While some issues stem from hardware failures or driver conflicts, persistent failure of multiple or all shortcuts usually points directly to this local configuration file. Resetting it is a safe operation because it only restores the default mapping of keys to actions; it does not delete documents, browser history, or application preferences stored elsewhere in your profile.

Step-by-Step Resolution

To resolve the issue, you need to replace the potentially corrupted file with a fresh copy generated by the system. Follow these steps carefully to ensure the change takes effect immediately.

  1. Navigate to the Configuration Directory: Open the terminal and change directory to your Xfce configuration folder using the command cd ~/.config/xfce4. You can verify you are in the correct location by listing the contents with ls -la.
  2. Backup the Existing File: Before making any changes, create a backup of the current configuration. Run the command mv xfce4-keyboard-shortcuts.xml xfce4-keyboard-shortcuts.xml.bak. This ensures that if the reset causes unexpected behavior, you can restore the previous state by renaming the backup back to the original filename.
  3. Reset the Configuration: Delete the problematic file or move it out of the way. If you backed it up, simply remove the original with rm xfce4-keyboard-shortcuts.xml. Alternatively, you can let the system regenerate it by restarting the window manager. The most direct method is to rename the backup back to the original name after verifying the issue persists, but typically, removing the file allows Xfce to generate a new default one upon the next login or session restart.
  4. Restart the Window Manager: To apply the changes without logging out, press Alt+F2 (if it works) or open a terminal and type xfwm4 --replace. This command restarts the Xfce window manager, forcing it to read the new default configuration file.

If the shortcuts still do not work after restarting the window manager, log out completely and log back in. This ensures that all Xfce components, including the panel and settings daemon, reinitialize with the clean configuration.

Alternative Troubleshooting Steps

If resetting the keyboard shortcuts file does not resolve the issue, other factors may be interfering with input handling. One common cause is a conflict with a background service or an application that has grabbed exclusive control over certain keys. For instance, screen recording software or remote desktop tools often lock media keys or modifier combinations.

You can check for such conflicts by opening the Keyboard Settings via the Whisker Menu under Settings > Keyboard. Navigate to the Application Shortcuts tab. Look for any entries that appear grayed out or have no associated action. If you see shortcuts that are mapped to "disabled" or show errors, select them and press the Delete button to clear the conflicting binding. Then, reassign the desired shortcut manually.

Another potential culprit is the Xfce panel itself, especially if you recently installed updates or plugins. While less likely to affect keyboard shortcuts directly, a malfunctioning panel can sometimes indicate broader instability in the desktop environment. If you experience frequent panel crashes alongside shortcut failures, refer to our guide on resolving panel instabilities at Why does my xfce4-panel keep crashing and immediately respawning itself many times a day?. This resource provides detailed diagnostics for panel-related issues that might coincidentally occur with input problems.

Verifying the Fix

After applying the solution, test a variety of shortcuts to ensure comprehensive functionality. Try navigation keys like Alt+Left and Alt+Right for window switching, as well as application launchers like Super+R. If these work consistently, the configuration file was indeed the source of the problem. If only specific shortcuts fail, the issue may lie within the application-specific mappings rather than the global system defaults.

Frequently Asked Questions

Will resetting keyboard shortcuts delete my custom key bindings?

Yes, resetting the xfce4-keyboard-shortcuts.xml file will revert all custom shortcuts to their factory defaults. Any unique mappings you created for specific applications will be lost unless you documented them beforehand. However, this process does not affect your personal files, bookmarks, or other application configurations.

How do I find the exact path to the keyboard config file?

The file is always located at ~/.config/xfce4/xfce4-keyboard-shortcuts.xml. You can access this path by opening your file manager, pressing Ctrl+H to show hidden files, navigating to the .config folder, then into xfce4. Using the terminal command echo $HOME/.config/xfce4/xfce4-keyboard-shortcuts.xml will also display the absolute path.

What should I do if Alt+F2 does not open the run dialog?

If Alt+F2 fails, you can still execute commands via the terminal or by using the xfce4-session-logout command to log out and back in. Once logged in again, you can access the Keyboard Settings through the main menu. If no shortcuts work, holding Ctrl+Alt+T might still open a terminal depending on whether the core window manager is responsive.

Can I export my current shortcuts before resetting?

Xfce does not have a built-in "export" button for shortcuts in the GUI. However, since the configuration is stored in a plain text XML file, you can manually copy xfce4-keyboard-shortcuts.xml to a safe location like your Desktop or Documents folder before deleting or renaming it. This acts as a manual backup that you can restore later if needed.

Does this issue happen in other Linux distributions?

This specific issue is common across all Linux distributions using the Xfce desktop environment, such as Xubuntu, Lubuntu, and Arch Linux with Xfce. The underlying mechanism for storing shortcuts in ~/.config/xfce4/ is consistent. Therefore, the troubleshooting steps provided here are applicable to any Xfce-based system facing similar shortcut failures.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More