A tool that restores the title bar lost in recent updates of the official Discord client app.
Find a file
TranslucentFoxHuman d4b7cfa396 First commit
2026-01-16 04:27:37 +09:00
discordpatcher First commit 2026-01-16 04:27:37 +09:00
README.MD First commit 2026-01-16 04:27:37 +09:00

What Is This?

This software is a tool that restores the title bar lost in recent updates of the official Discord client app.

Until recently, the Linux version of Discord displayed the window managers title bar rather than Discords own custom title bar, unlike the Windows version. With a recent update this changed: Discord now uses its own title bar on Linux, just like on Windows, and the window managers title bar is hidden.

Installation

DiscordPatcher is just a shell script, so once you have the required packages installed it can be run immediately.
DiscordPatcher requires the asar command, and installing that requires npm.
On Debianbased distributions you can install them with:

sudo apt install npm
sudo npm install -g asar

You might be prompted to install @electron/asar instead of asar. If you can install NodeJS22 or newer, you may use that. On Debian only NodeJS20 is available, so simply install asar.

How to Use

First, install Discord. When the installation is finished, open Discord once, wait until the main window appears, then press Ctrl+Q to quit completely. Verify that the Discord icon has disappeared from the system tray.

After that, simply run this tool from the terminal. There are no commandline options. Running it immediately modifies the client app.
If the modification completes without error, the message Discord was successfuly patched! will be displayed. When you open Discord again, the title bar should be restored.

Because updating Discord will revert the change, you must repeat the same steps after each update.

Why You Might Want to Restore the Window Managers Title Bar

  • Custom TitleBar Buttons
    Discords builtin title bar forces the windowcontrol buttons to be rightaligned in a Windowsstyle layout. Some window managers use nonWindows layouts, and others provide customization options to adjust button placement. If you prefer a macOSstyle title bar, the Motif Window Manager layout, or youve applied your own unique custom arrangement, Discords custom title bar will ruin that. Restore the windowmanager title bar to regain desktop usability!

  • Desktop Cohesion
    With the title bar hidden, Discord looks different from the other windows. This breaks the visual unity of your desktop. You probably want your favorite theme to apply to every window.

  • Window Effects
    Some window managers add shadows or borders to windows. Discord does not receive these effects, so the window boundary becomes invisible. When resizing, you might accidentally click on another window.

Disclaimer

Discords terms of service prohibit modifying the client. Using this tool may violate those terms, so use it at your own risk and exercise caution.
After all, its Discord thats really at fault, isnt it?

Finally, to the Discord developers who degrade usability for the sake of their own design: stop it. Discords design—installing systemwide via a .deb package yet storing the client binary in each users home directory—is fundamentally flawed. Discord simply doesnt understand GNU/Linux. After all, it is proprietary software. We shouldnt expect or rely on proprietary software, and we shouldnt use it. Encourage friends who use Discord to switch to better opensource alternatives.

License

This script is provided in the public domain.