A patched version of Chameleon(default window decoration) on DeepinV20, which allows to show your windows' menu on the titlebar.
Inspired by material-decoration and copied lots of code from it :)
- install dde-globalmenu-service and set it with autostart(right click on the launcher)
sudo apt install libkf5config-bin libqt5quickparticles5 libqt5quickshapes5
(please useldd
to check the dependencies)- modify
~/.gtkrc-2.0
, addgtk-modules=appmenu-gtk-module
- modify
~/.config/gtk-3.0/settings.ini
,addgtk-modules=appmenu-gtk-module
under [Settings] - download the release zip file in release page(only for deepinv20. other distributions need to compile from source)
- copy the libdde-chameleon.so to
/usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2
(you should backup the one provided by the system)
sudo apt install extra-cmake-modules qtbase5-dev qtdeclarative5-dev libkf5coreaddons-dev libkf5config-dev libkf5windowsystem-dev libkdecorations2-dev libqt5x11extras5-dev libkf5guiaddons-dev kwin-dev
cd Chameleon-patched
mkdir build; cd build
cmake ..
make -j8
- press ctrl+alt+F2 and login your account
- copy raw *.so back or
sudo apt reinstall dde-kwin