Skip to content

eritbh/kde-application-titlebar-themes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kde-application-titlebar-themes

A set of application-specific KDE Plasma titlebar themes that match the titlebar's colors to the rest of the application's UI without giving up the full native titlebar.

Supported applications

Want a theme for another application? Request it!

Installing and Using

Titlebar themes are provided as .colors files which can be downloaded and placed in ~/.local/share/color-schemes. Window rules can then be used to apply titlebar themes to specific applications.

Configuring via GUI

There are two ways to create a window rule via a GUI:

  • Right-click the native titlebar, and go to More Actions > Configure Special Application Settings. This will open the window rule editor for the current application, with the window class pre-filled.

  • Open System Settings > Window Management > Window Rules. This will show you all your window rules and allow you to create new rules. You'll need to create a rule that matches the window class of the desired application; see Finding an application's window class. This method is useful for applications which don't present a native titlebar, since you can also use window rules to force the native titlebar.

Once you have a rule for the application, add the property "Titlebar color scheme", set the first dropdown to "Force", and select the color scheme you want in the second dropdown.

Configuring directly in kwinrulesrc

Window rules are stored in ~/.config/kwinrulesrc and you can edit this file manually if you want. You can find an example in my personal dotfiles repo.

If you store your dotfiles in version control, this is a useful file to track alongside your ~/.local/share/color-schemes folder to sync your application-specific titlebar theme configurations across computers.

Finding an application's window class

Under Xorg, you can use the xprop command to find the window class of any window. Run xprop WM_CLASS in your terminal, then click on the window you want to identify.

Wayland doesn't use xprop, so the way you get information about windows will vary from system to system. If you're using GNOME, you might start with this SuperUser answer.

Forcing applications to use a native titlebar

Many applications which draw their own custom titlebars on other platforms give Linux users an option to present the native titlebar instead. If not, KDE window rules can be used to force the native titlebar to show up anyway. To do this, add the "No titlebar and frame" property to the application's window rule, set the dropdown to "Force" and select the "No" option.

Note that if the application presents its own non-native menu bar, KDE does not have a way to hide that. You will have to check the specific application for an option to hide the baked-in titlebar, or use other tweaks (e.g. some Electron-based applications allow you to apply CSS to the UI, which can usually be used to hide the bar).

If special tweaks like this are required to make an application present a native titlebar or hide the baked-in titlebar, they'll be noted.

License

CC0 - Public Domain

About

Titlebar color schemes to help applications blend in with KDE Plasma

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published