This repository contains patches to restore GTK 3's look & feel reminiscent to earlier versions. With many enhancements such as disabled CSD headers, traditional dialog boxes and file browser improvements.
These are designed to work on non-GNOME desktops (such as XFCE and MATE) and any other environment where GTK applications are used. Running on GNOME desktops is not recommended!
Once known as gtk3-mushrooms
, this repository is a collection of patches
that apply on top of the GTK 3 source code. It's not a fork of GTK 3.
This repository acts as a central hub for these patches and will keep rolling if there's a new GTK 3 release. The patches aim to bring a bit of reminiscence to GTK 2 and GTK 3's early days (hence, "classic")
This repository is provided as-is, with no warranty or guaranteed support. While the patched installation should just work, you are entering unsupported tertiary.
Available from the AUR under gtk3-classic
(previously gtk3-mushrooms
)
Based on the official gtk3
package
with some changes to make the package more lightweight:
adwaita-icon-theme
- default icon themecantarell-fonts
- default fontdconf
- default GSettings backendcolord
- color management supportlibcups
- enable printers in print dialogThere's a few ways to install:
The release notes contains a package built autonomously by GitHub Actions for your convenience.
sudo pacman -U ./*.tar.zst
Use an AUR helper, such as yay
:
yay -S gtk3-classic
The AUR's PKGBUILD follows this repository's latest release as its source.
Build from source:
git clone https://github.com/lah7/gtk3-classic cd gtk3-classic makepkg -s
This repository's PKGBUILD allows for selectively choosing patches.
Only available for LTS releases (starting from 20.04)
These packages are based on the original gtk+3.0
package, with the version suffixed with ~classic
. These packages are rarely
updated, as they are patched against the GTK 3 version originally used for that release.
To install, add the repository and upgrade your packages:
sudo add-apt-repository ppa:lah7/gtk3-classic
sudo apt dist-upgrade
To restore the original GTK 3, use ppa-purge
to restore the packages from Ubuntu's repository:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:lah7/gtk3-classic
This works for stock Ubuntu. If you're using an Ubuntu derivative (like Linux Mint), you may need to manually downgrade packages instead.
A Gentoo ebuild is available as x11-libs/gtk3-classic-patches
in
the khoverlay
overlay. Rather than providing a patched x11-libs/gtk+:3
ebuild directly, this ebuild installs user patches which will be applied on
subsequent builds of GTK 3. This way, the latest official Gentoo GTK 3 ebuild can
always be used.
To install, first add the overlay and accept the package's testing status:
sudo eselect repository enable khoverlay
sudo emerge --sync khoverlay
echo 'x11-libs/gtk3-classic-patches::khoverlay' | sudo tee -a /etc/portage/package.accept_keywords
Then install the patches and rebuild GTK 3:
sudo emerge -av gtk3-classic-patches
sudo emerge -av1 gtk+:3
To revert to standard GTK 3, remove the patches and rebuild GTK 3:
sudo emerge -cav gtk3-classic-patches
sudo emerge -av1 gtk+:3
GTK_CSD=0
per app (or in your desktop environment) to restore CSDs.GTK_CSD=1
to force CSDs on each GTK 3 window.GTK_CSD=1
environment variable.gtk-file-chooser-eject-button=false
in settings.ini
.GTK_CSD=1
or GTK_BACKDROP=1
environment variable.GTK_OVERLAY_SCROLLING=1
environment variable.GTKM_INSERT_EMOJI
environment variable.GTK_NO_TAB_SCROLL
environment variable.GTK_RELAX_RGBA
environment variable.atk-bridge
can be optionally disabled. (#101)
--without-atk-bridge
over a decade ago.atk_bridge
to false
(default: true
) and remove the dependencies from your package accordingly.These patches are for your own pleasure. They are not supported by GTK developers, your distribution or application developers. Please don't send bug reports to them because of this patched GTK 3 installation.
If you are having trouble with an application or theme, try:
GTK_CSD=0
environment variable, then run the application.gtk3
to confirm these patches caused the problem.If a patch is at fault, Arch and Gentoo users for instance can comment out (#
)
patches in series
until they find the one causing it.
Arch users can use the included scripts/test-exclude-each-patch.sh
script.
It'll exclude one patch at a time and create builds using the PKGBUILD
in this repository.
We're not writing new patches — only maintaining what we've got.
You are welcome to open a pull request with a new patch or fix if:
Patches should be added using the quilt
system.
Our primary packaging and testing happens on Arch. Checksums in PKGBUILD
need to be updated to pass the automated checks. On an Arch system, these can be
regenerated automatically:
updpkgsums
(Provided in pacman-contrib
)
If you're not using Arch Linux, don't worry! When you create the pull request and automated checks run, it'll fail ❌ and present a patch of required changes.
The Discussions tab is where you can find curated tips, chat, support and introductions from other users.
XFCE users might be interested in this additional patch for the file chooser: