dde top panel for Deepin V20
Top panel for deepin desktop environment v20.
This is a modification of dde-dock for top panel. Comparing to dde-dock, it: * remove the launcher, show desktop, multi tasking, and application icons * full support for dde-dock plugins and tray * remove lots of unnecessary things so it is just a top panel. It is fixed to the top of the screen, and there is no way to change that. * separate plugin config gsetting path
/com/deepin/dde/toppanel* different plugin directories:
~/.config/kwinrccan remove the window title bar when maximized
Know issues: * panels on non-primary monitors only have the window title function. The plugins can not work on them.
It is not an issuebecause the
QPluginLoadercan only create one instance from one plugin file. So the panel cannot create as many plugin widgets as the panels. Still trying to add the plugin back to all panels * Shortcuts of the global menu not work yet
/usr/share/glib-2.0/schemas, and run
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
~/.config/kwinrccontains items below, then logout.
shell script [Windows] BorderlessMaximizedWindows=true4. If you want to use plugins on top panel, just copy the plugin files to
~/.local/lib/dde-top-panel/plugins. For example, if you want to get tray icons on top panel, just
cp /usr/lib/dde-dock/plugins/libtray.so ~/.local/lib/dde-top-panel/plugins5. If you want to enable the global menu, please install !(dde-globalmenu-service)[https://github.com/SeptemberHX/dde-globalmenu-service.git]
Thanks to @JunioCalu . dde-top-panel is in the AUR now. https://aur.archlinux.org/packages/dde-top-panel
I only have deepin v20 installed on my computer, and I cannot compile it for other distributions. So it needs to be built from source.
Qt5Widgets, Qt5Concurrent, Qt5X11Extras, Qt5DBus, Qt5Svg, DtkWidget, DtkCMake, KF5WindowSystem, XCB_EWMH, DFrameworkDBus, QGSettings, DtkGUI
git clone https://github.com/SeptemberHX/dde-top-panel.git cd dde-top-panel mkdir build cd build cmake .. make
dde-top-panelshould be in
build/frame/dde-top-panel. Then go to step 2 in How to run for Deepin V20
Due to the logical of tray plugins, only one tray widget can hold the wine trays (You can click the icon and it will response to the click).
The main code of wine trays is in
plugins/tray/xembedtraywidget. Generally, it wraps the raw wine trays with a new widget and embeds it to the tray, then it operates on the new widget. The problem is every tray widget will create a new container widget for each wine trays, and the tray widgets launched before can't the window id of the new container widget.
This part needs help.