%global _basename materialdecoration Name: material-decoration %global forgeurl https://github.com/guiodic/material-decoration %global commit 68a075da11cab2cb2053b44adf4736e283064d8f %global date 20260305 %forgemeta Version: 0 Release: 1%{?dist} Summary: Material-ish window decoration theme for KWin License: GPL-2.0 URL: %{forgeurl} Source: %{forgesource} BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ BuildRequires: kf6-rpm-macros BuildRequires: libappstream-glib BuildRequires: ninja-build BuildRequires: qt6-rpm-macros BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6DBus) BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6UiTools) BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(KF6Config) BuildRequires: cmake(KF6ConfigWidgets) BuildRequires: cmake(KF6CoreAddons) BuildRequires: cmake(KF6GuiAddons) BuildRequires: cmake(KF6I18n) BuildRequires: cmake(KF6IconThemes) BuildRequires: cmake(KF6KCMUtils) BuildRequires: cmake(KF6Service) BuildRequires: cmake(KF6WindowSystem) BuildRequires: cmake(KDecoration3) BuildRequires: cmake(KWin) BuildRequires: pkgconfig(epoxy) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(wayland-client) %if 0%{?fedora} BuildRequires: cmake(KWinX11) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb) %endif Requires: kwin %description Material-ish window decoration theme for KWin Locally Integrated Menu & Search ================================ This hides the AppMenu icon button and draws the menu in the titlebar. It also includes a search button to find actions. It works on both X11 and Wayland. On Wayland, GTK apps don't export the menu in a KDE-friendly way. You need to start them with `GDK_BACKEND=x11` environment variable or you can try the experimental [appmenu-gtk-module-wayland](https://github.com/guiodic/appmenu-gtk-module-wayland) (GTK3 only). Configuration ============= Make sure you add the AppMenu button in System Settings > Colors & Themes > Window Decorations > Configure Titlebar Buttons…. There, by clicking the pencil icon that is displayed when you select the Material theme, you can modify various aspects of the decoration, both in terms of appearance and behaviour. For example, you can transform it into a hamburger menu, disable the search function, and even decide whether to include inactive actions (those that are greyed out) in the search results. Note: if you configure the decoration to use Opacity < 100%, [Better Blur effect](https://github.com/xarblu/kwin-effects-better-blur-dx) is strongly recommended on Wayland. Actions on Press-and-Hold buttons ================================= Pressing and holding the “Close” button will minimize the window to the traybar if the [kwin-minimize2tray](https://github.com/luisbocanegra/kwin-minimize2tray) script is present and enabled ( [AUR package](https://aur.archlinux.org/packages/kwin-minimize2tray-git)). On Plasma 6.6, pressing and holding the "Minimize" button will minimize ALL windows but the active one on Plasma 6.6 (Wayland). This requires MinimizeAll script (please enable it in System Settings). For X11, please copy the directory `/usr/share/kwin-wayland/scripts/minimizeall` to ` /usr/share/kwin-x11/scripts/minimizeall` %files -f %{_basename}.lang %license LICENSE %doc README.md %{_kf6_qtplugindir}/org.kde.kdecoration3/%{_basename}.so %{_kf6_qtplugindir}/org.kde.kdecoration3.kcm/%{_basename}_kcm.so %{_kf6_datadir}/applications/%{_basename}_kcm.desktop %{_kf6_metainfodir}/%{_basename}_kcm.json #------------------------------------------------------------------ %prep %forgeautosetup -p1 %build %cmake_kf6 -DQT_MAJOR_VERSION=6 %cmake_build %install %cmake_install %find_lang %{_basename} --with-kde %check desktop-file-validate %{buildroot}%{_kf6_datadir}/applications/%{_basename}_kcm.desktop %changelog * Thu Mar 19 2026 Hazel Bunny - 0-1 - initial package